jekyll-theme-nn 0.1.4 → 0.1.5
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 +5 -5
- data/LICENSE.txt +21 -21
- data/README.md +57 -57
- data/_includes/components/feather-icon.html +9 -9
- data/_includes/components/hero.html +26 -26
- data/_includes/components/made-with.html +34 -34
- data/_includes/components/menu.html +10 -10
- data/_includes/components/post-snippet.html +40 -0
- data/_includes/components/recent-posts.html +9 -47
- data/_includes/components/series-footer.html +156 -145
- data/_includes/components/series-header.html +17 -12
- data/_includes/footer.html +32 -32
- data/_includes/head.html +29 -29
- data/_includes/header.html +35 -35
- data/_layouts/default.html +35 -35
- data/_layouts/front.html +11 -11
- data/_layouts/page.html +29 -29
- data/_layouts/post.html +43 -43
- data/_layouts/series.html +17 -0
- data/_sass/_bulma-tweaks.scss +34 -29
- data/_sass/_highlight.scss +362 -362
- data/_sass/nn-main.scss +4 -4
- data/_sass/vendor/nord/License.md +22 -22
- data/_sass/vendor/nord/nord.scss +235 -235
- data/assets/nn.scss +5 -5
- data/assets/vendor/bulma/LICENSE +21 -21
- data/assets/vendor/feather/LICENSE +20 -20
- metadata +5 -3
@@ -1,12 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<div class="level-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
{% assign series_page = page.series | slugify | append: ".html" %}
|
2
|
+
|
3
|
+
<section class="series-header level">
|
4
|
+
<div class="level-left">
|
5
|
+
</div>
|
6
|
+
<div class="level-right">
|
7
|
+
<p class="series-header is-italic">
|
8
|
+
Part of the series
|
9
|
+
<a href="{{ series_page | prepend: "/series/" | relative_url }}"
|
10
|
+
class="link-wrapper-inline">
|
11
|
+
<span class="has-text-info has-text-weight-semibold">
|
12
|
+
{{ page.series }}
|
13
|
+
</span>
|
14
|
+
</a>
|
15
|
+
</p>
|
16
|
+
</div>
|
17
|
+
</section>
|
data/_includes/footer.html
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
<footer class="footer">
|
2
|
-
<div class="container">
|
3
|
-
<div class="columns">
|
4
|
-
<div class="column content">
|
5
|
-
<p>
|
6
|
-
<a href="{{ "/feed.xml" | relative_url }}">
|
7
|
-
{% include components/feather-icon.html
|
8
|
-
icon="rss" class="has-text-dark" %}
|
9
|
-
</a>
|
10
|
-
{% if site.github_username %}
|
11
|
-
<span class="icon"></span>
|
12
|
-
<a href="https://github.com/{{ site.github_username }}">
|
13
|
-
{% include components/feather-icon.html
|
14
|
-
icon="github" class="has-text-dark" %}
|
15
|
-
</a>
|
16
|
-
{% endif %}
|
17
|
-
{% if site.twitter_username %}
|
18
|
-
<span class="icon"></span>
|
19
|
-
<a href="https://twitter.com/{{ site.twitter_username }}">
|
20
|
-
{% include components/feather-icon.html
|
21
|
-
icon="twitter" class="has-text-dark" %}
|
22
|
-
</a>
|
23
|
-
{% endif %}
|
24
|
-
</p>
|
25
|
-
<p>© Copyright {{ site.time | date: "%Y" }} {{ site.author }}</p>
|
26
|
-
</div>
|
27
|
-
<div class="column is-narrow content">
|
28
|
-
{% include components/made-with.html %}
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
</footer>
|
1
|
+
<footer class="footer">
|
2
|
+
<div class="container">
|
3
|
+
<div class="columns">
|
4
|
+
<div class="column content">
|
5
|
+
<p>
|
6
|
+
<a href="{{ "/feed.xml" | relative_url }}">
|
7
|
+
{% include components/feather-icon.html
|
8
|
+
icon="rss" class="has-text-dark" %}
|
9
|
+
</a>
|
10
|
+
{% if site.github_username %}
|
11
|
+
<span class="icon"></span>
|
12
|
+
<a href="https://github.com/{{ site.github_username }}">
|
13
|
+
{% include components/feather-icon.html
|
14
|
+
icon="github" class="has-text-dark" %}
|
15
|
+
</a>
|
16
|
+
{% endif %}
|
17
|
+
{% if site.twitter_username %}
|
18
|
+
<span class="icon"></span>
|
19
|
+
<a href="https://twitter.com/{{ site.twitter_username }}">
|
20
|
+
{% include components/feather-icon.html
|
21
|
+
icon="twitter" class="has-text-dark" %}
|
22
|
+
</a>
|
23
|
+
{% endif %}
|
24
|
+
</p>
|
25
|
+
<p>© Copyright {{ site.time | date: "%Y" }} {{ site.author }}</p>
|
26
|
+
</div>
|
27
|
+
<div class="column is-narrow content">
|
28
|
+
{% include components/made-with.html %}
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</footer>
|
data/_includes/head.html
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
<head>
|
2
|
-
<!-- Rendering Directives -->
|
3
|
-
<meta charset="utf-8">
|
4
|
-
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
-
|
7
|
-
<!-- Content Security Policy -->
|
8
|
-
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
|
9
|
-
|
10
|
-
<!-- Title, Description -->
|
11
|
-
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
12
|
-
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 150 | escape }}">
|
13
|
-
|
14
|
-
<!-- Content Links (CSS, canonical, etc.) -->
|
15
|
-
<link rel="stylesheet" href="{{ "/assets/vendor/bulma/bulma.css" | relative_url }}">
|
16
|
-
<link rel="stylesheet" href="{{ "/assets/nn.css" | relative_url }}">
|
17
|
-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
18
|
-
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
19
|
-
|
20
|
-
{% if site.favicon %}
|
21
|
-
<!-- Favicon -->
|
22
|
-
<link rel="icon" href="{{ site.favicon | escape }}">
|
23
|
-
{% endif %}
|
24
|
-
|
25
|
-
{% if site.license_file %}
|
26
|
-
<!-- Site License -->
|
27
|
-
<link rel="license" href="{{ site.license_file | escape }}">
|
28
|
-
{% endif %}
|
29
|
-
</head>
|
1
|
+
<head>
|
2
|
+
<!-- Rendering Directives -->
|
3
|
+
<meta charset="utf-8">
|
4
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
|
7
|
+
<!-- Content Security Policy -->
|
8
|
+
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
|
9
|
+
|
10
|
+
<!-- Title, Description -->
|
11
|
+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
12
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 150 | escape }}">
|
13
|
+
|
14
|
+
<!-- Content Links (CSS, canonical, etc.) -->
|
15
|
+
<link rel="stylesheet" href="{{ "/assets/vendor/bulma/bulma.css" | relative_url }}">
|
16
|
+
<link rel="stylesheet" href="{{ "/assets/nn.css" | relative_url }}">
|
17
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
18
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
19
|
+
|
20
|
+
{% if site.favicon %}
|
21
|
+
<!-- Favicon -->
|
22
|
+
<link rel="icon" href="{{ site.favicon | escape }}">
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
{% if site.license_file %}
|
26
|
+
<!-- Site License -->
|
27
|
+
<link rel="license" href="{{ site.license_file | escape }}">
|
28
|
+
{% endif %}
|
29
|
+
</head>
|
data/_includes/header.html
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
<header>
|
2
|
-
<nav class="navbar is-fixed-top is-light" role="navigation"
|
3
|
-
aria-label="main navigation">
|
4
|
-
<div class="container">
|
5
|
-
<div class="navbar-brand">
|
6
|
-
{% if site.logo %}
|
7
|
-
<a href="{{ "/" | relative_url }}" class="navbar-item">
|
8
|
-
<img src="{{ site.logo | escape }}"
|
9
|
-
alt="{{ site.logo_alt | escape }}">
|
10
|
-
</a>
|
11
|
-
{% endif %}
|
12
|
-
<div class="navbar-burger">
|
13
|
-
<span></span>
|
14
|
-
<span></span>
|
15
|
-
<span></span>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="navbar-menu">
|
19
|
-
<div class="navbar-start">
|
20
|
-
|
21
|
-
</div>
|
22
|
-
<div class="navbar-end">
|
23
|
-
{% for page in site.pages %}
|
24
|
-
{% if page.title %}
|
25
|
-
<a href="{{ page.url | relative_url }}"
|
26
|
-
class="navbar-item">
|
27
|
-
{{ page.title | escape }}
|
28
|
-
</a>
|
29
|
-
{% endif %}
|
30
|
-
{% endfor %}
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
</nav>
|
35
|
-
</header>
|
1
|
+
<header>
|
2
|
+
<nav class="navbar is-fixed-top is-light" role="navigation"
|
3
|
+
aria-label="main navigation">
|
4
|
+
<div class="container">
|
5
|
+
<div class="navbar-brand">
|
6
|
+
{% if site.logo %}
|
7
|
+
<a href="{{ "/" | relative_url }}" class="navbar-item">
|
8
|
+
<img src="{{ site.logo | escape }}"
|
9
|
+
alt="{{ site.logo_alt | escape }}">
|
10
|
+
</a>
|
11
|
+
{% endif %}
|
12
|
+
<div class="navbar-burger">
|
13
|
+
<span></span>
|
14
|
+
<span></span>
|
15
|
+
<span></span>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="navbar-menu">
|
19
|
+
<div class="navbar-start">
|
20
|
+
|
21
|
+
</div>
|
22
|
+
<div class="navbar-end">
|
23
|
+
{% for page in site.pages %}
|
24
|
+
{% if page.menu-title %}
|
25
|
+
<a href="{{ page.url | relative_url }}"
|
26
|
+
class="navbar-item">
|
27
|
+
{{ page.menu-title | escape }}
|
28
|
+
</a>
|
29
|
+
{% endif %}
|
30
|
+
{% endfor %}
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</nav>
|
35
|
+
</header>
|
data/_layouts/default.html
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html class="has-navbar-fixed-top"
|
3
|
-
lang="{{ page.lang | default: site.lang | default: 'en'}}">
|
4
|
-
{% include head.html %}
|
5
|
-
<body>
|
6
|
-
{% include header.html %}
|
7
|
-
|
8
|
-
{% if layout.hero %}
|
9
|
-
{% include components/hero.html %}
|
10
|
-
{% endif %}
|
11
|
-
|
12
|
-
<section class="section">
|
13
|
-
<div class="container">
|
14
|
-
{% if layout.menu %}
|
15
|
-
<div class="columns">
|
16
|
-
<div class="column is-narrow">
|
17
|
-
{% include components/menu.html %}
|
18
|
-
</div>
|
19
|
-
<div class="column">
|
20
|
-
{% endif %}
|
21
|
-
<main class="page-content" aria-label="Content">
|
22
|
-
<div class="wrapper">
|
23
|
-
{{ content }}
|
24
|
-
</div>
|
25
|
-
</main>
|
26
|
-
{% if layout.menu %}
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
{% endif %}
|
30
|
-
</div>
|
31
|
-
</section>
|
32
|
-
|
33
|
-
{% include footer.html %}
|
34
|
-
</body>
|
35
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html class="has-navbar-fixed-top"
|
3
|
+
lang="{{ page.lang | default: site.lang | default: 'en'}}">
|
4
|
+
{% include head.html %}
|
5
|
+
<body>
|
6
|
+
{% include header.html %}
|
7
|
+
|
8
|
+
{% if layout.hero %}
|
9
|
+
{% include components/hero.html %}
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
<section class="section">
|
13
|
+
<div class="container">
|
14
|
+
{% if layout.menu %}
|
15
|
+
<div class="columns">
|
16
|
+
<div class="column is-narrow">
|
17
|
+
{% include components/menu.html %}
|
18
|
+
</div>
|
19
|
+
<div class="column">
|
20
|
+
{% endif %}
|
21
|
+
<main class="page-content" aria-label="Content">
|
22
|
+
<div class="wrapper">
|
23
|
+
{{ content }}
|
24
|
+
</div>
|
25
|
+
</main>
|
26
|
+
{% if layout.menu %}
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
{% endif %}
|
30
|
+
</div>
|
31
|
+
</section>
|
32
|
+
|
33
|
+
{% include footer.html %}
|
34
|
+
</body>
|
35
|
+
</html>
|
data/_layouts/front.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
hero: true
|
4
|
-
menu: true
|
5
|
-
---
|
6
|
-
|
7
|
-
<section class="front">
|
8
|
-
{{ content }}
|
9
|
-
</section>
|
10
|
-
|
11
|
-
{% include components/recent-posts.html %}
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
hero: true
|
4
|
+
menu: true
|
5
|
+
---
|
6
|
+
|
7
|
+
<section class="front">
|
8
|
+
{{ content }}
|
9
|
+
</section>
|
10
|
+
|
11
|
+
{% include components/recent-posts.html %}
|
data/_layouts/page.html
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
<article class="page">
|
6
|
-
<div class="level">
|
7
|
-
<div class="level-left">
|
8
|
-
<header class="page-header">
|
9
|
-
<p class="title is-3 has-text-primary">
|
10
|
-
{{ page.
|
11
|
-
</p>
|
12
|
-
<p class="subtitle is-5">
|
13
|
-
{{ page.date | date: "%B %-d, %Y" }}
|
14
|
-
</p>
|
15
|
-
</header>
|
16
|
-
</div>
|
17
|
-
<div class="level-right">
|
18
|
-
<div class="tags">
|
19
|
-
{% for tag in page.tags %}
|
20
|
-
<span class="tag is-light">{{ tag }}</span>
|
21
|
-
{% endfor %}
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
<hr>
|
26
|
-
<div class="content">
|
27
|
-
{{ content }}
|
28
|
-
</div>
|
29
|
-
</article>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="page">
|
6
|
+
<div class="level">
|
7
|
+
<div class="level-left">
|
8
|
+
<header class="page-header">
|
9
|
+
<p class="title is-3 has-text-primary">
|
10
|
+
{{ page.title | default: page.menu-title | escape }}
|
11
|
+
</p>
|
12
|
+
<p class="subtitle is-5">
|
13
|
+
{{ page.date | date: "%B %-d, %Y" }}
|
14
|
+
</p>
|
15
|
+
</header>
|
16
|
+
</div>
|
17
|
+
<div class="level-right">
|
18
|
+
<div class="tags">
|
19
|
+
{% for tag in page.tags %}
|
20
|
+
<span class="tag is-light">{{ tag }}</span>
|
21
|
+
{% endfor %}
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<hr>
|
26
|
+
<div class="content">
|
27
|
+
{{ content }}
|
28
|
+
</div>
|
29
|
+
</article>
|
data/_layouts/post.html
CHANGED
@@ -1,43 +1,43 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
<article class="post">
|
6
|
-
<section class="post-header">
|
7
|
-
<div class="level">
|
8
|
-
<div class="level-left">
|
9
|
-
<header class="post-title">
|
10
|
-
<p class="title is-3 has-text-primary">
|
11
|
-
{{ page.title | escape }}
|
12
|
-
</p>
|
13
|
-
<p class="subtitle is-5">
|
14
|
-
{{ page.date | date: "%B %-d, %Y" }}
|
15
|
-
</p>
|
16
|
-
</header>
|
17
|
-
</div>
|
18
|
-
<div class="level-right">
|
19
|
-
<div class="tags">
|
20
|
-
{% for tag in page.tags %}
|
21
|
-
<span class="tag is-light">{{ tag }}</span>
|
22
|
-
{% endfor %}
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</section>
|
27
|
-
|
28
|
-
<hr>
|
29
|
-
|
30
|
-
{% if page.series %}
|
31
|
-
{% include components/series-header.html %}
|
32
|
-
{% endif %}
|
33
|
-
|
34
|
-
<section class="post-content">
|
35
|
-
<div class="content">
|
36
|
-
{{ content }}
|
37
|
-
</div>
|
38
|
-
</section>
|
39
|
-
|
40
|
-
{% if page.series %}
|
41
|
-
{% include components/series-footer.html %}
|
42
|
-
{% endif %}
|
43
|
-
</article>
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="post">
|
6
|
+
<section class="post-header">
|
7
|
+
<div class="level">
|
8
|
+
<div class="level-left">
|
9
|
+
<header class="post-title">
|
10
|
+
<p class="title is-3 has-text-primary">
|
11
|
+
{{ page.title | escape }}
|
12
|
+
</p>
|
13
|
+
<p class="subtitle is-5">
|
14
|
+
{{ page.date | date: "%B %-d, %Y" }}
|
15
|
+
</p>
|
16
|
+
</header>
|
17
|
+
</div>
|
18
|
+
<div class="level-right">
|
19
|
+
<div class="tags">
|
20
|
+
{% for tag in page.tags %}
|
21
|
+
<span class="tag is-light">{{ tag }}</span>
|
22
|
+
{% endfor %}
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</section>
|
27
|
+
|
28
|
+
<hr>
|
29
|
+
|
30
|
+
{% if page.series %}
|
31
|
+
{% include components/series-header.html %}
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
<section class="post-content">
|
35
|
+
<div class="content">
|
36
|
+
{{ content }}
|
37
|
+
</div>
|
38
|
+
</section>
|
39
|
+
|
40
|
+
{% if page.series %}
|
41
|
+
{% include components/series-footer.html %}
|
42
|
+
{% endif %}
|
43
|
+
</article>
|