nano-theme 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/site-footer.html +7 -12
- data/_includes/site-header.html +6 -11
- data/_layouts/default.html +35 -47
- data/_layouts/page.html +8 -25
- data/_layouts/post.html +12 -0
- data/_sass/_theme.scss +20 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bba4319e2cdd35b005dbbeda970efa6a6ec2d3bf4c404b4838685087a8024bd
|
4
|
+
data.tar.gz: ccc92146459993d6d7cc075fc80068cf0eefe08c8c257a65eda60f6f7f22982c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b704c1e148027b17af5719b7b530925b549480750724ddf9b57b97448be5aaaf602f635d4a00ed98d2754b85e65cdf1a13f8621312fa5c1cfbb41c3b2f313db8
|
7
|
+
data.tar.gz: e3d4f2dd79fed82dd2d146b3d2b78798c6f4fa55f47b60016592ec1f85374d167ea59d057609340d48b2190246ce09b34983f1a9def6e60407e0efa1e1d5c4aa
|
data/_includes/site-footer.html
CHANGED
@@ -2,17 +2,12 @@
|
|
2
2
|
<footer>
|
3
3
|
<p class="copyright">
|
4
4
|
© {% if copyrightYear %}{{copyrightYear}}{% else %}{{ site.time | date: '%Y' }}{% endif %} {{ site.copyrightName }}.
|
5
|
-
<br
|
6
|
-
{%
|
7
|
-
|
8
|
-
|
9
|
-
{%
|
10
|
-
|
11
|
-
|
12
|
-
{% else %}
|
13
|
-
{% assign url = item.url | relative_url %}
|
14
|
-
{% endif %}
|
15
|
-
<a href="{{url}}">{{item.title}}</a>
|
16
|
-
{% endfor %}
|
5
|
+
<br>{% if site.webSource %}
|
6
|
+
<a href="{{site.webSource}}">Contribute to this site.</a><br>{% endif %}{% for item in site.footerLinks %}
|
7
|
+
{% if item.url contains '://' %}
|
8
|
+
{% assign url = item.url %}
|
9
|
+
{% else %}
|
10
|
+
{% assign url = item.url | relative_url %}
|
11
|
+
{% endif %}<a href="{{url}}">{{item.title}}</a>{% endfor %}
|
17
12
|
</p>
|
18
13
|
</footer>
|
data/_includes/site-header.html
CHANGED
@@ -1,23 +1,18 @@
|
|
1
|
-
<header>
|
2
|
-
|
3
|
-
<h1 class="logo">
|
1
|
+
<header>{% if site.logo %}
|
2
|
+
<h1 class="logo">
|
4
3
|
<a href="{{ '/' | relative_url }}">
|
5
4
|
<img src="{{site.logo}}" width="64px" alt="Home">
|
6
5
|
</a>
|
7
|
-
|
8
|
-
{% endif %}
|
6
|
+
</h1>{% endif %}
|
9
7
|
<nav>
|
10
|
-
<ul>
|
11
|
-
{% for item in site.navigation %}
|
8
|
+
<ul>{% for item in site.navigation %}
|
12
9
|
{% if item.url contains '://' %}
|
13
10
|
{% assign url = item.url %}
|
14
11
|
{% else %}
|
15
12
|
{% assign url = item.url | relative_url %}
|
16
|
-
{% endif %}
|
17
|
-
<li>
|
13
|
+
{% endif %}<li>
|
18
14
|
<a href="{{url}}">{{item.title}}</a>
|
19
|
-
</li>
|
20
|
-
{% endfor %}
|
15
|
+
</li>{% endfor %}
|
21
16
|
</ul>
|
22
17
|
</nav>
|
23
18
|
</header>
|
data/_layouts/default.html
CHANGED
@@ -1,58 +1,46 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
{
|
3
|
-
<html lang="{{site.lang}}">
|
1
|
+
<!doctype html>{% if site.lang %}
|
2
|
+
<html lang="{{site.lang}}">
|
4
3
|
{% else %}
|
5
|
-
|
6
|
-
{% endif %}
|
7
|
-
<head>
|
4
|
+
<html>
|
5
|
+
{% endif %}<head>
|
8
6
|
<meta charset="UTF-8">
|
9
7
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
10
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11
|
-
<meta http-equiv="Content-Security-Policy" content="script-src 'self'
|
9
|
+
<meta http-equiv="Content-Security-Policy" content="script-src 'self' https://cdn.usefathom.com">
|
12
10
|
<meta name="referrer" content="no-referrer, same-origin">
|
13
11
|
<title>{{ page.title }} - {{ site.title }}</title>
|
14
|
-
<meta property="og:title" content="{{page.title}} - {{site.title}}">
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
{%
|
23
|
-
<meta name="description" content="{{site.description}}">
|
24
|
-
<meta property="og:description" content="{{site.description}}">
|
25
|
-
<meta name="twitter:description" content="{{site.description}}">
|
26
|
-
{% endif %}
|
27
|
-
{% for item in site.font-import %}
|
28
|
-
<link rel="stylesheet" href="{{item}}">
|
29
|
-
{% endfor %}
|
12
|
+
<meta property="og:title" content="{{page.title}} - {{site.title}}">{% if site.lang %}
|
13
|
+
<meta property="og:locale" content="{{site.lang}}">
|
14
|
+
{% endif %}{% if page.description %}
|
15
|
+
<meta name="description" content="{{page.description}}">
|
16
|
+
<meta property="og:description" content="{{page.description}}">
|
17
|
+
<meta name="twitter:description" content="{{page.description}}">{% elsif site.description %}<meta name="description" content="{{site.description}}">
|
18
|
+
<meta property="og:description" content="{{site.description}}">
|
19
|
+
<meta name="twitter:description" content="{{site.description}}">{% endif %}{% for item in site.font-import %}
|
20
|
+
<link rel="stylesheet" href="{{item}}">{% endfor %}
|
30
21
|
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
31
|
-
{% if site.favicon %}
|
32
|
-
|
33
|
-
{%
|
34
|
-
|
35
|
-
{%
|
36
|
-
|
37
|
-
{%
|
38
|
-
|
39
|
-
{%
|
40
|
-
|
41
|
-
{%
|
42
|
-
|
43
|
-
{%
|
44
|
-
|
45
|
-
{%
|
46
|
-
|
47
|
-
{%
|
48
|
-
|
49
|
-
{%
|
50
|
-
|
51
|
-
{% elsif site.specificverify %}
|
52
|
-
<meta name="specificfeeds-verification-code" content="{{ site.specificverify }}">
|
53
|
-
{% endif %}
|
22
|
+
{% if site.favicon %}<link rel="shortcut icon" href="{{ site.favicon }}">{% endif %}{% if site.plingverify != "" %}
|
23
|
+
<meta name="ocs-site-verification" content="{{ site.plingverify }}">
|
24
|
+
{% endif %}{% if site.googleverify != "" %}
|
25
|
+
<meta name="google-site-verification" content="{{ site.googleverify }}">
|
26
|
+
{% endif %}{% if site.bingverify != "" %}
|
27
|
+
<meta name="msvalidate.01" content="{{ site.bingverify }}">
|
28
|
+
{% endif %}{% if site.pinverify != "" %}
|
29
|
+
<meta name="p:domain_verify" content="{{ site.pinverify }}">
|
30
|
+
{% endif %}{% if site.dailyverify != "" %}
|
31
|
+
<meta name="dailymotion-domain-verification" content="{{ site.dailyverify }}">
|
32
|
+
{% endif %}{% if site.yandexverify != "" %}
|
33
|
+
<meta name="yandex-verification" content="{{ site.yandexverify }}">
|
34
|
+
{% endif %}{% if site.nortonverify != "" %}
|
35
|
+
<meta name="norton-safeweb-site-verification" content="{{ site.nortonverify }}">
|
36
|
+
{% endif %}{% if site.alexaverify != "" %}
|
37
|
+
<meta name="alexaVerifyID" content="{{ site.alexaverify }}">
|
38
|
+
{% endif %}{% if site.wotverify != "" %}
|
39
|
+
<meta name="wot-verification" content="{{ site.wotverify }}">
|
40
|
+
{% endif %}{% if site.specificverify != "" %}
|
41
|
+
<meta name="specificfeeds-verification-code" content="{{ site.specificverify }}">{% endif %}
|
54
42
|
</head>
|
55
43
|
<body>
|
56
44
|
{{ content }}
|
57
45
|
</body>
|
58
|
-
</html>
|
46
|
+
</html>
|
data/_layouts/page.html
CHANGED
@@ -5,34 +5,17 @@ layout: default
|
|
5
5
|
{% include site-header.html %}
|
6
6
|
|
7
7
|
<div class="container">
|
8
|
-
|
8
|
+
{{ content }}
|
9
9
|
</div>
|
10
|
-
|
11
10
|
{% if site.simpleanalytics == true %}
|
12
|
-
<
|
13
|
-
|
11
|
+
<p>
|
12
|
+
<img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" class="pxl">
|
13
|
+
</p>
|
14
14
|
{% elsif site.matomoanalytics == true %}
|
15
|
-
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
_paq.push(["setDoNotTrack", true]);
|
20
|
-
_paq.push(["disableCookies"]);
|
21
|
-
_paq.push(['trackPageView']);
|
22
|
-
_paq.push(['enableLinkTracking']);
|
23
|
-
(function() {
|
24
|
-
var u="https://{{site.matomourl}}/";
|
25
|
-
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
26
|
-
_paq.push(['setSiteId', '{{site.matomositeid}}']);
|
27
|
-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
28
|
-
g.type='text/javascript'; g.async=true; g.defer=true; g.src='//cdn.matomo.cloud/{{site.matomourl}}/matomo.js'; s.parentNode.insertBefore(g,s);
|
29
|
-
})();
|
30
|
-
</script>
|
31
|
-
<noscript><p><img src="https://{{site.matomourl}}/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
|
32
|
-
<!-- End Matomo Code -->
|
33
|
-
{% endif %}
|
34
|
-
|
35
|
-
{% if site.fathomanalytics == true %}
|
15
|
+
<p>
|
16
|
+
<img src="https://{{site.matomourl}}/matomo.php?idsite=1&rec=1" style="border:0;" alt="" class="pxl">
|
17
|
+
</p>
|
18
|
+
{% elsif site.fathomanalytics == true %}
|
36
19
|
<script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
|
37
20
|
{% endif %}
|
38
21
|
|
data/_layouts/post.html
CHANGED
@@ -12,4 +12,16 @@ layout: default
|
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
|
15
|
+
{% if site.simpleanalytics == true %}
|
16
|
+
<p>
|
17
|
+
<img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" class="pxl">
|
18
|
+
</p>
|
19
|
+
{% elsif site.matomoanalytics == true %}
|
20
|
+
<p>
|
21
|
+
<img src="https://{{site.matomourl}}/matomo.php?idsite=1&rec=1" style="border:0;" alt="" class="pxl">
|
22
|
+
</p>
|
23
|
+
{% elsif site.fathomanalytics == true %}
|
24
|
+
<script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
|
25
|
+
{% endif %}
|
26
|
+
|
15
27
|
{% include site-footer.html %}
|
data/_sass/_theme.scss
CHANGED
@@ -86,7 +86,7 @@ ol, ul {
|
|
86
86
|
margin: 2em 1em;
|
87
87
|
}
|
88
88
|
|
89
|
-
a {
|
89
|
+
a, ul a, ol a, p a {
|
90
90
|
color: $LIGHTlinkColour;
|
91
91
|
text-decoration: none;
|
92
92
|
:hover {
|
@@ -185,13 +185,12 @@ nav {
|
|
185
185
|
justify-content: center;
|
186
186
|
background: $accentColour;
|
187
187
|
color: $headerTextColour;
|
188
|
-
padding
|
189
|
-
|
190
|
-
max-height: 32.5vh;
|
188
|
+
padding: 1.5em 32px;
|
189
|
+
max-height: 30vh;
|
191
190
|
|
192
191
|
p {
|
193
192
|
flex: 0 0 auto;
|
194
|
-
margin: 0;
|
193
|
+
margin: 0 16px;
|
195
194
|
display: flex;
|
196
195
|
flex-direction: column;
|
197
196
|
justify-content: center;
|
@@ -200,6 +199,7 @@ nav {
|
|
200
199
|
letter-spacing: -.05em;
|
201
200
|
font-weight: $font-regular;
|
202
201
|
line-height: 1.1;
|
202
|
+
white-space: nowrap;
|
203
203
|
}
|
204
204
|
}
|
205
205
|
|
@@ -231,7 +231,7 @@ footer {
|
|
231
231
|
margin-left: 2em !important;
|
232
232
|
margin-right: 24px !important;
|
233
233
|
}
|
234
|
-
.highlight, p, hr
|
234
|
+
.highlight, p, hr {
|
235
235
|
margin-left: 1em !important;
|
236
236
|
margin-right: 24px !important;
|
237
237
|
}
|
@@ -239,6 +239,7 @@ footer {
|
|
239
239
|
max-width: 100% !important;
|
240
240
|
margin: 1em 1em 1em 1em;
|
241
241
|
}
|
242
|
+
hr { margin-bottom: 1em; }
|
242
243
|
}
|
243
244
|
|
244
245
|
// Images
|
@@ -259,9 +260,12 @@ img {
|
|
259
260
|
|
260
261
|
// Auto Dark Theme as Declared by Browser/OS
|
261
262
|
@media (prefers-color-scheme: dark) {
|
262
|
-
a {
|
263
|
-
color: $DARKlinkColour;
|
264
|
-
|
263
|
+
a, ul a, ol a, p a {
|
264
|
+
color: $DARKlinkColour;
|
265
|
+
}
|
266
|
+
a:hover, ul a:hover, ol a:hover, p a:hover {
|
267
|
+
color: $DARKlinkHoverColour;
|
268
|
+
transition: color 250ms ease-in-out;
|
265
269
|
}
|
266
270
|
.highlight {
|
267
271
|
background: $DARKcodebgColour;
|
@@ -276,4 +280,11 @@ img {
|
|
276
280
|
background: $DARKcodebgColour;
|
277
281
|
color: $DARKcodeColour;
|
278
282
|
}
|
283
|
+
}
|
284
|
+
|
285
|
+
// Make pixel trackers invisible
|
286
|
+
.pxl {
|
287
|
+
width: 1px;
|
288
|
+
height: 1px;
|
289
|
+
border: none;
|
279
290
|
}
|