blob: 8283d31ada283a2f63197101dbc0d31a8cde8289 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{# This Page Shows the Individual Blog Posts#}
{% extends "base.html" %}
{%- block seo %}
{{- super() }}
{%- set title_addition = "" %}
{%- if page.title and config.title %}
{%- set title = page.title %}
{%- set title_addition = title_separator ~ config.title %}
{%- elif page.title %}
{%- set title = page.title %}
{%- else %}
{%- set title = config.title %}
{%- endif %}
{%- if page.description %}
{%- set description = page.description %}
{%- else %}
{%- set description = config.description %}
{%- endif %}
{%- set created_time = page.date %}
{%- set updated_time = page.updated %}
{%- if current_section %}
{%- set page_section = current_section %}
{%- else %}
{%- set page_section = "" %}
{%- endif %}
{{- macros_head::seo(title=title, title_addition=title_addition, description=description, type="article", is_page=true, created_time=created_time, updated_time=updated_time, page_section=page_section) }}
{%- endblock seo %}
{%- block content %}
<article>
<h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
{{- macros::title(page=page) }}
{{ page.content | safe }}
{%- block page_footer %}
{{- macros::footer(page=page) }}
{%- endblock page_footer %}
</article>
{%- block toc %}
{%- if page.extra.toc and config.extra.recent %}
{%- set toc = page.toc %}
{%- endif %}
{%- if toc %}
<div class="toc">
<div class="toc-sticky">
<h3>Index</h3>
{%- for h in toc %}
<div class="toc-item">
<a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a>
</div>
{%- if h.children %}
{%- for h2 in h.children %}
<div class="toc-item-child">
<a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a>
</div>
{%- endfor %}
{%- endif %}
{%- endfor %}
</div>
</div>
{%- endif %}
{%- endblock toc %}
{%- endblock content %}
{%- block gotop %}
{%- if page.reading_time %}
{%- if page.reading_time > 1 %}
<div class="topout">
<div> </div><div class="topin"><a href="#" class="top">⋏</a></div>
</div>
{%- endif %}
{%- endif %}
{%- endblock gotop %}
|