summary refs log tree commit diff stats
path: root/themes/bear/templates/section.html
diff options
context:
space:
mode:
authorAlan Pearce2023-06-23 14:01:14 +0200
committerAlan Pearce2023-06-23 14:04:53 +0200
commit805b34faf0bbdaf135e16072b8dd9153a24368ad (patch)
treee4fe3dfe9c77cb653d03170d6e5f137fcdb96a81 /themes/bear/templates/section.html
parentfe119b75f2b3f8f3ba8c2367c3ec768538edc695 (diff)
downloadwebsite-805b34faf0bbdaf135e16072b8dd9153a24368ad.tar.lz
website-805b34faf0bbdaf135e16072b8dd9153a24368ad.tar.zst
website-805b34faf0bbdaf135e16072b8dd9153a24368ad.zip
Fix overzealous URL encoding
Diffstat (limited to 'themes/bear/templates/section.html')
-rw-r--r--themes/bear/templates/section.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/bear/templates/section.html b/themes/bear/templates/section.html
index f7567f2..c7f80de 100644
--- a/themes/bear/templates/section.html
+++ b/themes/bear/templates/section.html
@@ -16,7 +16,7 @@
               {{ page.date | date(format=config.extra.date_format) }}
             </time>
           </span>
-          <a href="{{ page.permalink }}">{{ page.title }}</a>
+          <a href="{{ page.path | urlencode | safe }}">{{ page.title }}</a>
         </li>
         {% else %}
         <li>
@@ -28,7 +28,7 @@
       <div>
         {% set tags = get_taxonomy(kind="tags") %}
         {% for post in tags.items %}
-          <a href="{{ post.permalink }}">#{{ post.name }}</a>&nbsp;
+          <a href="{{ post.path | urlencode | safe }}">#{{ post.name }}</a>
         {% endfor %}
       </div>
     </small>