summaryrefslogtreecommitdiff
path: root/blog/plt/page.html
blob: a2154b488fe7eec72157db719505fcab6cb2298c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{%extends "base.html"%}
{%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%}
    <!-- Specific to GDScript -->
    <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"/>
  <meta property="og:url" content="{{page.url}}"/>
  <meta property="og:image" content="{{page.image_url}}"/>
  <meta property="og:description" content="{{page.summary}}"/>
  <meta property="og:locale" content="{{page.lang}}"/>
  <meta property="og:site_name" content="{{config.get("info", "title")}}"/>
{%endblock head_og%}
{%block content%}
  <h1>{{page.title}}</h1>

  {{page.content}}

  {%import "page_nav.html" as page_nav%}
  {{page_nav.print(page, config)}}

  <hr>
  <div class="article-info">
    <p>By {{page.author}}</p>
    <p>Created: {{page.cdate}}</p>
    {%if page.mdate is not none%}
      <p>Modified: {{page.mdate}}</p>
    {%endif%}
    {%import "tag_list.html" as tag_list%}
    {{tag_list.print(page.tags)}}
  </div>
{%endblock content%}