kasperhermansen-blog/templates/macros/prev.html
kjuulh 318b7ff9d4
All checks were successful
continuous-integration/drone/push Build is passing
feat: with safe links
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-10-24 10:13:42 +02:00

11 lines
418 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% macro page_back_link(page) %}
{% set top_section = get_section(path=page.ancestors | last) %}
<a class="previous" href="{{ top_section.permalink | safe }}"> back</a>
{% endmacro page_back_link %}
{% macro section_back_link(section) %}
{% set top_section = get_section(path=section.ancestors | last) %}
<a class="previous" href="{{ top_section.permalink | safe }}"> back</a>
{% endmacro section_back_link %}