Skip to content
This repository has been archived by the owner on Sep 24, 2023. It is now read-only.

Commit

Permalink
fix broken paths
Browse files Browse the repository at this point in the history
  • Loading branch information
chemistryx committed Sep 24, 2023
1 parent d075ccb commit bfe9f20
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
<div class="hyde container">
<ul class="hyde mobile-nav">
<div class="hyde mobile-nav-row">
<a class="hyde mobile-nav-item logo" href="/"><i class="fas fa-meteor"></i> {{ site.title }}</a>
<a class="hyde mobile-nav-item logo" href="{{ site.baseurl }}"><i class="fas fa-meteor"></i> {{ site.title }}</a>
<a class="hyde mobile-nav-item close-btn"><i class="fas fa-times"></i></a>
</div>
{% for p in pages %} {% if p.visible == true %} {% assign url = page.url | split: '/' %}
<a class="hyde mobile-nav-item{% if p.url contains url[1] %} active {% endif %}" href="{{ site.baseurl }}/{{ p.url }}">{{ p.title }}</a>
<a class="hyde mobile-nav-item{% if p.url contains url[1] %} active {% endif %}" href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a>
{% endif %} {% endfor %}
</ul>
</div>
</div>
<div class="hyde container">
<ul class="hyde navbar">
<li class="hyde nav-item">
<a class="hyde nav-logo" href="/"><i class="fas fa-meteor"></i> {{ site.title }}</a>
<a class="hyde nav-logo" href="{{ site.baseurl }}"><i class="fas fa-meteor"></i> {{ site.title }}</a>
</li>
<li class="hyde nav-toggler">
<a class="hyde nav-toggle-btn"><i class="fas fa-bars"></i></a>
</li>
{% for p in pages %} {% if p.visible == true %} {% assign url = page.url | split: '/' %}
<li class="hyde nav-item{% if p.url contains url[1] %} active {% endif %}">
<a href="{{ site.baseurl }}/{{ p.url }}">{{ p.title }}</a>
<a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a>
</li>
{% endif %} {% endfor %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion _includes/post.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="hyde post{% unless forloop.last %} divider{% endunless %}">
<div class="hyde post-author-wrapper">
{% assign author = site.data.authors | where: 'name', post.author | first %} {% if author.image %}
<img src="./{{ site.baseurl }}{{ author.image }}" alt="author-profile" />
<img src="{{ site.baseurl }}/{{ author.image }}" alt="author-profile" />
{% endif %}
<span class="hyde post-author">{% if author.name %}{{ author.name }}{% else %}unknown{% endif %}</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/tags.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if post %} {% assign tags = post.tags %} {% else %} {% assign tags = page.tags %} {% endif %}
<div class="hyde tags{% unless post %} header-tags{% endunless %}">
{% for site_tag in site.tags %} {% for tag in tags %} {% if site_tag.identifier == tag %}
<a class="hyde tag" href="/tags/{{ site_tag.identifier }}">{{ site_tag.title }}</a>
<a class="hyde tag" href="{{ site.baseurl }}/tags/{{ site_tag.identifier }}">{{ site_tag.title }}</a>
{% endif %} {% endfor %} {% endfor %}
</div>
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>
<div class="hyde signature">
{% if author.image %}
<img src="./{{ site.baseurl }}{{ author.image }}" alt="author-profile" />
<img src="{{ site.baseurl }}/{{ author.image }}" alt="author-profile" />
{% endif %}
<div class="hyde signature-text">
<div class="hyde signature-author">Written by <span>{% if author.name %}{{ author.name }}{% else %}unknown{% endif %}</span></div>
Expand Down

0 comments on commit bfe9f20

Please sign in to comment.