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

Commit

Permalink
fix navbar routes
Browse files Browse the repository at this point in the history
  • Loading branch information
chemistryx committed Sep 24, 2023
1 parent c9696bd commit d075ccb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul class="hyde footer-menu links">
{% assign pages = site.pages | sort:'url' %} {% for p in pages %} {% if p.visible == true %}
<li>
<a href="{{ p.url }}">{{ p.title }}</a>
<a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a>
</li>
{% endif %} {% endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ <h1>{% if page.layout == "tag" %}<span class="hyde symbol">#</span>{% endif %}{{
{% if page.layout == "post" or page.layout == "project" %}
<div class="hyde post-info">
{% 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 class="hyde separator"></div>
<span class="hyde post-date">{{ page.date | date: '%Y년 %-m월 %-d일' }}</span>
</div>
{% endif %}
<a class="hyde post-back" href="./{{ site.baseurl }}blog"><i class="fas fa-chevron-left"></i> 목록으로 돌아가기</a>
<a class="hyde post-back" href="{{ site.baseurl }}/blog"><i class="fas fa-chevron-left"></i> 목록으로 돌아가기</a>
</div>
{% else %}
<h2>{{ page.description }}</h2>
Expand Down
2 changes: 1 addition & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</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="{{ p.url }}">{{ p.title }}</a>
<a href="{{ site.baseurl }}/{{ p.url }}">{{ p.title }}</a>
</li>
{% endif %} {% endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions _pages/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="hyde posts">
{% assign sorted = site.projects | sort: 'date' | reverse %} {% for project in sorted %}
<div class="hyde post{% unless forloop.last %} divider{% endunless %}">
<a href="{{ project.url }}">
<a href="{{ site.baseurl }}{{ project.url }}">
<div class="hyde post-thumbnail-wrapper">
{% if project.image %}
<div class="hyde post-thumbnail" style="background-image: url('{{ site.baseurl }}/assets/images/projects/{{ project.image }}');"></div>
Expand All @@ -22,7 +22,7 @@
{% endif %}
</div>
</a>
<a href="{{ project.url }}">
<a href="{{ site.baseurl }}{{ project.url }}">
<h2 class="hyde post-title">{{ project.title }}</h2>
</a>
<div class="hyde post-trail">
Expand Down

0 comments on commit d075ccb

Please sign in to comment.