Skip to content

Commit

Permalink
Merge pull request #79 from oshothebig/permalink-safe
Browse files Browse the repository at this point in the history
Disable HTML escaping for page's permalink
  • Loading branch information
not-matthias authored Dec 17, 2024
2 parents 67e606f + 76ba6bd commit cc7655e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/macros/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<div>
<h1 class="title">
<a href={{ page.permalink }}>{{page.title}}</a>
<a href={{ page.permalink | safe }}>{{page.title}}</a>

{% if page.draft %}
<span class="draft-label">DRAFT</span>
Expand All @@ -43,7 +43,7 @@ <h1 class="title">
</div>

{% if not hide_read_more %}
<a class="readmore" href={{ page.permalink }}>Read more ⟶</a>
<a class="readmore" href={{ page.permalink | safe }}>Read more ⟶</a>
{% endif %}
</div>
</div>
Expand Down Expand Up @@ -222,7 +222,7 @@ <h1 class="card-title">
{% if page.extra.link_to %}
<a href={{ page.extra.link_to }}>{{page.title}}</a>
{% else %}
<a href={{ page.permalink }}>{{page.title}}</a>
<a href={{ page.permalink | safe }}>{{page.title}}</a>
{% endif %}
</h1>

Expand Down

0 comments on commit cc7655e

Please sign in to comment.