Unify local links to posts (#65).
This commit is contained in:
parent
db5eb0a18a
commit
171faafc67
6 changed files with 6 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
||||||
{% assign post = site.posts | where: "url", post_url | first %}
|
{% assign post = site.posts | where: "url", post_url | first %}
|
||||||
|
|
||||||
{% if post %}
|
{% if post %}
|
||||||
{% assign url = post.url | prepend: site.baseurl %}
|
{% assign url = post.url | relative_url %}
|
||||||
|
|
||||||
<li><a href="{{ url }}">{{ post.title }}</a></li>
|
<li><a href="{{ url }}">{{ post.title }}</a></li>
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
<div class="profile-text mt-3">
|
<div class="profile-text mt-3">
|
||||||
<div id="site-title">
|
<div id="site-title">
|
||||||
<a href="{{ site.baseurl }}/">{{- site.title -}}</a>
|
<a href="{{ '/' | relative_url }}">{{- site.title -}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="site-subtitle" class="font-italic">{{- site.tagline -}}</div>
|
<div id="site-subtitle" class="font-italic">{{- site.tagline -}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@ layout: page
|
||||||
<ul class="post-content pl-0">
|
<ul class="post-content pl-0">
|
||||||
{% for post in site.categories[page.category] %}
|
{% for post in site.categories[page.category] %}
|
||||||
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
||||||
<a href="{{ post.url | absolute_url }}">{{ post.title }}</a>
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||||
<span class="dash flex-grow-1"></span>
|
<span class="dash flex-grow-1"></span>
|
||||||
<span class="text-muted small">{{ post.date | date: site.data.date_format.post }}</span>
|
<span class="text-muted small">{{ post.date | date: site.data.date_format.post }}</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -11,7 +11,7 @@ layout: page
|
||||||
{% for post in paginator.posts %}
|
{% for post in paginator.posts %}
|
||||||
<div class="post-preview">
|
<div class="post-preview">
|
||||||
<h1>
|
<h1>
|
||||||
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="post-content">
|
<div class="post-content">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -16,7 +16,7 @@ layout: page
|
||||||
<ul class="post-content pl-0">
|
<ul class="post-content pl-0">
|
||||||
{% for post in site.tags[page.tag] %}
|
{% for post in site.tags[page.tag] %}
|
||||||
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
|
||||||
<a href="{{ post.url | absolute_url }}">{{ post.title }}</a>
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||||
<span class="dash flex-grow-1"></span>
|
<span class="dash flex-grow-1"></span>
|
||||||
<span class="text-muted small">{{ post.date | date: site.data.date_format.post }}</span>
|
<span class="text-muted small">{{ post.date | date: site.data.date_format.post }}</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -24,7 +24,7 @@ title: Archives
|
||||||
{% capture this_month %}{{ post.date | date: "%b" }}{% endcapture %}
|
{% capture this_month %}{{ post.date | date: "%b" }}{% endcapture %}
|
||||||
<span class="date day">{{ this_day }}</span>
|
<span class="date day">{{ this_day }}</span>
|
||||||
<span class="date month small text-muted">{{ this_month }}</span>
|
<span class="date month small text-muted">{{ this_month }}</span>
|
||||||
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% if forloop.last %}
|
{% if forloop.last %}
|
||||||
|
|
Loading…
Reference in a new issue