Skip to content

Commit

Permalink
remove repository_name site setting
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed May 4, 2024
1 parent 9d76253 commit 3f5c6bc
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 74 deletions.
1 change: 0 additions & 1 deletion _config.dev.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
url: "0.0.0.0:4000"
repository_name: ""
12 changes: 3 additions & 9 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -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 #
#############
Expand Down
24 changes: 12 additions & 12 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

<!-- CSS links -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" defer />
<link href="{{site.repository_name}}/css/grayscale.css" rel="stylesheet" />
<link href="{{site.url}}/css/grayscale.css" rel="stylesheet" />

{% if page.section-type == "index" %}
<link href="{{site.repository_name}}/css/timeline.css" rel="stylesheet" />
<link href="{{site.url}}/css/timeline.css" rel="stylesheet" />
{% endif %}

{% if page.layout == "post" %}
{% include syntax-highlight.html %}
<link rel="stylesheet" href="{{site.repository_name}}/css/rrssb.css" />
{% include syntax-highlight.html %}
<link rel="stylesheet" href="{{site.url}}/css/rrssb.css" />
{% endif %}

<!-- Fonts -->
Expand All @@ -32,17 +32,17 @@
<link
rel="shortcut icon"
type="image/x-icon"
href="{{site.repository_name}}{{site.favicon}}"
href="{{site.url}}{{site.favicon}}"
/>
{% endif %}
{% endif %}

{% if page.url == "/404.html" | prepend: {{site.repository_name}} %}
<meta http-equiv="refresh" content="20; url={{site.repository_name}}/" />
{% endif %}
{% if page.url == "/404.html" | prepend: {{site.url}} %}
<meta http-equiv="refresh" content="20; url={{site.url}}/" />
{% endif %}

{% include web-app.html %}
{% include web-app.html %}

{% include color-browser.html %}
{% include color-browser.html %}

{% if site.google-tracking-id %}

Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h5>&nbsp;</h5>
{% else %}
<img
class="img-me"
src="{{site.repository_name}}{{ site.me-img }}"
src="{{site.url}}{{ site.me-img }}"
alt=""
/>
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions _includes/latest-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ <h3>
.
<a
class="category"
href="{{site.repository_name}}/categories/{{post.category | downcase}}.html"
href="{{site.url}}/categories/{{post.category | downcase}}.html"
>
{{ post.category }}
</a>
.
</small>
<strong>
<a href="{{site.repository_name}}{{ post.url }}">{{post.title}} </a>
<a href="{{site.url}}{{ post.url }}">{{post.title}} </a>
</strong>
<small>
<a href="{{site.repository_name}}{{post.url}}#disqus_thread"
<a href="{{site.url}}{{post.url}}#disqus_thread"
>Comments</a
></small
>
Expand All @@ -34,7 +34,7 @@ <h3>
site.post-preview-words }}
</section>

