From 3f5c6bc20495d17c510240418aa0ab98052aaa08 Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Sat, 4 May 2024 19:47:09 +0300 Subject: [PATCH] remove repository_name site setting --- _config.dev.yml | 1 - _config.yml | 12 +++--------- _includes/head.html | 24 ++++++++++++------------ _includes/header.html | 2 +- _includes/latest-post.html | 8 ++++---- _includes/navigation.html | 10 +++++----- _includes/pagination.html | 4 ++-- _includes/post-list.html | 6 +++--- _includes/share.html | 20 ++++++++++---------- _includes/syntax-highlight.html | 2 +- _includes/timeline.html | 4 ++-- _includes/web-app.html | 14 +++++++------- _layouts/error.html | 2 +- _layouts/post.html | 8 ++++---- _posts/2015-06-27-welcome.md | 2 +- feed.xml | 8 ++++---- manifest.json | 14 +++++++------- 17 files changed, 67 insertions(+), 74 deletions(-) diff --git a/_config.dev.yml b/_config.dev.yml index b7f009d22..a2fa50e32 100644 --- a/_config.dev.yml +++ b/_config.dev.yml @@ -1,2 +1 @@ url: "0.0.0.0:4000" -repository_name: "" diff --git a/_config.yml b/_config.yml index bb7d209bf..55ea7de52 100644 --- a/_config.yml +++ b/_config.yml @@ -1,17 +1,11 @@ # Site settings -# NB! Set your site's url, otherwise stuff will break :) +# NB! Set your site's url, otherwise nothing will work +url: "https://le4ker.github.io/personal-jekyll-theme" -url: "https://le4ker.github.io" -# If you're hosting your site at a Project repository on GitHub pages -# (https://yourusername.github.io/repository-name) -# and NOT your user repository (https://yourusername.github.io) -# then add in the repository_name here, like this: "/repository-name" -# -# NB! Without this *nothing* will work, because it's used in every path :) -repository_name: /personal-jekyll-theme # Google tracking id google-tracking-id: "UA-XXXXXXXX-X" + ############# # HTML Head # ############# diff --git a/_includes/head.html b/_includes/head.html index 8c573d7f0..da0752028 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -11,15 +11,15 @@ - - + + {% if page.section-type == "index" %} - + {% endif %} {% if page.layout == "post" %} - {% include syntax-highlight.html %} - + {% include syntax-highlight.html %} + {% endif %} @@ -32,17 +32,17 @@ - {% endif %} + {% endif %} - {% if page.url == "/404.html" | prepend: {{site.repository_name}} %} - - {% endif %} + {% if page.url == "/404.html" | prepend: {{site.url}} %} + + {% endif %} - {% include web-app.html %} + {% include web-app.html %} - {% include color-browser.html %} + {% include color-browser.html %} {% if site.google-tracking-id %} diff --git a/_includes/header.html b/_includes/header.html index ef36acdc0..85549c0d5 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -14,7 +14,7 @@
 
{% else %} {% endif %} diff --git a/_includes/latest-post.html b/_includes/latest-post.html index f68070849..494f7108f 100644 --- a/_includes/latest-post.html +++ b/_includes/latest-post.html @@ -13,17 +13,17 @@

. {{ post.category }} . - {{post.title}} + {{post.title}} - Comments @@ -34,7 +34,7 @@

site.post-preview-words }} -

Archive

+

Archive

