blob: b0fbf830051120785a6c01af4d4a9cb7f6f57af3 (
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
79
80
81
82
83
84
85
86
87
88
89
90
|
{# 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>
{{- macros::title_post(page=page) }}
{%- if config.extra.meta_post.position %}
{%- if config.extra.meta_post.position == "top" or config.extra.meta_post.position == "both" %}
{{- macros::meta_post(page=page) }}
{%- endif %}{%- endif %}
{{ page.content | safe }}
{%- if config.extra.meta_post.position %}
{%- if config.extra.meta_post.position == "bottom" or config.extra.meta_post.position == "both" %}
{{- macros::meta_post(page=page) }}
{%- endif %}{%- endif %}
{%- 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 %}
<span class="topout">
<span class="topleft"> </span><a href="#" class="top">⋏</a>
</span>
{%- endif %}
{%- endif %}
{%- endblock gotop %}
|