<h3><a href="{{site.repository_name}}/blog/">Archive</a></h3>
<h3><a href="{{site.url}}/blog/">Archive</a></h3>
</div>
</div>
</section>
Expand Down
10 changes: 5 additions & 5 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
{% if page.section-type == "index" %}
<a class="navbar-brand page-scroll" href="#page-top">
{% else %}
<a class="navbar-brand" href="{{site.repository_name}}/">
<a class="navbar-brand" href="{{site.url}}/">
{% endif %}
<div>
{% if site.black-favicon %}
<img src="{{site.repository_name}}{{ site.black-favicon }}" alt="">
<img src="{{site.url}}{{ site.black-favicon }}" alt="">
{% endif %}
{{ site.title }}
</div>
Expand All @@ -37,13 +37,13 @@
{% for p in site.pages_list %}
<li>
{% if p[1] == "latest-post" %}
{% if page.url == "/blog/index.html" | prepend: {{site.repository_name}} %}
{% if page.url == "/blog/index.html" | prepend: {{site.url}} %}
<a class="page-scroll" href="#page"> {{p[0]}} </a>
{% else %}
<a href="{{site.repository_name}}/blog/"> {{p[0]}} </a>
<a href="{{site.url}}/blog/"> {{p[0]}} </a>
{% endif %}
{% else %}
<a href="{{site.repository_name}}/#{{ p[1] }}"> {{p[0]}} </a>
<a href="{{site.url}}/#{{ p[1] }}"> {{p[0]}} </a>
{% endif %}
</li>
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<h4>
{% if paginator.previous_page %}
<a
href="{{site.repository_name}}{{paginator.previous_page_path}}"
href="{{site.url}}{{paginator.previous_page_path}}"
class="previous"
>Newer Posts</a
>
{% endif %} {% if paginator.previous_page and paginator.next_page %} | {%
endif %} {% if paginator.next_page %}
<a href="{{site.repository_name}}{{paginator.next_page_path}}" class="next"
<a href="{{site.url}}{{paginator.next_page_path}}" class="next"
>Older Posts</a
>
{% endif %}
Expand Down
6 changes: 3 additions & 3 deletions _includes/post-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ <h4 align="left">
>.
<a
class="category"
href="{{site.repository_name}}/categories/{{ post.category | downcase }}.html"
href="{{site.url}}/categories/{{ post.category | downcase }}.html"
>
{{ post.category }}
</a>
.</small
>
<br class="visible-xs-block" />
<a href="{{site.repository_name}}{{post.url}}">
<a href="{{site.url}}{{post.url}}">
<strong>{{ post.title }}</strong>
</a>
<br class="visible-xs-block" />
<small
><a href="{{site.repository_name}}{{post.url}}#disqus_thread"
><a href="{{site.url}}{{post.url}}#disqus_thread"
>Comments</a
></small
>
Expand Down
20 changes: 10 additions & 10 deletions _includes/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% if site.email-share %}
<li class="rrssb-email">
<a
href="mailto:?subject={{page.title}}&body={{site.url}}{{site.repository_name}}{{page.url}}"
href="mailto:?subject={{page.title}}&body={{site.url}}{{site.url}}{{page.url}}"
data-proofer-ignore
>
<span class="rrssb-icon">
Expand All @@ -25,7 +25,7 @@
{% endif %} {% if site.fb-share %}
<li class="rrssb-facebook">
<a
href="https://www.facebook.com/sharer/sharer.php?u={{site.url}}{{site.repository_name}}{{page.url}}&title={{page.title}}"
href="https://www.facebook.com/sharer/sharer.php?u={{site.url}}{{site.url}}{{page.url}}&title={{page.title}}"
class="popup"
>
<span class="rrssb-icon">
Expand All @@ -49,7 +49,7 @@
{% endif %} {% if site.twitter-share %}
<li class="rrssb-twitter">
<a
href="https://twitter.com/share?url={{site.url}}{{site.repository_name}}{{page.url}}&text={{page.title}}"
href="https://twitter.com/share?url={{site.url}}{{site.url}}{{page.url}}&text={{page.title}}"
class="popup"
>
<span class="rrssb-icon"
Expand All @@ -69,7 +69,7 @@
{% endif %} {% if site.linkedin-share %}
<li class="rrssb-linkedin">
<a
href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{site.url}}{{site.repository_name}}{{page.url}}"
href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{site.url}}{{site.url}}{{page.url}}"
class="popup"
>
<span class="rrssb-icon">
Expand All @@ -90,7 +90,7 @@
{% endif %} {% if site.reddit-share %}
<li class="rrssb-reddit">
<a
href="https://www.reddit.com/submit?url={{site.url}}{{site.repository_name}}{{page.url}}&title={{page.title}}"
href="https://www.reddit.com/submit?url={{site.url}}{{site.url}}{{page.url}}&title={{page.title}}"
target="_blank"
>
<span class="rrssb-icon">
Expand All @@ -114,7 +114,7 @@
{% endif %} {% if site.google-plus-share %}
<li class="rrssb-googleplus">
<a
href="https://plus.google.com/share?url={{site.url}}{{site.repository_name}}{{page.url}}"
href="https://plus.google.com/share?url={{site.url}}{{site.url}}{{page.url}}"
class="popup"
>
<span class="rrssb-icon">
Expand All @@ -135,7 +135,7 @@
{% endif %} {% if site.tumblr-share %}
<li class="rrssb-tumblr">
<a
href="https://tumblr.com/share/link?url={{site.url}}{{site.repository_name}}{{page.url}}"
href="https://tumblr.com/share/link?url={{site.url}}{{site.url}}{{page.url}}"
target="_blank"
>
<span class="rrssb-icon">
Expand All @@ -156,7 +156,7 @@
{% endif %} {% if site.pinterest-share %}
<li class="rrssb-pinterest">
<a
href="https://pinterest.com/pin/create/button/?url={{site.url}}{{site.repository_name}}{{page.url}}"
href="https://pinterest.com/pin/create/button/?url={{site.url}}{{site.url}}{{page.url}}"
target="_blank"
>
<span class="rrssb-icon">
Expand All @@ -177,7 +177,7 @@
{% endif %} {% if site.pocket-share%}
<li class="rrssb-pocket">
<a
href="https://getpocket.com/save?url={{site.url}}{{site.repository_name}}{{page.url}}"
href="https://getpocket.com/save?url={{site.url}}{{site.url}}{{page.url}}"
>
<span class="rrssb-icon">
<svg
Expand All @@ -197,7 +197,7 @@
{% endif %} {% if site.vkontakte-share %}
<li class="rrssb-vk">
<a
href="https://vk.com/share.php?url={{site.url}}{{site.repository_name}}{{page.url}}"
href="https://vk.com/share.php?url={{site.url}}{{site.url}}{{page.url}}"
class="popup"
>
<span class="rrssb-icon">
Expand Down
2 changes: 1 addition & 1 deletion _includes/syntax-highlight.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link
rel="stylesheet"
type="text/css"
href=" {{site.repository_name}}/css/everforest.css"
href=" {{site.url}}/css/everforest.css"
/>

