summaryrefslogtreecommitdiff
path: root/blog/plt/page.html
blob: e2a7ecb82af4bfdb38109336e9459db3b9720326 (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
{%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%}
    <!-- Specific to GDScript -->
    <script type="text/javascript" src="hl/languages/gdscript.min.js"></script>
{%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%}