From 70e783628b1bf863da45cc8879b06288a498840b Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 5 May 2023 03:16:06 -0600 Subject: update css, make articles more uniform, add toc and add functionality to scroll to the top --- plt/blog/page.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'plt/blog') diff --git a/plt/blog/page.html b/plt/blog/page.html index 40a98e2..f54e28c 100644 --- a/plt/blog/page.html +++ b/plt/blog/page.html @@ -21,14 +21,18 @@ {%endblock head_rss%} {%block head_extra%} -{%import "highlightjs.html" as hljs%} -{{hljs.print(config)}} -{%endblock head_extra%} +{%for t in page.tags%} + {%if t[0] == "code" or t[0] == "gdscript" %} + {%import "highlightjs.html" as hljs%} + {{hljs.print(config)}} + {%endif%} -{%block gdscript_hl%} - - -{%endblock gdscript_hl%} + {%if t[0] == "gdscript" %} + + + {%endif%} +{%endfor%} +{%endblock head_extra%} {%block head_og%} -- cgit v1.2.3-70-g09d2