summaryrefslogtreecommitdiff
path: root/plt/blog
diff options
context:
space:
mode:
Diffstat (limited to 'plt/blog')
-rw-r--r--plt/blog/page.html18
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']}}"/>