jekyll-theme-switch 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="monthly-archive">
5
+ <div>
6
+ {% assign m = page.date | date: "%-m" %}
7
+ <h1 class="title">Maandarchief voor <time datetime="{{ page.date | date: '%Y-%m' }}">{% include month.html month=m %} {{ page.date | date: "%Y" }}</time></h1>
8
+ </div>
9
+ <div>
10
+ <dl>
11
+ {% for post in page.posts reversed %}
12
+ <dt>{% include date.html date=post.date %}</dt>
13
+ <dd><a href="{{ post.url }}"><span>{{ post.title }}</span></a></dd>
14
+ {% endfor %}
15
+ </dl>
16
+ </div>
17
+ </div>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post {{ page.path | replace: '/', '-' | replace: '.', '-' }}">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ </header>
9
+
10
+ <article class="post-content">
11
+ {{ content }}
12
+ </article>
13
+
14
+ </div>
@@ -0,0 +1,34 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post {{ page.id | replace: '/', '-' }}">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ {% include post_meta.html post=page %}
9
+ </header>
10
+
11
+ <article class="post-content">
12
+ {{ content }}
13
+
14
+ <div style="clear: both;"></div>
15
+ </article>
16
+
17
+ {% unless page.comments == false %}
18
+ {% include disqus.html %}
19
+ {% endunless %}
20
+
21
+ <div class="post-nav">
22
+ {% if page.previous %}
23
+ <a href="{{ page.previous.url }}" class="previous button" title="{{ page.previous.title }}">Vorige</a>
24
+ {% else %}
25
+ <span class="previous button disabled">Vorige</span>
26
+ {% endif %}
27
+ {% if page.next %}
28
+ <a href="{{ page.next.url }}" class="next button" title="{{ page.next.title }}">Volgende</a>
29
+ {% else %}
30
+ <span class="next button disabled">Volgende</span>
31
+ {% endif %}
32
+ </div>
33
+
34
+ </div>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: post
3
+ ---
4
+ {{ content }}
5
+ <div class="series-footer">
6
+ <ul>
7
+ {% for post in page.series_posts %}
8
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
9
+ {% endfor %}
10
+ </ul>
11
+ </div>
@@ -0,0 +1,16 @@
1
+ ---
2
+ layout: post
3
+ ---
4
+ {% assign series_index = page.series_index[0] %}
5
+ <div class="series-header">
6
+ <p>Deze blogpost is onderdeel van de serie <a href="{{ series_index.url }}">{{ series_index.title }}</a>.</p>
7
+ </div>
8
+ {{ content }}
9
+ <div class="series-footer">
10
+ <p>Deze blogpost is onderdeel van de serie <a href="{{ series_index.url }}">{{ series_index.title }}</a>.</p>
11
+ <ul>
12
+ {% for post in series_index.series_posts %}
13
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
14
+ {% endfor %}
15
+ </ul>
16
+ </div>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="tag-index">
6
+ <h1 class="page-heading">{{ page.title | capitalize | replace: "Ij", "IJ" }}</h1>
7
+
8
+ <ul class="post-list">
9
+ {% for post in page.posts %}
10
+ <li {% if post.lead_image %}style="background-image: linear-gradient(90deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0.7) 80%), url('{{ post.lead_image }}'); background-size: contain;"{% endif %}>
11
+ {% include post_meta.html post=post %}
12
+
13
+ <h2>
14
+ <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
15
+ </h2>
16
+ <div>
17
+ {{ post.excerpt }}
18
+ </div>
19
+ <a href="{{ post.url | prepend: site.baseurl }}">lees verder</a>
20
+ </li>
21
+ {% endfor %}
22
+ </ul>
23
+ </div>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="yearly-archive">
5
+ <div>
6
+ <h1 class="title">Jaararchief voor <time datetime="{{ page.date | date: '%Y' }}">{{ page.date | date: "%Y" }}</time></h1>
7
+ </div>
8
+ <div>
9
+ {% assign posts = page.posts | group_by_exp: "post", "post.date | date: '%-m'" %}
10
+ {% for group in posts reversed %}
11
+ <h2>{% include month.html month=group.name %}</h2>
12
+ <dl>
13
+ {% for post in group.items reversed %}
14
+ <dt>{% include date.html date=post.date %}</dt>
15
+ <dd><a href="{{ post.url }}"><span>{{ post.title }}</span></a></dd>
16
+ {% endfor %}
17
+ </dl>
18
+ {% endfor %}
19
+ </div>
20
+ </div>
@@ -0,0 +1,234 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+
12
+
13
+ /**
14
+ * Basic styling
15
+ */
16
+ body {
17
+ font-family: $base-font-family;
18
+ font-size: $base-font-size;
19
+ line-height: $base-line-height;
20
+ font-weight: 300;
21
+ color: $text-color;
22
+ background-color: $background-color;
23
+ -webkit-text-size-adjust: 100%;
24
+ }
25
+
26
+
27
+
28
+ /**
29
+ * Set `margin-bottom` to maintain vertical rhythm
30
+ */
31
+ h1, h2, h3, h4, h5, h6,
32
+ p, blockquote, pre,
33
+ ul, ol, dl, figure,
34
+ %vertical-rhythm {
35
+ margin-bottom: $spacing-unit / 2;
36
+ }
37
+
38
+
39
+
40
+ /**
41
+ * Images
42
+ */
43
+ img {
44
+ max-width: 100%;
45
+ vertical-align: middle;
46
+ }
47
+
48
+ article {
49
+ img {
50
+ float: left;
51
+ margin-right: 1em;
52
+ }
53
+
54
+ p.center {
55
+ clear: both;
56
+ text-align: center;
57
+
58
+ img {
59
+ float: none;
60
+ }
61
+ }
62
+
63
+ p.fill {
64
+ text-align: center;
65
+
66
+ img {
67
+ float: none;
68
+ width: 90%;
69
+ }
70
+ }
71
+
72
+ p.small,
73
+ div.footnotes {
74
+ font-size: 0.75em;
75
+ }
76
+ }
77
+
78
+ video {
79
+ width: 100%;
80
+ vertical-align: middle;
81
+ }
82
+
83
+ /**
84
+ * Figures
85
+ */
86
+ figure > img {
87
+ display: block;
88
+ float: none;
89
+ }
90
+
91
+ figcaption {
92
+ font-size: $small-font-size;
93
+ }
94
+
95
+
96
+
97
+ /**
98
+ * Lists
99
+ */
100
+ ul, ol {
101
+ margin-left: $spacing-unit;
102
+ }
103
+
104
+ li {
105
+ > ul,
106
+ > ol {
107
+ margin-bottom: 0;
108
+ }
109
+ }
110
+
111
+
112
+
113
+ /**
114
+ * Headings
115
+ */
116
+ h1, h2, h3, h4, h5, h6 {
117
+ font-weight: bold;
118
+ }
119
+
120
+
121
+
122
+ /**
123
+ * Links
124
+ */
125
+ a {
126
+ color: $brand-color;
127
+
128
+ &:visited {
129
+ color: darken($brand-color, 15%);
130
+ }
131
+
132
+ &:hover {
133
+ color: $text-color;
134
+ text-decoration: underline;
135
+ }
136
+ }
137
+
138
+
139
+
140
+ /**
141
+ * Blockquotes
142
+ */
143
+ blockquote {
144
+ border-left: ($spacing-unit / 8) solid $grey-color;
145
+ padding-left: $spacing-unit / 2;
146
+ font-style: italic;
147
+
148
+ > :last-child {
149
+ margin-bottom: 0;
150
+ }
151
+ }
152
+
153
+
154
+
155
+ /**
156
+ * Code formatting
157
+ */
158
+ pre,
159
+ code {
160
+ font-size: 15px;
161
+ border: 1px solid $grey-color-light;
162
+ border-radius: 3px;
163
+ background-color: #eef;
164
+ }
165
+
166
+ code {
167
+ padding: 1px 5px;
168
+ }
169
+
170
+ pre {
171
+ padding: 8px 12px;
172
+ overflow-x: scroll;
173
+
174
+ > code {
175
+ border: 0;
176
+ padding-right: 0;
177
+ padding-left: 0;
178
+ }
179
+ }
180
+
181
+
182
+
183
+ /**
184
+ * Wrapper
185
+ */
186
+ .wrapper {
187
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
188
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
189
+ margin-right: auto;
190
+ margin-left: auto;
191
+ padding-right: $spacing-unit;
192
+ padding-left: $spacing-unit;
193
+ @extend %clearfix;
194
+
195
+ @include media-query($on-laptop) {
196
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
197
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
198
+ padding-right: $spacing-unit / 2;
199
+ padding-left: $spacing-unit / 2;
200
+ }
201
+ }
202
+
203
+
204
+
205
+ /**
206
+ * Clearfix
207
+ */
208
+ %clearfix {
209
+
210
+ &:after {
211
+ content: "";
212
+ display: table;
213
+ clear: both;
214
+ }
215
+ }
216
+
217
+
218
+
219
+ /**
220
+ * Icons
221
+ */
222
+ .icon {
223
+
224
+ > svg {
225
+ display: inline-block;
226
+ width: 16px;
227
+ height: 16px;
228
+ vertical-align: middle;
229
+
230
+ path {
231
+ fill: $grey-color;
232
+ }
233
+ }
234
+ }
@@ -0,0 +1,30 @@
1
+
2
+ @media (prefers-color-scheme: dark) {
3
+ body {
4
+ color: $text-color-dark;
5
+ }
6
+
7
+ body,
8
+ .page-content,
9
+ .post-content,
10
+ .pagination,
11
+ .site-nav,
12
+ .section-nav,
13
+ .post-nav,
14
+ .post-list li
15
+ {
16
+ background-color: $background-color-dark;
17
+ }
18
+
19
+ a {
20
+ color: $brand-color-dark;
21
+
22
+ &:visited {
23
+ color: lighten($brand-color-dark, 15%);
24
+ }
25
+
26
+ &:hover {
27
+ color: $text-color-dark;
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,17 @@
1
+
2
+ img.askew_left {
3
+ transform: matrix3d(1, 0, 0, 0.0006, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
4
+ border: red 2px solid;
5
+ width: $content-width / 4;
6
+ }
7
+
8
+ img.reflect,
9
+ img.askew_left
10
+ {
11
+ border-radius: 3pt;
12
+ -webkit-box-reflect: below 7pt -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(60%, transparent), to(rgba(250, 250, 250, 0.3)));
13
+ }
14
+
15
+ img.small {
16
+ width: 15em;
17
+ }
@@ -0,0 +1,19 @@
1
+
2
+ .youtube-embedder {
3
+ position: relative;
4
+ padding-bottom: 56.25%;
5
+ height: 0;
6
+ overflow: hidden;
7
+ max-width: 100%;
8
+ margin: 1em 0;
9
+ }
10
+
11
+ .youtube-embedder iframe,
12
+ .youtube-embedder object,
13
+ .youtube-embedder embed {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ }