diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-08 21:35:11 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-08 21:35:11 +0300 |
commit | 0b13dadaacc964ad275794f457ec587069b890e9 (patch) | |
tree | ea32d0cbd20382df53036a24686df8ceaadca84f /_layouts/post.html | |
parent | paginator: add explanatory comments (diff) | |
download | jekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.tar.gz jekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.zip |
use relative_url instead of site.baseurl
Diffstat (limited to '')
-rw-r--r-- | _layouts/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index c539244..1af112a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,7 +4,7 @@ layout: default <h1>{{ page.title }}</h1> <p class="text-muted"> <span class="glyphicon glyphicon-time"></span> Posted on {{ page.date | date: '%-d %B %Y' }} - {%- if page.category %} in <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ site.baseurl }}/categories/{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>{% endif %} + {%- if page.category %} in <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ '/categories/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>{% endif %} </p> {{ content }} <hr/> |