summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-19 16:31:23 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-19 16:31:23 -0500
commit666c64e08730135d09de382eac2a0d6548e5574b (patch)
tree841b4344ec93684d65c62cb013beba44656c1619
parent1b04d37d1ecb61a357917663c5449b68f0c88c26 (diff)
fix: fix bug in article macro
-rw-r--r--templates/macros.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/macros.html b/templates/macros.html
index a2376ca..75425a2 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -52,10 +52,10 @@
<address class="author"> <a rel="author" href="{{ config.base_url }}">{{ config.extra.author }}</a></address>
</footer>
</header>
- {% if page_ref and page.summary %}
+ {% if not page_ref %}
+ {{ self::toc(toc=page.toc) }}
+ {% elif page.summary %}
<p>{{ page.summary | safe }}</p>
<a href="{{ page.permalink }}#continue-reading">...</a>
- {% else %}
- {{ self::toc(toc=page.toc) }}
{% endif %}
{% endmacro %}