nano-theme 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39a80b55cdad19eafc6975f4834594b326733167bb0fee17ebadff7b8e72dd3d
4
- data.tar.gz: 791e7da01b154e52d4c954a7b18bd998ed0cfdda7b7effae92516d724762e4ba
3
+ metadata.gz: 7ffb55efc62bf67c8d3c2f16ee2c7546c76a100f696f97f0c884351b495b11ed
4
+ data.tar.gz: 77a9d8a7813ae78350cc5d9f86bd4fa799e0d4d8d9708419c02b7af15699a66f
5
5
  SHA512:
6
- metadata.gz: 733cc8c2231048f80c69577b59e26cb444d200e9d5006a16275a1c787d62ba265493c85f51f39f4d951c258dacef4b1ebb954b5172b6ff90320d3e1510a87402
7
- data.tar.gz: 99fa3dbfed13a95c7d767093dca2ff5f23e814a8aa834917c99cbac4e35b4ebddd12672b13d376932b27f1343894afa84c3595e9eb2f6a43c41ace4d7d1972d1
6
+ metadata.gz: d2fce2bf5e0d348cf7231dd721a76d8b2d5bf9b600b2b11ef0adae4e09213c47b4171fc414f0cf3f321451ef31f83ad52a1efd1be6ea306ff5f9ade62011bedf
7
+ data.tar.gz: 63c185c8aa9b0c8330b2c41d6ee6a14528dfdca4509264651abec9cf350ce770645292d280a96166e40675be780250c3e8d49e6eaac359b571b7129885894f6d
@@ -1,12 +1,12 @@
1
1
  <!-- Analytics Start -->
2
2
  {% if site.simpleanalytics == true %}
3
- <script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
3
+ <script src="https://scripts.simpleanalyticscdn.com/latest.js" async defer></script>
4
4
  <noscript>
5
- <img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" class="pxl">
5
+ <img class="pxl" src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="">
6
6
  </noscript>
7
7
  {% elsif site.matomoanalytics == true %}
8
8
  <!-- Matomo -->
9
- <script type="text/javascript">
9
+ <script>
10
10
  var _paq = window._paq || [];
11
11
  _paq.push(["setDoNotTrack", true]);
12
12
  _paq.push(["disableCookies"]);
@@ -22,7 +22,7 @@
22
22
  </script>
23
23
  <noscript>
24
24
  <p>
25
- <img src="https://{{site.matomourl}}/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="" class="pxl">
25
+ <img class="pxl" src="https://{{site.matomourl}}/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="">
26
26
  </p>
27
27
  </noscript>
28
28
  {% elsif site.fathomanalytics == true %}
@@ -31,5 +31,11 @@
31
31
  {% else %}
32
32
  <script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
33
33
  {% endif %}
34
+ {% elsif site.plausibleanalytics == true %}
35
+ {% if site.customplausibleurl != "" %}
36
+ <script data-domain="{{site.github.url}}" src="https://{{site.customplausibleurl}}/js/index.js" async defer></script>
37
+ {% else %}
38
+ <script data-domain="{{site.github.url}}" src="https://plausible.io/js/plausible.js" async defer></script>
39
+ {% endif %}
34
40
  {% endif %}
35
41
  <!-- Analytics End -->
@@ -8,6 +8,16 @@
8
8
  {% endif %}
9
9
  {% elsif site.matomoanalytics %}
10
10
  <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'sha256-qj/jwzjem2sfrDp/CEX8ODDzwfezTtpX43MRAcQTuUQ=' https://cdn.matomo.cloud/{{site.matomourl}}/matomo.js">
11
+ {% elsif site.plausibleanalytics %}
12
+ {% if site.customplausibleurl == "" %}
13
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://plausible.io/js/plausible.js">
14
+ {% else %}
15
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://{{site.customplausibleurl}}/js/index.js">
16
+ {% endif %}
17
+ {% endif %}
18
+
19
+ {% if site.unsafecontent == false %}
20
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self' https://*">
11
21
  {% else %}
12
22
  <meta http-equiv="Content-Security-Policy" content="script-src 'self'">
13
- {% endif %}
23
+ {% endif %}
@@ -1,10 +1,20 @@
1
+ <h2><a href="{{ '/atom.xml' | | relative_url }}">Subscribe to the Feed.</a></h2>
1
2
  <ul>
2
3
  {% for post in site.posts %}
3
4
  <li>
5
+ {% if site.classicnews == true %}
4
6
  <p>
5
- <a class="news-text" href="{{ post.url }}"><b>{{ post.title }} ({{ post.dateS }}).</b></a>
6
- {{ post.excerpt }}
7
+ <a href="{{ post.url }}">
8
+ <b>{{ post.title }} ({{ post.dateS }}). </b>
9
+ </a>
10
+ {{ post.excerpt | strip_html }}
7
11
  </p>
12
+ {% else %}
13
+ <a href="{{ post.url }}">
14
+ <b>{{ post.title }} ({{ post.dateS }}). </b>
15
+ </a>
16
+ {{ post.excerpt }}
17
+ {% endif %}
8
18
  </li>
9
19
  {% endfor %}
10
20
  </ul>
@@ -6,20 +6,25 @@
6
6
  <meta charset="UTF-8">
7
7
  <meta http-equiv="x-ua-compatible" content="ie=edge">
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
- {% include analytics-csp.html %}
9
+ {% include csp.html %}
10
10
  <meta name="referrer" content="no-referrer, same-origin">
