-
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
155 lines (141 loc) · 4.24 KB
/
template.html.liquid
File metadata and controls
155 lines (141 loc) · 4.24 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
{%
##
# All-in-one Liquid template for both the home page and individual article pages.
#
%}
<!DOCTYPE html>
<html lang="en">
<head>
<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">
<!-- 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="{{ article_title }}">
{% endif %}
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:image" content="{{ publisher_logo_url }}">
<!-- /OG meta tags -->
<!-- Twitter Card meta tags -->
<meta name="twitter:card" content="summary">
<!-- /Twitter Card meta tags -->
{% if is_home %}
<title>{{ site_name }}</title>
{% else %}
<title>{{ article_title }}</title>
{% endif %}
<link rel="canonical" href="{{ canonical_url }}">
<link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
<link rel="stylesheet" href="{{ stylesheet_url }}">
<!-- MathJax -->
<script defer src="{{ mathjax_config_script_url }}"></script>
<script
defer
src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0/startup.js"
integrity="sha384-V8Uc+jzQMe7n4tFx1oAuCOiBj0WFbXurxmgghjXXzYHRKbpk8D/aCD16BkdE/MDh"
crossorigin="anonymous"
></script>
<!-- /MathJax -->
<!-- Structured data -->
{% if is_home %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "{{ site_name }}",
"url": "{{ canonical_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": "{{ article_title }}",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ canonical_url }}"
},
"image": "{{ publisher_logo_url }}",
"datePublished": "{{ published_date_iso }}",
"dateModified": "{{ modified_date_iso }}",
"author": {
"@type": "Person",
"name": "{{ author_name }}"
},
"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>{{ article_title }}</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>