diff --git a/_includes/navigation.html b/_includes/navigation.html index 5258d48a4..7cd2ca3d9 100644 --- a/_includes/navigation.html +++ b/_includes/navigation.html @@ -10,11 +10,11 @@ {% if page.section-type == "index" %} {% else %} - + {% endif %}
{% if site.black-favicon %} - + {% endif %} {{ site.title }}
@@ -37,13 +37,13 @@ {% for p in site.pages_list %}
  • {% if p[1] == "latest-post" %} - {% if page.url == "/blog/index.html" | prepend: {{site.repository_name}} %} + {% if page.url == "/blog/index.html" | prepend: {{site.url}} %} {{p[0]}} {% else %} - {{p[0]}} + {{p[0]}} {% endif %} {% else %} - {{p[0]}} + {{p[0]}} {% endif %}
  • {% endfor %} diff --git a/_includes/pagination.html b/_includes/pagination.html index 5e329d9bb..c01bddcaa 100644 --- a/_includes/pagination.html +++ b/_includes/pagination.html @@ -4,13 +4,13 @@

    {% if paginator.previous_page %} {% endif %} {% if paginator.previous_page and paginator.next_page %} | {% endif %} {% if paginator.next_page %} - {% endif %} diff --git a/_includes/post-list.html b/_includes/post-list.html index abf90be31..6b90812e5 100644 --- a/_includes/post-list.html +++ b/_includes/post-list.html @@ -6,19 +6,19 @@

    >. {{ post.category }} .
    - + {{ post.title }}
    Comments diff --git a/_includes/share.html b/_includes/share.html index 95096a7da..4443e27e1 100644 --- a/_includes/share.html +++ b/_includes/share.html @@ -4,7 +4,7 @@ {% if site.email-share %}
  • @@ -25,7 +25,7 @@ {% endif %} {% if site.fb-share %}
  • @@ -49,7 +49,7 @@ {% endif %} {% if site.twitter-share %}
  • @@ -90,7 +90,7 @@ {% endif %} {% if site.reddit-share %}
  • @@ -114,7 +114,7 @@ {% endif %} {% if site.google-plus-share %}
  • @@ -135,7 +135,7 @@ {% endif %} {% if site.tumblr-share %}
  • @@ -156,7 +156,7 @@ {% endif %} {% if site.pinterest-share %}
  • @@ -177,7 +177,7 @@ {% endif %} {% if site.pocket-share%}
  • diff --git a/_includes/syntax-highlight.html b/_includes/syntax-highlight.html index 4e83bcc26..c5deef72b 100644 --- a/_includes/syntax-highlight.html +++ b/_includes/syntax-highlight.html @@ -4,7 +4,7 @@ {% endif %} diff --git a/_includes/timeline.html b/_includes/timeline.html index 173ac9bba..b00d4028d 100644 --- a/_includes/timeline.html +++ b/_includes/timeline.html @@ -17,7 +17,7 @@ diff --git a/_layouts/post.html b/_layouts/post.html index 9450f086a..72364f736 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -17,18 +17,18 @@

    . {{ page.category }} . - Comments
    {% for tag in page.tags %} #{{ tag }} {% endfor %} @@ -47,7 +47,7 @@

    Me

    {{ site.author_blurb }}

    diff --git a/_posts/2015-06-27-welcome.md b/_posts/2015-06-27-welcome.md index 43b00332d..039d5864e 100644 --- a/_posts/2015-06-27-welcome.md +++ b/_posts/2015-06-27-welcome.md @@ -7,7 +7,7 @@ category: tech tags: ["tutorial"] --- -Click the [ARCHIVE]({{site.repository_name}}/blog) link, to see the currently +Click the [ARCHIVE]({{site.url}}/blog) link, to see the currently available post-tutorials to help you get your { Personal } website up and running quicker! diff --git a/feed.xml b/feed.xml index d7c2b3ac6..dc396025e 100644 --- a/feed.xml +++ b/feed.xml @@ -5,8 +5,8 @@ {{ site.title | xml_escape }} {% if site.description %}{{ site.description | xml_escape }}{% endif %} - {{site.url}}{{site.repository_name}} - + {{site.url}}{{site.url}} + {% for post in site.posts limit:10 %} {{post.title | xml_escape}} @@ -19,8 +19,8 @@ {{post.content | xml_escape}} {% endif %} {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} - {{site.url}}{{site.repository_name}}{{post.url}} - {{site.url}}{{site.repository_name}}{{post.url}} + {{site.url}}{{site.url}}{{post.url}} + {{site.url}}{{site.url}}{{post.url}} {% endfor %} diff --git a/manifest.json b/manifest.json index e7d3785d7..953219584 100644 --- a/manifest.json +++ b/manifest.json @@ -5,36 +5,36 @@ "name": "{{site.title}}", "icons": [ { - "src": "{{site.repository_name}}{{site.icon-36p}}", + "src": "{{site.url}}{{site.icon-36p}}", "sizes": "36x36", "type": "image/png" }, { - "src": "{{site.repository_name}}{{site.icon-48p}}", + "src": "{{site.url}}{{site.icon-48p}}", "sizes": "48x48", "type": "image/png" }, { - "src": "{{site.repository_name}}{{site.icon-72p}}", + "src": "{{site.url}}{{site.icon-72p}}", "sizes": "72x72", "type": "image/png" }, { - "src": "{{site.repository_name}}{{site.icon-96p}}", + "src": "{{site.url}}{{site.icon-96p}}", "sizes": "96x96", "type": "image/png" }, { - "src": "{{site.repository_name}}{{site.icon-144p}}", + "src": "{{site.url}}{{site.icon-144p}}", "sizes": "144x144", "type": "image/png" }, { - "src": "{{site.repository_name}}{{site.icon-192p}}", + "src": "{{site.url}}{{site.icon-192p}}", "sizes": "192x192", "type": "image/png" } ], - "start_url": "{{site.url}}{{site.repository_name}}", + "start_url": "{{site.url}}{{site.url}}", "display": "standalone" }