-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.pug
158 lines (143 loc) · 7 KB
/
layout.pug
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
doctype
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1.0")
//- meta(name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0")
meta(name='ir-site-verification-token', value='-676786771')
if renderData && renderData.title
title #[= renderData.title ] | #[= meta.siteTitle ]
else if title
title #[= title ] | #[= meta.siteTitle ]
else
title #[= meta.siteTitle ]
link(rel="apple-touch-icon-precomposed" sizes="57x57" href="/assets/favicon/apple-touch-icon-57x57.png")
link(rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/favicon/apple-touch-icon-114x114.png")
link(rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/favicon/apple-touch-icon-72x72.png")
link(rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/favicon/apple-touch-icon-144x144.png")
link(rel="apple-touch-icon-precomposed" sizes="60x60" href="/assets/favicon/apple-touch-icon-60x60.png")
link(rel="apple-touch-icon-precomposed" sizes="120x120" href="/assets/favicon/apple-touch-icon-120x120.png")
link(rel="apple-touch-icon-precomposed" sizes="76x76" href="/assets/favicon/apple-touch-icon-76x76.png")
link(rel="apple-touch-icon-precomposed" sizes="152x152" href="/assets/favicon/apple-touch-icon-152x152.png")
link(rel="icon" type="image/png" href="/assets/favicon/favicon-196x196.png" sizes="196x196")
link(rel="icon" type="image/png" href="/assets/favicon/favicon-96x96.png" sizes="96x96")
link(rel="icon" type="image/png" href="/assets/favicon/favicon-32x32.png" sizes="32x32")
link(rel="icon" type="image/png" href="/assets/favicon/favicon-16x16.png" sizes="16x16")
link(rel="icon" type="image/png" href="/assets/favicon/favicon-128.png" sizes="128x128")
meta(name="application-name" content="ChrisSpiegl")
meta(name="msapplication-TileColor" content="#cc5630")
meta(name="msapplication-TileImage" content="/assets/favicon/mstile-144x144.png")
meta(name="msapplication-square70x70logo" content="/assets/favicon/mstile-70x70.png")
meta(name="msapplication-square150x150logo" content="/assets/favicon/mstile-150x150.png")
meta(name="msapplication-wide310x150logo" content="/assets/favicon/mstile-310x150.png")
meta(name="msapplication-square310x310logo" content="/assets/favicon/mstile-310x310.png")
link(rel="stylesheet", href="/assets/style.css")
link(rel="alternate", href="/feed.xml", type="application/atom+xml", title=`${meta.siteTitle} Atom Feed`)
body
header.container
section
- const avatarImage = '/assets/images/other/avatar-2015-05-17-at-18-31-56-square-mini.jpg'
img#avatar(srcset=`${meta.imageResizer(320, 0, avatarImage)} 640w, ${meta.imageResizer(640, 0, avatarImage)} 1280w, ${meta.imageResizer(1280, 0, avatarImage)} 1920w` src=avatarImage, alt="")
div.text
h1
a(href="/") Chris Spiegl
if (nomadlist.now.string !== 'Unknown')
p
small: em Currently in #[a(href='/location')= nomadlist.now.string]
nav.navMain
ul
li
a(href="/") Home
li
a(href="/blog") Blog
li
a(href="/now") Now
li
a(href="/consulting") Consulting
li
a(href="/courses", title="Skillshare Profile — External Link", target="_blank") Courses
li
a(href="/gear") Gear
li
a(href="/books") Books
li
a(href="/movies") Movies
li
a(href="/youtube", title="YouTube Profile — External Link", target="_blank") YouTube
li
a(href="/instagram", title="Instagram Profile — External Link", target="_blank") Instagram
li
a(href="/twitter", title="Twitter Profile — External Link", target="_blank") Twitter
li
a(href="/newsletter") Newsletter
li
a(href="/newsletter/archive", title="Creation Overview", target="_blank") Creations
li
a(href="/podcast") Podcast
li
a(href="/support") Support
li
a(href="/more") More
section#content
block content
footer.container
section#search()
form(action="https://duckduckgo.com/" method="get")
input(type="hidden" name="ia" value="web")
input(type="hidden" name="sites" value="chrisspiegl.com")
input.text-center(type="text" name="q" value="" placeholder="Search for anything on ChrisSpiegl.com" required)
input.btn.btn-block(type="submit" value="Search")
nav.navFooter
ul
li: a(href="/uncopyright") Uncopyrighted
li: a(href="/privacy-policy") Privacy Policy
li: a(href="/legal-disclosure") Legal Disclosure
//- li: a#sha(title=`Last changed ${global.dateReadable(git.commitdate)}` href=`https://github.com/chrisspiegl/${git.repo}/blob/master${page.inputPath.slice(1)}`)
//- if (git.curbranch != 'HEAD')
//- = git.curbranch
//- = ' '
//- = git.commitsha
ul
li(style='text-align: center')
a(href="/chrisspiegl.asc") PGP Public Key
= ' '
| fingerprint:
br
| 42AC D474 675C C855 32F2 E9F7 AC6B 04AE E280 9F96
//- Footer Blocks and Javascript
//- Matomo Analytics
if meta.build.env === 'production'
script(type="text/javascript").
var _paq = window._paq || [];
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://matomo.spiegl.co/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
//- Littlefoot - Footnotes
script(src="https://cdn.jsdelivr.net/npm/littlefoot@3.3/dist/littlefoot.min.js")
script(type="application/javascript").
littlefoot.default({
buttonTemplate: `<sup
aria-expanded="false"
aria-label="Footnote <% number %>"
class="footnote-ref">
<a
href="#<% reference %>"
class="footnote-ref"
id="<% reference %>"
data-footnote-identifier="<% reference %>"
data-footnote-style="default"
alt="See Footnote <% number %>"
rel="footnote"
data-footnote-content="<% content %>">
<% number %>
</a></sup>`
})
Array.prototype.forEach.call(document.querySelectorAll('.footnotes.footnote-print-only, .footnotes .footnote-print-only'), e => e.classList.remove('footnote-print-only'))
Array.prototype.forEach.call(document.querySelectorAll('.footnote-backref'), (el) => { el.href = el.href.replace('#', '#lf-') })