summaryrefslogtreecommitdiff
path: root/blog/plt
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-05-25 20:09:40 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-05-25 20:09:40 -0600
commit1c4d6ec6b49e8f80ccc46ee619caf5eba082f1e0 (patch)
treeaf69ad0e8b61fc301e108ad5ea659fce94187a27 /blog/plt
parent9ed5d09180b6c975d60828265a2cd1eee9ac1ab4 (diff)
add support for gdscript
Diffstat (limited to 'blog/plt')
-rw-r--r--blog/plt/base.html1
-rw-r--r--blog/plt/page.html5
2 files changed, 6 insertions, 0 deletions
diff --git a/blog/plt/base.html b/blog/plt/base.html
index 3c0e3c9..4cb4827 100644
--- a/blog/plt/base.html
+++ b/blog/plt/base.html
@@ -18,6 +18,7 @@
<!-- highlight support for code blocks -->
<script type="text/javascript" src="hl/highlight.min.js"></script>
<!--<script type="text/javascript" src="hl/highlight-ln.min.js"></script>-->
+ {%block gdscript_hl%}{%endblock gdscript_hl%}
<script type="text/javascript">
hljs.initHighlightingOnLoad();
// hljs.initLineNumbersOnLoad();
diff --git a/blog/plt/page.html b/blog/plt/page.html
index 92aed91..cdfbdf2 100644
--- a/blog/plt/page.html
+++ b/blog/plt/page.html
@@ -2,6 +2,11 @@
{%block html_lang%}{{page.lang}}{%endblock html_lang%}
{%block head_title%}{{page.title}}{%endblock head_title%}
{%block head_description%}{{page.summary}}{%endblock head_description%}
+{%block gdscript_hl%}
+{%if "godot" in page.tags%}
+ <script type="text/javascript" src="hl/languages/gdscript.min.js"></script>
+{%endif%}
+{%endblock gdscript_hl%}
{%block head_og%}
<meta property="og:title" content="{{page.title}} -- {{config.get("info", "title")}}"/>
<meta property="og:type" content="article"/>