nano-theme 0.2.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 282061fe94d40af756ffc6a050c791ff26f5d4d9bd5d65cdc023e5f062047178
4
- data.tar.gz: e3fc25145d6bd51290bf43d56e20bf0e268c955684314844cd3a58cce9333495
3
+ metadata.gz: 7ffb55efc62bf67c8d3c2f16ee2c7546c76a100f696f97f0c884351b495b11ed
4
+ data.tar.gz: 77a9d8a7813ae78350cc5d9f86bd4fa799e0d4d8d9708419c02b7af15699a66f
5
5
  SHA512:
6
- metadata.gz: 376ee8b2a6ce68b69e55fe1b229ab37285f8546d073c14fc3eb41c56d3c610ac6e887bcc457e974e4fa979522d65e08d437206d9b99fcba24865a8a194adbff2
7
- data.tar.gz: 3210b4ee8a227644f5a852daa0880fad67f4b8e6d2f66b1dff2a1198c728722699841d377bfe3a1d131e8bc8145ce5760acc0b28670d6dd2631fb797aec3fd1c
6
+ metadata.gz: d2fce2bf5e0d348cf7231dd721a76d8b2d5bf9b600b2b11ef0adae4e09213c47b4171fc414f0cf3f321451ef31f83ad52a1efd1be6ea306ff5f9ade62011bedf
7
+ data.tar.gz: 63c185c8aa9b0c8330b2c41d6ee6a14528dfdca4509264651abec9cf350ce770645292d280a96166e40675be780250c3e8d49e6eaac359b571b7129885894f6d
data/README.md CHANGED
@@ -1,21 +1,17 @@
1
- # Nano
2
-
3
- [![Gem Version](https://badge.fury.io/rb/nano-theme.svg)](https://badge.fury.io/rb/nano-theme)
4
-
5
- **This is in active developement. [You can see the roadmap here.](https://trello.com/b/6uBEAJwj)**
6
-
7
- Nano is a super lightweight Jekyll theme built to work great on all platforms, respect user privacy, and load at lightning-fast speeds.
8
-
9
- ### Installation
10
-
11
- You can install Nano is two ways:
12
-
13
- **a) Cloning the demo branch**
14
- You can clone the demo branch (labelled `docs`) and [configure based on what's recommended in the wiki of this repo](https://github.com/doamatto/nano/wiki/Configuration).
15
-
16
- **b) Installing the Gem**
17
- You can also use [`gem install nano-theme`](https://rubygems.org/gems/nano-theme) and [configure based on what's recommended in the wiki of this repo](https://github.com/doamatto/nano/wiki/Configuration).
18
-
19
- ### Credits
20
-
21
- Many thanks to the Jekyll and RubyGems community for great documentation, allowing me to make this simply and swiftly.
1
+ # Nano
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/nano-theme.svg)](https://badge.fury.io/rb/nano-theme) [![Gem downloads](https://img.shields.io/gem/dt/nano-theme)](https://rubygems.org/gems/nano-theme)
4
+
5
+ **This is in active developement. [You can see the roadmap here.](https://trello.com/b/6uBEAJwj)**
6
+
7
+ Nano is a super lightweight Jekyll theme built to work great on all platforms, respect user privacy, and load at lightning-fast speeds.
8
+
9
+ ### Installation
10
+ Installing Nano is simple. Start by downloading the latest version of Nano via [the releases page](https://github.com/doamatto/nano/releases/latest). Afterwards, using Gem, install bundler (`gem install bundler`). Then, run `bundle install` to install everything you need for Nano to work properly. You're now ready to configure your installation and deploy wherever.
11
+
12
+ ### Credits
13
+ Many thanks to the Jekyll and RubyGems community for great documentation, allowing me to make this simply and swiftly.
14
+
15
+ Big thanks to the StackOverflow community; they helped me find some nice CSS workarounds for some things (like missing images). I quoted the posts I used when I used them.
16
+
17
+ Special thanks to [Rishi](https://github.com/rveerepalli) for staying up late on the day before the launch of v0.3 to help fix some issues.
@@ -0,0 +1,41 @@
1
+ <!-- Analytics Start -->
2
+ {% if site.simpleanalytics == true %}
3
+ <script src="https://scripts.simpleanalyticscdn.com/latest.js" async defer></script>
4
+ <noscript>
5
+ <img class="pxl" src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="">
6
+ </noscript>
7
+ {% elsif site.matomoanalytics == true %}
8
+ <!-- Matomo -->
9
+ <script>
10
+ var _paq = window._paq || [];
11
+ _paq.push(["setDoNotTrack", true]);
12
+ _paq.push(["disableCookies"]);
13
+ _paq.push(['trackPageView']);
14
+ _paq.push(['enableLinkTracking']);
15
+ (function() {
16
+ var u="https://{{site.matomourl}}/";
17
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
18
+ _paq.push(['setSiteId', '{{site.matomositeid}}']);
19
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
20
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src='https://cdn.matomo.cloud/{{site.matomourl}}/matomo.js'; s.parentNode.insertBefore(g,s);
21
+ })();
22
+ </script>
23
+ <noscript>
24
+ <p>
25
+ <img class="pxl" src="https://{{site.matomourl}}/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="">
26
+ </p>
27
+ </noscript>
28
+ {% elsif site.fathomanalytics == true %}
29
+ {% if site.customfathomurl != "" %}
30
+ <script src="https://{{site.customfathomurl}}" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
31
+ {% else %}
32
+ <script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
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 %}
40
+ {% endif %}
41
+ <!-- Analytics End -->
@@ -0,0 +1,23 @@
1
+ {% if site.simpleanalytics == true %}
2
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://scripts.simpleanalyticscdn.com/latest.js">
3
+ {% elsif site.fathomanalytics == true %}
4
+ {% if site.customfathomurl == "" %}
5
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://cdn.usefathom.com/script.js">
6
+ {% else %}
7
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://{{site.customfathomurl}}">
8
+ {% endif %}
9
+ {% elsif site.matomoanalytics %}
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://*">
21
+ {% else %}
22
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self'">
23
+ {% endif %}
@@ -0,0 +1,20 @@
1
+ <h2><a href="{{ '/atom.xml' | | relative_url }}">Subscribe to the Feed.</a></h2>
2
+ <ul>
3
+ {% for post in site.posts %}
4
+ <li>
5
+ {% if site.classicnews == true %}
6
+ <p>
7
+ <a href="{{ post.url }}">
8
+ <b>{{ post.title }} ({{ post.dateS }}). </b>
9
+ </a>
10
+ {{ post.excerpt | strip_html }}
11
+ </p>
12
+ {% else %}
13
+ <a href="{{ post.url }}">
14
+ <b>{{ post.title }} ({{ post.dateS }}). </b>
15
+ </a>
16
+ {{ post.excerpt }}
17
+ {% endif %}
18
+ </li>
19
+ {% endfor %}
20
+ </ul>
@@ -1,17 +1,13 @@
1
+ <hr class="end">
1
2
  <footer>
2
3
  <p class="copyright">
3
4
  &copy; {% if copyrightYear %}{{copyrightYear}}{% else %}{{ site.time | date: '%Y' }}{% endif %} {{ site.copyrightName }}.
4
- <br />
5
- {% if site.webSource %}
6
- <a href="{{site.webSource}}">Contribute to this site.</a><br />
7
- {% endif %}
8
- {% for item in site.footerLinks %}
9
- {% if item.url contains '://' %}
10
- {% assign url = item.url %}
11
- {% else %}
12
- {% assign url = item.url | relative_url %}
13
- {% endif %}
14
- <a href="{{url}}">{{item.title}}</a>
15
- {% 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 %}
16
12
  </p>
17
13
  </footer>
@@ -1,26 +1,23 @@
1
- <header class="header">
2
- <div class="container">
3
- <nav class="nav">
4
- {% if site.logo %}
5
- <a href="{{ '/' | relative_url }}"><img class="nav_logo" src="{{site.logo}}" /></a>
6
- {% endif %}
7
- <ul class="links">
8
- <input type="checkbox" id="collap-nav" class="toggle">
9
- <label for="menu" class="lbl-toggle">Menu</label>
10
- {% for item in site.navigation %}
11
- {% if item.url contains '://' %}
12
- {% assign url = item.url %}
13
- {% else %}
14
- {% assign url = item.url | relative_url %}
15
- {% endif %}
16
- <li> <a class="navLink" href="{{url}}">{{item.title}}</a> </li>
17
- {% endfor %}
18
- </ul>
19
- </nav>
20
- {% if site.tagline %}
21
- <div class="center">
22
- <h1>{{site.tagline}}</h1>
23
- </div>
24
- {% endif %}
25
- </div>
26
- </header>
1
+ <header>{% if site.logo %}
2
+ <h1 class="logo">
3
+ <a href="{{ '/' | relative_url }}">
4
+ <img src="{{site.logo}}" width="64px" alt="Home">
5
+ </a>
6
+ </h1>{% endif %}
7
+ <nav>
8
+ <ul>{% for item in site.navigation %}
9
+ {% if item.url contains '://' %}
10
+ {% assign url = item.url %}
11
+ {% else %}
12
+ {% assign url = item.url | relative_url %}
13
+ {% endif %}<li>
14
+ <a href="{{url}}">{{item.title}}</a>
15
+ </li>{% endfor %}
16
+ </ul>
17
+ </nav>
18
+ </header>
19
+ <div class="header">
20
+ {% if site.tagline %}
21
+ <p class="tagline">{{site.tagline}}</p>
22
+ {% endif %}
23
+ </div>
@@ -0,0 +1,30 @@
1
+ {% if site.plingverify != "" %}
2
+ <meta name="ocs-site-verification" content="{{ site.plingverify }}">
3
+ {% endif %}
4
+ {% if site.googleverify != "" %}
5
+ <meta name="google-site-verification" content="{{ site.googleverify }}">
6
+ {% endif %}
7
+ {% if site.bingverify != "" %}
8
+ <meta name="msvalidate.01" content="{{ site.bingverify }}">
9
+ {% endif %}
10
+ {% if site.pinverify != "" %}
11
+ <meta name="p:domain_verify" content="{{ site.pinverify }}">
12
+ {% endif %}
13
+ {% if site.dailyverify != "" %}
14
+ <meta name="dailymotion-domain-verification" content="{{ site.dailyverify }}">
15
+ {% endif %}
16
+ {% if site.yandexverify != "" %}
17
+ <meta name="yandex-verification" content="{{ site.yandexverify }}">
18
+ {% endif %}
19
+ {% if site.nortonverify != "" %}
20
+ <meta name="norton-safeweb-site-verification" content="{{ site.nortonverify }}">
21
+ {% endif %}
22
+ {% if site.alexaverify != "" %}
23
+ <meta name="alexaVerifyID" content="{{ site.alexaverify }}">
24
+ {% endif %}
25
+ {% if site.wotverify != "" %}
26
+ <meta name="wot-verification" content="{{ site.wotverify }}">
27
+ {% endif %}
28
+ {% if site.specificverify != "" %}
29
+ <meta name="specificfeeds-verification-code" content="{{ site.specificverify }}">
30
+ {% endif %}
@@ -1,19 +1,33 @@
1
- <!DOCTYPE HTML>
2
- <html lang="{{site.lang}}">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>{{ page.title }} - {{ site.title }}</title>
8
- <meta property="og:title" content="{{page.title}} - {{site.title}}" />
9
- <meta name="description" content="{{page.description}}" />
10
- <meta property="og:description" content="{{page.description}}" />
11
- <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}" />
12
- {% if site.favicon %}
13
- <link rel="shortcut icon" href="{{ site.favicon }}" />
14
- {% endif %}
15
- </head>
16
- <body>
17
- {{ content }}
18
- </body>
1
+ <!doctype html>{% if site.lang != "" %}
2
+ <html lang="{{site.lang}}">
3
+ {% else %}
4
+ <html>
5
+ {% endif %}<head>
6
+ <meta charset="UTF-8">
7
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+ {% include csp.html %}
10
+ <meta name="referrer" content="no-referrer, same-origin">
11
+ <title>{{ page.title }} - {{ site.title }}</title>
12
+ <meta name="twitter:title" content="{{page.title}} - {{site.title}}">
13
+ <meta property="og:title" content="{{page.title}} - {{site.title}}">{% if site.lang != "" %}
14
+ <meta property="og:locale" content="{{site.lang}}">
15
+ <meta http-equiv="language" content="{{site.lang}}">
16
+ {% endif %}{% if page.description != nil %}
17
+ <meta name="description" content="{{page.description}}">
18
+ <meta property="og:description" content="{{page.description}}">
19
+ <meta name="twitter:description" content="{{page.description}}">{% elsif site.description != nil %}<meta name="description" content="{{site.description}}">
20
+ <meta property="og:description" content="{{site.description}}">
21
+ <meta name="twitter:description" content="{{site.description}}">{% endif %}{% for item in site.font-import %}
22
+ <link rel="stylesheet" href="{{item}}">{% endfor %}
23
+ <link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html',''}}">
24
+ <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
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 %}
28
+ {% include verifications.html %}
29
+ </head>
30
+ <body>
31
+ {{ content }}
32
+ </body>
19
33
  </html>
@@ -5,15 +5,8 @@ layout: default
5
5
  {% include site-header.html %}
6
6
 
7
7
  <div class="container">
8
- <h2>Newsroom</h2>
9
- <ul>
10
- {% for post in site.posts %}
11
- <li>
12
- <p><a class="newsText" href="{{ post.url }}"><b>{{ post.title }} ({{ post.date }}).</b></a> {{ post.excerpt }}</p>
13
- </li>
14
- {% endfor %}
15
- </ul>
16
- {{ content }}
8
+ {{ content }}
9
+ {% include newsroom.html %}
17
10
  </div>
18
11
 
19
12
  {% include site-footer.html %}
@@ -5,8 +5,9 @@ layout: default
5
5
  {% include site-header.html %}
6
6
 
7
7
  <div class="container">
8
- <h2>{{ page.title }}</h2>
9
- {{ content }}
8
+ {{ content }}
10
9
  </div>
11
10
 
11
+ {% include analytics.html %}
12
+
12
13
  {% include site-footer.html %}
@@ -5,9 +5,13 @@ layout: default
5
5
  {% include site-header.html %}
6
6
 
7
7
  <div class="container">
8
+ <div class="post">
8
9
  <h2>{{ page.title }}</h2>
9
- <h3>{{ post.author }} - {{page.date}}</h3>
10
+ <h3>{{ page.dateS }} - Written by {{ page.author }}</h3>
10
11
  {{ content }}
12
+ </div>
11
13
  </div>
12
14
 
15
+ {% include analytics.html %}
16
+
13
17
  {% include site-footer.html %}
@@ -1,16 +1,16 @@
1
1
  ---
2
2
  layout: post
3
3
  title: "Blogging Support is Here"
4
- author: {{site.author}}
4
+ author: doamatto
5
5
  excerpt_separator: ---
6
- date: "2020-05-02"
6
+ dateS: "2020/06/04"
7
7
  ---
8
8
 
9
9
  Nano v0.3.0 is here and now, among many other things, has support for blogging!
10
10
 
11
11
  ---
12
12
 
13
- Since day one, Nano was a project to make a clean, fast, and mobile-friendly Jekyll theme that people could easily use and deploy themselves. When I first released the gem on RubyGems, I was amazed to see the downloads skyrocket to 100 in the first day. Now, as of writing, Nano is at a little over 1000 downloads on RG, and I realised I still need to deliver on two crucial things:
13
+ Since day one, Nano was a project to make a clean, fast, and mobile-friendly Jekyll theme that people could easily use and deploy themselves. When I first released the gem on RubyGems, I was amazed to see the downloads skyrocket to 100 in the first day. Now, as of writing, Nano is at a little over 1500 downloads on RG, and I realised I still need to deliver on two crucial things:
14
14
 
15
15
  - Amazing Mobile Support, and:
16
16
  - Official Blogging Support.
@@ -19,4 +19,8 @@ Well, with the release of Nano v0.3.0, I'm happy to announce blogging being here
19
19
 
20
20
  Fortunately, I made the theme I used (which is this theme), and decided I'd finally get to work on adding blogging support. I did my utmost best to document it to the best of my ability and make it as painless as possible to deploy into sites using this theme.
21
21
 
22
- You can read the full changelog via GitHub's releases page [here](https://github.com/doamatto/nano/releases/tag/v0.3.0).
22
+ You can read the full changelog via GitHub's releases page [here](https://github.com/doamatto/nano/releases/tag/v0.3.0).
23
+
24
+ ```
25
+ Code block lmao
26
+ ```
@@ -1,31 +1,40 @@
1
- // Main Colour
2
- $LIGHTbgColour: #fff;
3
- $DARKbgColour: #000;
4
- $accentColour: #f62c43;
5
-
6
- // Header Colours (also uses $accentColour)
7
- $headerTextColour: #000;
8
-
9
- // Navigation Colours
10
- $navColour: #000;
11
- $navHoverColour: #fff;
12
-
13
- // Text Colour
14
- $LIGHTtextColour: #000;
15
- $LIGHTlinkColour: #000;
16
- $LIGHTlinkHoverColour: #f62c43;
17
- $DARKtextColour: #fff;
18
- $DARKlinkColour: #fff;
19
- $DARKlinkHoverColour: #f62c43;
20
- $LIGHTnewsLinkColour: #f62c43;
21
- $DARKnewsLinkColour: #f62c43;
22
-
23
- // Typography & Misc.
24
- $font: 'Inter', sans-serif;
25
- $font-regular: 400;
26
- $font-bold: 700;
27
- $font-italic: italic;
28
- $breakColour: #fff;
29
-
30
- // Switch this to whatever font you need, local or remote
31
- @import url('https://rsms.me/inter/inter.css');
1
+ // Code Block Colours
2
+ $LIGHTcodeColour: #fff;
3
+ $DARKcodeColour: #fff;
4
+ $LIGHTcodebgColour: #353230;
5
+ $DARKcodebgColour: #353230;
6
+
7
+ // Main Colours
8
+ $LIGHTbgColour: #fff;
9
+ $DARKbgColour: #000;
10
+ $accentColour: #f62c43;
11
+
12
+ // Header Colours (also uses $accentColour)
13
+ $headerTextColour: #000;
14
+
15
+ // Image Borders
16
+ $LIGHTborderColour: #000;
17
+ $DARKborderColour: #fff;
18
+ $borderType: solid;
19
+ $borderSize: 2.5px;
20
+
21
+ // Navigation Colours
22
+ $navColour: #000;
23
+
24
+ // Text Colours
25
+ $LIGHTtextColour: #000;
26
+ $DARKtextColour: #fff;
27
+ $LIGHTlinkColour: #000;
28
+ $LIGHTlinkHoverColour: #f62c43;
29
+ $DARKlinkColour: #fff;
30
+ $DARKlinkHoverColour: #f62c43;
31
+
32
+ // Typography & Misc.
33
+ $codeFont: 'IBM Plex Mono', monospace;
34
+ $codeFont-var: 'IBM Plex Mono', monospace; // Might break if nothing is here
35
+ $font: 'Inter', sans-serif;
36
+ $font-var: 'Inter', sans-serif; // Might break if nothing is here
37
+ $font-regular: 400;
38
+ $font-bold: 700;
39
+
40
+ // Font imports were moved to ../_config.yml
@@ -1,158 +1,260 @@
1
1
  // Import configuration
2
- @charset "utf-8";
3
2
  @import "config";
4
3
 
5
- // Auto Light and Dark Theme as Declared by Browser/OS
6
- @media (prefers-color-scheme: light) {
7
- a { color: $LIGHTlinkColour; }
8
- a:hover { color: $LIGHTlinkHoverColour; }
9
- html {
10
- background: $LIGHTbgColour;
11
- color: $LIGHTtextColour;
12
- }
13
- .lbl-toggle {
14
- background: $LIGHTbgColour;
15
- color: $LIGHTtextColour;
16
- }
17
- .lbl-toggle:hover { color: $LIGHTlinkHoverColour; }
4
+ // Typography and Misc.
5
+
6
+ .centre {
7
+ display: flex;
8
+ flex-direction: row;
9
+ flex-wrap: nowrap;
10
+ justify-content: center;
11
+ width: 100%;
12
+
13
+ text-align: center;
18
14
  }
19
15
 
20
- @media (prefers-color-scheme: dark) {
21
- a { color: $DARKlinkColour; }
22
- a:hover { color: $DARKlinkHoverColour; }
23
- html {
24
- background: $DARKbgColour;
25
- color: $DARKtextColour;
26
- }
27
- .lbl-toggle {
28
- background: $DARKbgColour;
29
- color: $DARKtextColour;
30
- }
31
- .lbl-toggle:hover { color: $DARKlinkHoverColour; }
32
- }
33
- /*
34
- // Mobile Nav and Other Optimizations
35
- @media only screen and (max-width: 600px) {
36
- .lbl-toggle {
37
- display: block !important;
38
- border-radius: 1vh;
39
- padding: .25em 1em .25em 1em;
40
- text-decoration: none;
41
- transition: color 500ms;
42
- }
43
- nav input[type='checkbox']:checked ~ .links {
44
- background: rgba(255,255,255,.2);
45
- padding: 1em 1em;
46
- }
47
- .links {
48
- transition: max-height 250ms ease-in-out;
49
- }
50
- .toggle:checked + .lbl-toggle + .links {
51
- max-height: 100vh;
52
- }
53
- .navLink {
54
- display: none;
55
- width: 100%;
56
- }
57
- .navLink:hover {
16
+ // ---
58
17
 
59
- }
18
+ // Document Prep
19
+ * {
20
+ margin: 0;
21
+ padding: 0;
60
22
  }
61
- */
62
- // Site Header (_includes/site-header.html)
63
- .header {
64
- background: $accentColour;
65
- color: $headerTextColour;
66
- width: 100%;
67
- padding-bottom: 2em;
68
- // max-height: 32.5vh;
23
+
24
+ body {
25
+ @supports (font-variation-settings: normal) {
26
+ font-family: $font-var;
27
+ }
28
+
29
+ background: $LIGHTbgColour;
30
+ color: $LIGHTtextColour;
31
+
32
+ font-family: $font;
33
+ font-weight: $font-regular;
34
+ margin: 0 auto;
35
+ width: 100%;
36
+ height: 100%;
37
+ max-width: 100%;
38
+ scroll-behavior: smooth;
69
39
  }
70
40
 
71
- .header h1 {
72
- font-weight: $font-regular;
73
- // font-size: calc(4vw + 4vh + 2vmin);
74
- font-size: 4.5em;
41
+ // Typography
42
+ @media only screen and (max-device-width: 480px) {
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; } }
47
+ h4, h5, h6 { font-size: 16px !important; }
48
+ .tagline, .tagline * { font-size: 40px !important; }
49
+ b { font-weight: $font-bold !important; } // Keeps bold bold, no matter the scenario
75
50
  }
76
51
 
77
- // Site Navigation
78
- .nav_logo {
79
- width: 4em;
52
+ p { margin: 1em 0; }
53
+ h1 {
54
+ font-size: 48px;
55
+ letter-spacing: -.05em;
56
+ font-weight: $font-bold;
57
+ line-height: 1.1;
58
+ }
59
+ h2 {
60
+ font-size: 24px;
61
+ line-height: 1.35;
80
62
  }
63
+ h3 { font-size: 16px; }
64
+ ol, ul { margin: 2em 1em; }
81
65
 
82
- .nav {
83
- display: flex;
84
- flex-direction: row;
85
- flex-wrap: nowrap;
86
- justify-content: space-between;
66
+ a, ul a, ol a, p a {
67
+ color: $LIGHTlinkColour;
68
+ text-decoration: none;
69
+ :hover {
70
+ color: $LIGHTlinkHoverColour;
71
+ transition: color 250ms ease-in-out;
72
+ }
87
73
  }
88
74
 
89
- .links {
90
- display: flex;
91
- flex-direction: row;
92
- flex-wrap: nowrap;
93
- list-style: none;
75
+ // Code blocks
76
+ .highlight {
77
+ @supports (font-variation-settings: normal) {
78
+ font-family: $codeFont-var;
79
+ }
80
+ font-family: $codeFont;
81
+
82
+ background: $LIGHTcodebgColour;
83
+ color: $LIGHTcodeColour;
84
+
85
+ padding: .5vh 1vh .5vh 1vh;
94
86
  }
95
87
 
96
- .navLink {
97
- padding: .25em 1em .25em 1em;
98
- text-decoration: none;
88
+ // Navigation
89
+ header {
90
+ text-align: center;
91
+ display: flex;
92
+ justify-content: space-between;
93
+ height: 100px;
94
+ cursor: default;
95
+ background: $accentColour;
96
+ padding-left: 16px;
97
+ * {
98
+ cursor: default;
99
+ font-size: 14px;
100
+ }
101
+ h1 {
102
+ flex: 0 0 auto;
103
+ margin: 0;
104
+ display: flex;
105
+ flex-direction: column;
106
+ justify-content: center;
107
+ a {
108
+ display: block;
109
+ :hover { cursor: pointer; }
110
+ }
111
+ img {
112
+ display: block;
113
+ border: none !important;
114
+ }
115
+ }
116
+ a {
99
117
  color: $navColour;
118
+ background: none;
119
+ :hover {
120
+ color: inherit;
121
+ background: none;
122
+ }
123
+ }
100
124
  }
101
125
 
102
- nav input[type='checkbox'] { display: none; }
103
- .lbl-toggle { display: none; }
126
+ nav {
127
+ ul {
128
+ flex: 0 0 auto;
129
+ text-align: left;
130
+ display: flex;
131
+ margin-top: 2.5em;
132
+ li {
133
+ list-style: none;
134
+ margin: 0;
135
+ padding: 0;
136
+ display: flex;
137
+ flex-direction: column;
138
+ justify-content: center;
139
+ :first-child { margin-left: 0; }
140
+ a {
141
+ cursor: pointer;
142
+ padding: 0 0.8em;
143
+ font-size: 1.1em;
144
+ text-decoration: none;
145
+ color: $navColour;
146
+ :hover {
147
+ text-decoration: underline;
148
+ transition: text-decoration 150ms ease-in-out;
149
+ }
150
+ }
151
+ :last-child { a { padding-right: 0; } }
152
+ }
153
+ }
154
+ }
104
155
 
105
- .navLink:hover { color: $navHoverColour; }
156
+ // Header
157
+ .header {
158
+ display: flex;
159
+ flex-direction: row;
160
+ flex-wrap: nowrap;
161
+ justify-content: center;
162
+ background: $accentColour;
163
+ color: $headerTextColour;
164
+ padding: 1.5em 32px;
165
+ max-height: 30vh;
106
166
 
107
- // Site Content (_layouts/page[-notitle].html)
167
+ p, b {
168
+ flex: 0 0 auto;
169
+ margin: auto 16px;
170
+ display: flex;
171
+ justify-content: center;
108
172
 
109
- .container {
110
- padding-left: 1em;
111
- padding-right: 1em;
173
+ font-size: 80px;
174
+ letter-spacing: -.05em;
175
+ font-weight: $font-regular;
176
+ line-height: 1.1;
177
+ white-space: nowrap;
178
+ }
112
179
  }
113
180
 
114
- // Site Footer (_includes/site-footer.html)
115
-
116
- .copyright { font-size: .75em; }
117
- .copyright a { text-decoration: underline; }
118
-
181
+ // Footer
119
182
  footer {
120
- display: flex;
121
- flex-direction: row;
122
- flex-wrap: nowrap;
123
- justify-content: center;
124
- text-align: center;
183
+ display: flex;
184
+ flex-direction: row;
185
+ flex-wrap: nowrap;
186
+ justify-content: center;
187
+ text-align: center;
125
188
  }
126
189
 
127
- // Typography and Misc.
190
+ .copyright {
191
+ font-size: .75em;
192
+ a { text-decoration: underline; }
193
+ }
128
194
 
129
- body {
130
- font-family: $font;
131
- font-weight: $font-regular;
132
- font-size: 1.125em;
133
- margin: -20px 0px 8px 0px;
195
+ .end {
196
+ border: 0;
197
+ height: 1px;
198
+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0));
134
199
  }
135
200
 
201
+ // Main Content
136
202
  .container {
137
- margin: 1em auto;
138
- max-width: 40em;
203
+ width: 75vw;
204
+ margin: 1em auto;
205
+ ul, ol {
206
+ margin-left: 2em !important;
207
+ margin-right: 24px !important;
208
+ }
209
+ .highlight, p, hr {
210
+ margin-left: 1em !important;
211
+ margin-right: 24px !important;
212
+ }
213
+ @media only screen and (max-device-width: 480px) {
214
+ max-width: 100% !important;
215
+ margin: 1em 1em 1em 1em;
216
+ width: auto !important;
217
+ }
218
+ hr { margin-bottom: 1em; }
139
219
  }
140
220
 
141
- .center {
142
- display: flex;
143
- flex-direction: row;
144
- flex-wrap: nowrap;
145
- justify-content: center;
146
- text-align: center;
147
- width: 100%;
221
+ // Images
222
+ img {
223
+ border: $borderSize $borderType $LIGHTborderColour;
224
+ :before {
225
+ display: none;
226
+ content: '';
227
+ } // Hack from https://stackoverflow.com/a/980948
148
228
  }
149
229
 
150
- a { transition: color 500ms; }
151
- hr { color: $breakColour; }
152
- .bold { font-weight: $font-bold; }
153
- html, body { height: 100%; width: 100%; }
230
+ // Blog Posts
231
+ .post { h3 { font-size: 14px !important; } }
232
+
233
+ // Auto Dark Theme as Declared by Browser/OS
234
+ @media (prefers-color-scheme: dark) {
235
+ a, ul a, ol a, p a { color: $DARKlinkColour;}
236
+ a:hover, ul a:hover, ol a:hover, p a:hover {
237
+ color: $DARKlinkHoverColour;
238
+ transition: color 250ms ease-in-out;
239
+ }
240
+ .highlight {
241
+ background: $DARKcodebgColour;
242
+ color: $DARKcodeColour;
243
+ }
244
+ body {
245
+ background: $DARKbgColour;
246
+ color: $DARKtextColour;
247
+ }
248
+ img { border: $borderSize $borderType $DARKborderColour; }
249
+ .highlight {
250
+ background: $DARKcodebgColour;
251
+ color: $DARKcodeColour;
252
+ }
253
+ }
154
254
 
155
- /*
156
- // Unsorted
157
- .newsText { text-decoration: none; }
158
- */
255
+ // Make pixel trackers invisible
256
+ .pxl {
257
+ width: 1px;
258
+ height: 1px;
259
+ border: none;
260
+ }
@@ -1,5 +1,4 @@
1
- ---
2
- ---
3
-
4
- @charset 'utf-8';
1
+ ---
2
+ ---
3
+
5
4
  @import 'config', 'theme';
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.2.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-05-03 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,14 +61,17 @@ extra_rdoc_files: []
47
61
  files:
48
62
  - LICENSE
49
63
  - README.md
64
+ - _includes/analytics.html
65
+ - _includes/csp.html
66
+ - _includes/newsroom.html
50
67
  - _includes/site-footer.html
51
68
  - _includes/site-header.html
69
+ - _includes/verifications.html
52
70
  - _layouts/default.html
53
71
  - _layouts/newsroom.html
54
- - _layouts/page-notitle.html
55
72
  - _layouts/page.html
56
73
  - _layouts/post.html
57
- - _posts/2020-05-02-test.md
74
+ - _posts/2020-06-04-test.md
58
75
  - _sass/_config.scss
59
76
  - _sass/_theme.scss
60
77
  - assets/logo.svg
@@ -1,11 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {% include site-header.html %}
6
-
7
- <div class="container">
8
- {{ content }}
9
- </div>
10
-
11
- {% include site-footer.html %}