aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2023-05-05 15:32:42 +0300
committerValentin Popov <valentin@popov.link>2023-05-05 15:32:42 +0300
commit93996fd67ae44e6a017dfe5247ed06cb91e711ee (patch)
tree779c2cc1901c66ad3762123fa5b283924964f188
parenta36a8853c5b8588a927f5f2ff4b23be65ae84318 (diff)
downloadpopov.link-93996fd67ae44e6a017dfe5247ed06cb91e711ee.tar.xz
popov.link-93996fd67ae44e6a017dfe5247ed06cb91e711ee.zip
fix(8): Corrected the permalink of the link
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r--templates/blog.html6
-rw-r--r--templates/includes/recent_posts.html4
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/blog.html b/templates/blog.html
index 934dda8..492ff50 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -3,14 +3,14 @@
{% block content %}
{% for year, posts in section.pages | group_by(attribute='year') %}
<section>
- <h2>{{ year | trim }}</h2>
+ <h2>{{ year | trim | safe }}</h2>
<ul>
{% for page in posts %}
<li>
- <time datetime="{{ page.date | date(format='%+') | trim }}">{{ page.date | date(format='%Y/%m/%d') | trim }}</time>
+ <time datetime="{{ page.date | date(format='%+') | trim | safe }}">{{ page.date | date(format='%Y/%m/%d') | trim | safe }}</time>
<span>&mdash;</span>
- <a href="{{ page.permalink | trim }}">{{ page.title | trim }}</a>
+ <a href="{{ page.path | trim | safe }}">{{ page.title | trim | safe }}</a>
</li>
{% endfor %}
</ul>
diff --git a/templates/includes/recent_posts.html b/templates/includes/recent_posts.html
index 795ea06..07abb37 100644
--- a/templates/includes/recent_posts.html
+++ b/templates/includes/recent_posts.html
@@ -2,9 +2,9 @@
<ul>
{% for page in blog.pages | slice(end=5) %}
<li>
- <time datetime="{{ page.date | date(format='%+') | trim }}">{{ page.date | date(format='%Y/%m/%d') | trim }}</time>
+ <time datetime="{{ page.date | date(format='%+') | trim | safe }}">{{ page.date | date(format='%Y/%m/%d') | trim | safe }}</time>
<span>&mdash;</span>
- <a href="{{ page.permalink | trim }}">{{ page.title | trim }}</a>
+ <a href="{{ page.path | trim | safe }}">{{ page.title | trim | safe }}</a>
</li>
{% endfor %}
</ul> \ No newline at end of file