-
Notifications
You must be signed in to change notification settings - Fork 0
Collapse file tree
Files
Search this repository
/
Copy pathtemplate.html.liquid
More file actions
More file actions
183 lines (165 loc) · 5.19 KB
/
template.html.liquid
File metadata and controls
183 lines (165 loc) · 5.19 KB
You must be signed in to make or propose changes
More edit options
Edit and raw actions
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{%
# All-in-one template for the home page and article pages.
%}
<!DOCTYPE html>
<html lang="en">
{% if is_home %}
<head prefix="og: https://ogp.me/ns#">
{% else %}
<head prefix="og: https://ogp.me/ns# article: https://ogp.me/ns/article#">
{% endif %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta name="format-detection" content="telephone=no">
{% if is_home %}
<title>{{ site_name }}</title>
{% else %}
<title>{{ main_heading }}</title>
{% endif %}
<link rel="stylesheet" href="{{ stylesheet_url }}">
{% if has_math %}
<!-- MathJax -->
<script defer src="{{ mathjax_config_script_url }}"></script>
<script
defer
src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0/startup.js"
integrity="sha512-bTOpOLAF7Z74dLZ3Z3jfQE7SH0mFuuneuOQR+/3EP811prUfVzgtQLPAnIFGlAXc5fs9b1dIjfi8zd4Px1xrAQ=="
crossorigin="anonymous"
></script>
<!-- /MathJax -->
{% endif %}
<link rel="canonical" href="{{ canonical_url }}">
<link rel="license" href="{{ license_url }}">
{% if is_home %}
<meta name="author" content="{{ publisher_name }}">
{% else %}
<meta name="author" content="{{ author_name }}">
{% endif %}
<!-- OG meta tags -->
{% if is_home %}
<meta property="og:type" content="website">
<meta property="og:title" content="{{ site_name }}">
{% else %}
<meta property="og:type" content="article">
<meta property="og:title" content="{{ main_heading }}">
{% endif %}
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:image" content="{{ publisher_logo_url }}">
<meta property="og:site_name" content="{{ site_name }}">
{% unless is_home %}
<meta property="article:published_time" content="{{ published_date_iso }}">
<meta property="article:modified_time" content="{{ modified_date_iso }}">
{% endunless %}
<!-- /OG meta tags -->
<!-- X Card meta tags -->
<meta name="twitter:card" content="summary">
<!-- /X Card meta tags -->
<!-- Structured data -->
{% if is_home %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "{{ site_name }}",
"url": "{{ canonical_url }}",
"image": "{{ publisher_logo_url }}",
"license": "{{ license_url }}",
"author": {
"@type": "Organization",
"name": "{{ publisher_name }}",
"url": "{{ publisher_url }}",
"logo": "{{ publisher_logo_url }}"
},
"publisher": {
"@type": "Organization",
"name": "{{ publisher_name }}",
"url": "{{ publisher_url }}",
"logo": "{{ publisher_logo_url }}"
}
}
</script>
{% else %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "{{ main_heading }}",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ canonical_url }}"
},
"image": "{{ publisher_logo_url }}",
"datePublished": "{{ published_date_iso }}",
"dateModified": "{{ modified_date_iso }}",
"license": "{{ license_url }}",
"author": {
"@type": "Person",
"name": "{{ author_name }}",
"url": "{{ author_url }}"
},
"publisher": {
"@type": "Organization",
"name": "{{ publisher_name }}",
"url": "{{ publisher_url }}",
"logo": "{{ publisher_logo_url }}"
}
}
</script>
{% endif %}
<!-- /Structured data -->
</head>
<body>
<!-- Page header -->
<header>
<nav>
<p>
{% if is_home %}
{% for page in all_pages %}
<a href="{{ page.url }}">{{ page.title }}</a>
{% unless forloop.last %}
·
{% endunless %}
{% endfor %}
{% else %}
<a href="{{ home_url }}">{{ site_name }}</a>
{% endif %}
</p>
</nav>
</header>
<!-- /Page header -->
<!-- Page body -->
<main>
<article>
<!-- Article header -->
<header>
<h1>{{ main_heading }}</h1>
{% unless is_home %}
<p>
<time datetime="{{ published_date_iso }}">{{ published_date_display }}</time>
{% if is_modified %}
· 🕒
<time datetime="{{ modified_date_iso }}">{{ modified_date_display }}</time>
{% endif %}
</p>
{% endunless %}
</header>
<!-- /Article header -->
<!-- Article body -->
<div>
{{ article_body_html }}
</div>
<!-- /Article body -->
</article>
</main>
<!-- /Page body -->
<!-- Page footer -->
<footer>
{{ page_footer_html }}
<p>
<a href="{{ wiki_page_url }}">Edit this page</a>
</p>
</footer>
<!-- /Page footer -->
</body>
</html>