-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.html
128 lines (115 loc) · 4.04 KB
/
default.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
{% assign page_title = page.title %}
{% if page.url != '/' %}
{% assign page_title = page_title | append: ' – Lucas Cherkewski' %}
{% endif %}
{% if page.collection == 'notes' %}
{% assign page_title = page.date | date: "Note: %B %e, %Y at %l:%S %P – Lucas Cherkewski" %}
{% endif %}
{% if page.collection == 'photos' %}
{% assign page_title = page.date | date: "Photo: %B %e, %Y at %l:%S %P – Lucas Cherkewski" %}
{% endif %}
{% if page.collection == 'links' %}
{% assign page_title = 'Link: ' | append: page_title %}
{% endif %}
<title>{{ page_title | markdownify | remove: '<p>' | remove: '</p>' | remove: '<em>' | remove: '</em>' }}</title>
<meta content="{{ site.title }}" property="og:site_name">
{% if page.title %}
<meta content="{{ page.title | append: ' – Lucas Cherkewski' }}" property="og:title">
{% else %}
<meta content="{{ site.title }}" property="og:title">
{% endif %}
{% if page.title %}
<meta content="article" property="og:type">
{% else %}
<meta content="website" property="og:type">
{% endif %}
{% if page.subtitle %}
<meta content="{{ page.subtitle }}" property="og:description">
{% else %}
<meta content="{{ site.description }}" property="og:description">
{% endif %}
{% if page.url %}
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{% endif %}
{% if page.image %}
<meta content="{{ site.url }}/assets/img/{{ page.image }}" property="og:image">
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://use.typekit.net/lzl8uvk.css">
<link rel="stylesheet" href="/assets/css/main.css">
{% if page.include_netlify_widget %}
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
{% endif %}
<link rel="me" href="https://twitter.com/lchski">
<link rel="me" href="https://github.com/lchski">
<link rel="me" href="https://mastodon.social/@lchski">
<link rel="me" href="mailto:[email protected]">
<link rel="micropub" href="https://indiekit.lucascherkewski.com/micropub">
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://indiekit.lucascherkewski.com/token">
</head>
{% case layout.site_section %}
{% when 'office' %}
{% assign site_section_class = 'page--office' %}
{% when 'study' %}
{% assign site_section_class = 'page--study' %}
{% else %}
{% assign site_section_class = '' %}
{% endcase %}
<body class="{{ 'page ' | append: site_section_class }}">
{% include header.html %}
<main class="page__content text-container">
{{ content }}
</main>
{% if layout.include_sidebar or page.include_sidebar %}
<aside class="page__sidebar text-container">
{% assign sidebar_type = layout.sidebar_type %}
{% if page.sidebar_type %}
{% assign sidebar_type = page.sidebar_type %}
{% endif %}
{% case sidebar_type %}
{% when 'post-index' %}
{% include aside-links.html %}
{% include aside-newsletter.html %}
{% include aside-blogroll.html %}
{% include aside-rss-study.html %}
{% when 'post' %}
{% include aside-links.html %}
{% include aside-blogroll.html %}
{% include aside-rss-study.html %}
{% when 'link' %}
{% include aside-rss-links.html %}
{% when 'note' %}
{% include aside-rss-notes.html %}
{% when 'newsletter-index' %}
{% include aside-newsletterroll.html %}
{% include aside-rss-newsletter.html %}
{% when 'newsletter' %}
{% include aside-newsletter.html %}
{% include aside-newsletterroll.html %}
{% include aside-rss-newsletter.html %}
{% else %}
{% endcase %}
</aside>
{% endif %}
{% include footer.html %}
{% if page.include_netlify_widget %}
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
{% endif %}
</body>
</html>