jekyll-theme-nn 0.1.7 → 0.1.8

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.
@@ -1,156 +1,156 @@
1
- {% comment %}
2
- The liquid at the top will search through all posts in the series
3
- {% endcomment %}
4
- {% assign count = '0' %}
5
- {% assign index = '0' %}
6
- {% assign capture_prev = true %}
7
- {% assign capture_next = false %}
8
-
9
- {% for post in site.posts reversed %}
10
- {% if post.series == page.series %}
11
- {% capture count %}{{ count | plus: '1' }}{% endcapture %}
12
- {% assign last_url = post.url %}
13
-
14
- {% if capture_next %}
15
- {% assign next_title = post.title %}
16
- {% assign next_url = post.url %}
17
- {% assign capture_next = false %}
18
- {% endif %}
19
-
20
- {% if post.url == page.url %}
21
- {% capture index %}{{ count }}{% endcapture %}
22
- {% assign capture_prev = false %}
23
- {% assign capture_next = true %}
24
- {% endif %}
25
-
26
- {% if capture_prev %}
27
- {% assign prev_title = post.title %}
28
- {% assign prev_url = post.url %}
29
- {% endif %}
30
-
31
- {% if count == '1' %}
32
- {% assign first_url = post.url %}
33
- {% endif %}
34
- {% endif %}
35
- {% endfor %}
36
- {% assign after = count | minus: index %}
37
- {% comment %}
38
- At this point, count is the total number of posts, index is this post, and after
39
- is the number of posts after index. We've also captured the first, previous,
40
- next, and last posts in the series.
41
- {% endcomment %}
42
-
43
- {% if count > '1' %}
44
- {% assign series_page = page.series | slugify | append: ".html" %}
45
- <hr>
46
- <section class="series-footer">
47
- <div class="level">
48
- <div class="level-item">
49
- <a href="{{ series_page | prepend: "/series/" | relative_url }}"
50
- class="link-wrapper">
51
- {% include components/feather-icon.html
52
- icon="archive" class="has-text-info" %}
53
- <!-- Use this span for spacing -->
54
- <span class="icon"></span>
55
- <p class="has-text-info has-text-weight-semibold is-size-5">
56
- {{ page.series }}
57
- </p>
58
- </a>
59
- </div>
60
- </div>
61
- <nav class="pagination is-centered" role="navigation"
62
- aria-label="pagination">
63
- {% if index > '1' %}
64
- <a href="{{ prev_url }}" class="pagination-previous">Previous</a>
65
- {% else %}
66
- <a href="{{ prev_url }}" class="pagination-previous" disabled>
67
- Previous
68
- </a>
69
- {% endif %}
70
-
71
- {% if after > 0 %}
72
- <a href="{{ next_url }}" class="pagination-next">Next</a>
73
- {% else %}
74
- <a href="{{ next_url }}" class="pagination-next" disabled>
75
- Next
76
- </a>
77
- {% endif %}
78
-
79
- <ul class="pagination-list">
80
- {% if index > '2' %}
81
- <li>
82
- <a href="{{ first_url }}" class="pagination-link"
83
- aria-label="Goto page 1">
84
- 1
85
- </a>
86
- </li>
87
- {% endif %}
88
-
89
- {% if index > '3' %}
90
- <li>
91
- <span class="pagination-ellipsis">&hellip;</span>
92
- </li>
93
- {% endif %}
94
-
95
- {% if index > '1' %}
96
- <li>
97
- <a href="{{ prev_url }}" class="pagination-link"
98
- aria-label="Goto page {{ index | minus: '1' }}">
99
- {{ index | minus: '1' }}
100
- </a>
101
- </li>
102
- {% endif %}
103
-
104
- <li>
105
- <a class="pagination-link is-current"
106
- aria-label="Current page {{ index }}">
107
- {{ index }}
108
- </a>
109
- </li>
110
-
111
- {% if after > 0 %}
112
- <li>
113
- <a href="{{ next_url }}" class="pagination-link"
114
- aria-label="Goto page {{ index | plus: '1' }}">
115
- {{ index | plus: '1' }}
116
- </a>
117
- </li>
118
- {% endif %}
119
-
120
- {% if after > 2 %}
121
- <li>
122
- <span class="pagination-ellipsis">&hellip;</span>
123
- </li>
124
- {% endif %}
125
-
126
- {% if after > 1 %}
127
- <li>
128
- <a href="{{ last_url }}" class="pagination-link"
129
- aria-label="Goto page {{ count }}">
130
- {{ count }}
131
- </a>
132
- </li>
133
- {% endif %}
134
-
135
- </ul>
136
- </nav>
137
- <div class="level">
138
- <div class="level-left">
139
- {% if index > '1' %}
140
- <p>
141
- <span class="is-hidden-tablet is-italic">Previous: </span>
142
- {{ prev_title }}
143
- </p>
144
- {% endif %}
145
- </div>
146
- <div class="level-right">
147
- {% if after > 0 %}
148
- <p>
149
- <span class="is-hidden-tablet is-italic">Next: </span>
150
- {{ next_title }}
151
- </p>
152
- {% endif %}
153
- </div>
154
- </div>
155
- </section>
156
- {% endif %}
1
+ {% comment %}
2
+ The liquid at the top will search through all posts in the series
3
+ {% endcomment %}
4
+ {% assign count = '0' %}
5
+ {% assign index = '0' %}
6
+ {% assign capture_prev = true %}
7
+ {% assign capture_next = false %}
8
+
9
+ {% for post in site.posts reversed %}
10
+ {% if post.series == page.series %}
11
+ {% capture count %}{{ count | plus: '1' }}{% endcapture %}
12
+ {% assign last_url = post.url %}
13
+
14
+ {% if capture_next %}
15
+ {% assign next_title = post.title %}
16
+ {% assign next_url = post.url %}
17
+ {% assign capture_next = false %}
18
+ {% endif %}
19
+
20
+ {% if post.url == page.url %}
21
+ {% capture index %}{{ count }}{% endcapture %}
22
+ {% assign capture_prev = false %}
23
+ {% assign capture_next = true %}
24
+ {% endif %}
25
+
26
+ {% if capture_prev %}
27
+ {% assign prev_title = post.title %}
28
+ {% assign prev_url = post.url %}
29
+ {% endif %}
30
+
31
+ {% if count == '1' %}
32
+ {% assign first_url = post.url %}
33
+ {% endif %}
34
+ {% endif %}
35
+ {% endfor %}
36
+ {% assign after = count | minus: index %}
37
+ {% comment %}
38
+ At this point, count is the total number of posts, index is this post, and after
39
+ is the number of posts after index. We've also captured the first, previous,
40
+ next, and last posts in the series.
41
+ {% endcomment %}
42
+
43
+ {% if count > '1' %}
44
+ {% assign series_page = page.series | slugify | append: ".html" %}
45
+ <hr>
46
+ <section class="series-footer">
47
+ <div class="level">
48
+ <div class="level-item">
49
+ <a href="{{ series_page | prepend: "/series/" | relative_url }}"
50
+ class="link-wrapper">
51
+ {% include components/feather-icon.html
52
+ icon="archive" class="has-text-info" %}
53
+ <!-- Use this span for spacing -->
54
+ <span class="icon"></span>
55
+ <p class="has-text-info has-text-weight-semibold is-size-5">
56
+ {{ page.series }}
57
+ </p>
58
+ </a>
59
+ </div>
60
+ </div>
61
+ <nav class="pagination is-centered" role="navigation"
62
+ aria-label="pagination">
63
+ {% if index > '1' %}
64
+ <a href="{{ prev_url }}" class="pagination-previous">Previous</a>
65
+ {% else %}
66
+ <a href="{{ prev_url }}" class="pagination-previous" disabled>
67
+ Previous
68
+ </a>
69
+ {% endif %}
70
+
71
+ {% if after > 0 %}
72
+ <a href="{{ next_url }}" class="pagination-next">Next</a>
73
+ {% else %}
74
+ <a href="{{ next_url }}" class="pagination-next" disabled>
75
+ Next
76
+ </a>
77
+ {% endif %}
78
+
79
+ <ul class="pagination-list">
80
+ {% if index > '2' %}
81
+ <li>
82
+ <a href="{{ first_url }}" class="pagination-link"
83
+ aria-label="Goto page 1">
84
+ 1
85
+ </a>
86
+ </li>
87
+ {% endif %}
88
+
89
+ {% if index > '3' %}
90
+ <li>
91
+ <span class="pagination-ellipsis">&hellip;</span>
92
+ </li>
93
+ {% endif %}
94
+
95
+ {% if index > '1' %}
96
+ <li>
97
+ <a href="{{ prev_url }}" class="pagination-link"
98
+ aria-label="Goto page {{ index | minus: '1' }}">
99
+ {{ index | minus: '1' }}
100
+ </a>
101
+ </li>
102
+ {% endif %}
103
+
104
+ <li>
105
+ <a class="pagination-link is-current"
106
+ aria-label="Current page {{ index }}">
107
+ {{ index }}
108
+ </a>
109
+ </li>
110
+
111
+ {% if after > 0 %}
112
+ <li>
113
+ <a href="{{ next_url }}" class="pagination-link"
114
+ aria-label="Goto page {{ index | plus: '1' }}">
115
+ {{ index | plus: '1' }}
116
+ </a>
117
+ </li>
118
+ {% endif %}
119
+
120
+ {% if after > 2 %}
121
+ <li>
122
+ <span class="pagination-ellipsis">&hellip;</span>
123
+ </li>
124
+ {% endif %}
125
+
126
+ {% if after > 1 %}
127
+ <li>
128
+ <a href="{{ last_url }}" class="pagination-link"
129
+ aria-label="Goto page {{ count }}">
130
+ {{ count }}
131
+ </a>
132
+ </li>
133
+ {% endif %}
134
+
135
+ </ul>
136
+ </nav>
137
+ <div class="level">
138
+ <div class="level-left">
139
+ {% if index > '1' %}
140
+ <p>
141
+ <span class="is-hidden-tablet is-italic">Previous: </span>
142
+ {{ prev_title }}
143
+ </p>
144
+ {% endif %}
145
+ </div>
146
+ <div class="level-right">
147
+ {% if after > 0 %}
148
+ <p>
149
+ <span class="is-hidden-tablet is-italic">Next: </span>
150
+ {{ next_title }}
151
+ </p>
152
+ {% endif %}
153
+ </div>
154
+ </div>
155
+ </section>
156
+ {% endif %}
@@ -1,17 +1,17 @@
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>
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>
@@ -1,46 +1,46 @@
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.gitlab_username %}
18
- <span class="icon"></span>
19
- <a href="https://gitlab.com/{{ site.gitlab_username }}">
20
- {% include components/feather-icon.html
21
- icon="gitlab" class="has-text-dark" %}
22
- </a>
23
- {% endif %}
24
- {% if site.twitter_username %}
25
- <span class="icon"></span>
26
- <a href="https://twitter.com/{{ site.twitter_username }}">
27
- {% include components/feather-icon.html
28
- icon="twitter" class="has-text-dark" %}
29
- </a>
30
- {% endif %}
31
- {% if site.linkedin_username %}
32
- <span class="icon"></span>
33
- <a href="https://www.linkedin.com/in/{{ site.linkedin_username }}">
34
- {% include components/feather-icon.html
35
- icon="linkedin" class="has-text-dark" %}
36
- </a>
37
- {% endif %}
38
- </p>
39
- <p>&copy; Copyright {{ site.time | date: "%Y" }} {{ site.author }}</p>
40
- </div>
41
- <div class="column is-narrow content">
42
- {% include components/made-with.html %}
43
- </div>
44
- </div>
45
- </div>
46
- </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.gitlab_username %}
18
+ <span class="icon"></span>
19
+ <a href="https://gitlab.com/{{ site.gitlab_username }}">
20
+ {% include components/feather-icon.html
21
+ icon="gitlab" class="has-text-dark" %}
22
+ </a>
23
+ {% endif %}
24
+ {% if site.twitter_username %}
25
+ <span class="icon"></span>
26
+ <a href="https://twitter.com/{{ site.twitter_username }}">
27
+ {% include components/feather-icon.html
28
+ icon="twitter" class="has-text-dark" %}
29
+ </a>
30
+ {% endif %}
31
+ {% if site.linkedin_username %}
32
+ <span class="icon"></span>
33
+ <a href="https://www.linkedin.com/in/{{ site.linkedin_username }}">
34
+ {% include components/feather-icon.html
35
+ icon="linkedin" class="has-text-dark" %}
36
+ </a>
37
+ {% endif %}
38
+ </p>
39
+ <p>&copy; Copyright {{ site.time | date: "%Y" }} {{ site.author }}</p>
40
+ </div>
41
+ <div class="column is-narrow content">
42
+ {% include components/made-with.html %}
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </footer>
@@ -1,28 +1,32 @@
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
- <!-- Title, Description -->
8
- <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
9
- <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 150 | escape }}">
10
-
11
- <!-- Content Links (CSS, canonical, etc.) -->
12
- <link rel="stylesheet" href="{{ "/assets/vendor/bulma/bulma.css" | relative_url }}">
13
- <link rel="stylesheet" href="{{ "/assets/nn.css" | relative_url }}">
14
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}" data-proofer-ignore>
15
- <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
16
-
17
- {% if site.favicon %}
18
- <!-- Favicon -->
19
- <link rel="icon" href="{{ site.favicon | escape }}">
20
- {% endif %}
21
-
22
- {% if site.license_file %}
23
- <!-- Site License -->
24
- <link rel="license" href="{{ site.license_file | escape }}">
25
- {% endif %}
26
-
27
- <script src="{{ "/assets/scripts/navbar.js" | relative_url }}" defer></script>
28
- </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 }}" data-proofer-ignore>
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
+ {% assign favicon_href = site.assets.destination | append: "/" | append: site.favicon | relative_url %}
23
+ <link rel="icon" href="{{ favicon_href }}">
24
+ {% endif %}
25
+
26
+ {% if site.license_file %}
27
+ <!-- Site License -->
28
+ <link rel="license" href="{{ site.license_file | escape }}">
29
+ {% endif %}
30
+
31
+ <script src="{{ "/assets/scripts/navbar.js" | relative_url }}" defer></script>
32
+ </head>