11
11
  <title>{{ page.title }} - {{ site.title }}</title>
12
+ <meta name="twitter:title" content="{{page.title}} - {{site.title}}">
12
13
  <meta property="og:title" content="{{page.title}} - {{site.title}}">{% if site.lang != "" %}
13
14
  <meta property="og:locale" content="{{site.lang}}">
14
- {% endif %}{% if page.description != "" %}
15
+ <meta http-equiv="language" content="{{site.lang}}">
16
+ {% endif %}{% if page.description != nil %}
15
17
  <meta name="description" content="{{page.description}}">
16
18
  <meta property="og:description" content="{{page.description}}">
17
- <meta name="twitter:description" content="{{page.description}}">{% elsif site.description != "" %}<meta name="description" content="{{site.description}}">
19
+ <meta name="twitter:description" content="{{page.description}}">{% elsif site.description != nil %}<meta name="description" content="{{site.description}}">
18
20
  <meta property="og:description" content="{{site.description}}">
19
21
  <meta name="twitter:description" content="{{site.description}}">{% endif %}{% for item in site.font-import %}
20
22
  <link rel="stylesheet" href="{{item}}">{% endfor %}
23
+ <link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html',''}}">
21
24
  <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
22
- {% if site.favicon != "" %}<link rel="shortcut icon" href="{{ site.favicon }}">{% endif %}
25
+ {% if site.favicon != "" %}<link rel="shortcut icon" href="{{ site.favicon }}">
26
+ <link rel="icon" href="{{site.favicon}}">
27
+ <link rel="apple-touch-icon" href="{{site.favicon}}">{% endif %}
23
28
  {% include verifications.html %}
24
29
  </head>
25
30
  <body>
@@ -40,51 +40,28 @@ body {
40
40
 
41
41
  // Typography
42
42
  @media only screen and (max-device-width: 480px) {
43
- h1 {
44
- font-size: 32px !important;
45
- }
46
-
47
- h2 {
48
- font-size: 21px !important;
49
- }
50
-
51
- h3 {
52
- font-size: 19px !important;
53
- }
54
-
55
- .post {
56
- h3 {
57
- font-size: 14px !important;
58
- }
59
- }
60
-
43
+ h1 { font-size: 28px !important; }
44
+ h2 { font-size: 21px !important; }
45
+ h3 { font-size: 19px !important; }
46
+ .post { h3 { font-size: 14px !important; } }
61
47
  h4, h5, h6 { font-size: 16px !important; }
62
- .tagline { font-size: 40px !important; }
48
+ .tagline, .tagline * { font-size: 40px !important; }
49
+ b { font-weight: $font-bold !important; } // Keeps bold bold, no matter the scenario
63
50
  }
64
51
 
65
- .bold { font-weight: $font-bold !important; } // Jekyll will process bold text to have the "bold" class
66
-
67
52
  p { margin: 1em 0; }
68
-
69
53
  h1 {
70
54
  font-size: 48px;
71
55
  letter-spacing: -.05em;
72
56
  font-weight: $font-bold;
73
57
  line-height: 1.1;
74
58
  }
75
-
76
59
  h2 {
77
60
  font-size: 24px;
78
61
  line-height: 1.35;
79
62
  }
80
-
81
- h3 {
82
- font-size: 16px;
83
- }
84
-
85
- ol, ul {
86
- margin: 2em 1em;
87
- }
63
+ h3 { font-size: 16px; }
64
+ ol, ul { margin: 2em 1em; }
88
65
 
89
66
  a, ul a, ol a, p a {
90
67
  color: $LIGHTlinkColour;
@@ -134,7 +111,6 @@ header {
134
111
  img {
135
112
  display: block;
136
113
  border: none !important;
137
- vertical-align: bottom;
138
114
  }
139
115
  }
140
116
  a {
@@ -188,7 +164,7 @@ nav {
188
164
  padding: 1.5em 32px;
189
165
  max-height: 30vh;
190
166
 
191
- p, .bold {
167
+ p, b {
192
168
  flex: 0 0 auto;
193
169
  margin: auto 16px;
194
170
  display: flex;
@@ -252,17 +228,11 @@ img {
252
228
  }
253
229
 
254
230
  // Blog Posts
255
- .post {
256
- h3 {
257
- font-size: 14px !important;
258
- }
259
- }
231
+ .post { h3 { font-size: 14px !important; } }
260
232
 
261
233
  // Auto Dark Theme as Declared by Browser/OS
262
234
  @media (prefers-color-scheme: dark) {
263
- a, ul a, ol a, p a {
264
- color: $DARKlinkColour;
265
- }
235
+ a, ul a, ol a, p a { color: $DARKlinkColour;}
266
236
  a:hover, ul a:hover, ol a:hover, p a:hover {
267
237
  color: $DARKlinkHoverColour;
268
238
  transition: color 250ms ease-in-out;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nano-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - doamatto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-14 00:00:00.000000000 Z
11
+ date: 2020-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-sitemap
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-feed
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.13'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.13'
41
55
  description:
42
56
  email:
43
57
  - hello@doamatto.xyz
@@ -47,8 +61,8 @@ extra_rdoc_files: []
47
61
  files:
48
62
  - LICENSE
49
63
  - README.md
50
- - _includes/analytics-csp.html
51
64
  - _includes/analytics.html
65
+ - _includes/csp.html
52
66
  - _includes/newsroom.html
53
67
  - _includes/site-footer.html
54
68
  - _includes/site-header.html