diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-05-05 03:16:06 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-05-05 03:16:06 -0600 |
commit | 70e783628b1bf863da45cc8879b06288a498840b (patch) | |
tree | 6a61d3134fbb100f0fc04e9e96782d29e24bb5ed /plt/blog | |
parent | ec2aa74d36670d74c153aa0022ab22e79502a061 (diff) |
update css, make articles more uniform, add toc and add functionality to scroll to the top
Diffstat (limited to 'plt/blog')
-rw-r--r-- | plt/blog/page.html | 18 |
1 files changed, 11 insertions, 7 deletions
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%} -<!-- Specific to GDScript --> -<script type="text/javascript" src="{{config['url']['static']}}/hl/languages/gdscript.min.js"></script> -{%endblock gdscript_hl%} + {%if t[0] == "gdscript" %} + <!-- Specific to GDScript --> + <script type="text/javascript" src="{{config['url']['static']}}/hl/languages/gdscript.min.js"></script> + {%endif%} +{%endfor%} +{%endblock head_extra%} {%block head_og%} <meta property="og:title" content="{{page.title}} -- {{config['title']}}"/> |