{% endif %}
4 changes: 2 additions & 2 deletions _includes/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="{{site.repository_name}}{{ event.image }}"
src="{{site.url}}{{ event.image }}"
alt=""
width="156"
height="156"
Expand All @@ -38,7 +38,7 @@
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="{{site.repository_name}}{{ site.timeline-img }}"
src="{{site.url}}{{ site.timeline-img }}"
alt=""
width="156"
height="156"
Expand Down
14 changes: 7 additions & 7 deletions _includes/web-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@
<link
rel="apple-touch-icon"
sizes="36x36"
href="{{site.repository_name}}{{site.icon-36p}}"
href="{{site.url}}{{site.icon-36p}}"
/>
<link
rel="apple-touch-icon"
sizes="48x48"
href="{{site.repository_name}}{{site.icon-48p}}"
href="{{site.url}}{{site.icon-48p}}"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="{{site.repository_name}}{{site.icon-72p}}"
href="{{site.url}}{{site.icon-72p}}"
/>
<link
rel="apple-touch-icon"
sizes="96x96"
href="{{site.repository_name}}{{site.icon-96p}}"
href="{{site.url}}{{site.icon-96p}}"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="{{site.repository_name}}{{site.icon-144p}}"
href="{{site.url}}{{site.icon-144p}}"
/>
<link
rel="apple-touch-icon"
sizes="192x192"
href="{{site.repository_name}}{{site.icon-192p}}"
href="{{site.url}}{{site.icon-192p}}"
/>

<!-- Android Web App mode -->

<link rel="manifest" href="{{site.repository_name}}/manifest.json" />
<link rel="manifest" href="{{site.url}}/manifest.json" />

{% endif %}
2 changes: 1 addition & 1 deletion _layouts/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2>UH OH! You're lost.</h2>
<p>
The page you are looking for does not exist. How you got here is a
mystery. But you can click
<a href="{{site.repository_name}}/">here</a>
<a href="{{site.url}}/">here</a>
to go back to the homepage.
</p>
</div>
Expand Down
8 changes: 4 additions & 4 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ <h4>
.
<a
class="category"
href="{{site.repository_name}}/categories/{{page.category | downcase}}.html"
href="{{site.url}}/categories/{{page.category | downcase}}.html"
>
{{ page.category }} </a
>.
<a href="{{site.repository_name}}{{page.url}}#disqus_thread"
<a href="{{site.url}}{{page.url}}#disqus_thread"
>Comments</a
>
<br />
{% for tag in page.tags %}
<a
class="tag"
href="{{site.repository_name}}/tags/{{tag | downcase}}.html"
href="{{site.url}}/tags/{{tag | downcase}}.html"
>#{{ tag }}</a
>
{% endfor %}
Expand All @@ -47,7 +47,7 @@ <h4>
<div class="author row">
<img
class="col-xs-4 col-sm-3 col-md-2"
src="{{site.repository_name}}{{site.author_blurb_image}}"
src="{{site.url}}{{site.author_blurb_image}}"
alt="Me"
/>
<p class="col-xs-8 col-sm-9 col-md-10">{{ site.author_blurb }}</p>
Expand Down
2 changes: 1 addition & 1 deletion _posts/2015-06-27-welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down
Loading

0 comments on commit 3f5c6bc

Please sign in to comment.