spaacedout 1.0.1 → 1.0.2
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 +4 -4
- data/_includes/end-notice.html +2 -0
- data/_includes/info-notice.html +2 -0
- data/_includes/pagination.html +2 -33
- data/_includes/post/tags.html +1 -1
- data/_includes/warning-notice.html +2 -0
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +7 -5
- data/_layouts/page.html +4 -4
- data/_layouts/post.html +4 -2
- data/_sass/core/core.scss +2 -1
- data/_sass/core/notice.scss +16 -0
- data/_sass/core/post.scss +5 -1
- data/_sass/variables/variables.scss +1 -0
- data/assets/pages/tags.md +49 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2e673b1216d5de609f61335f792223e79c6ae21dd6b97a34ec9a9e69f483f93
|
4
|
+
data.tar.gz: f7da0da6753838d3e89c5d08bc55779c333a2cc44e20c112576d8c53653c86f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15e39eb5fbf84e4ed606fc710827c06b2e5a5bb601a705d323e65831717da599f35370c984619417e1362151ee63e959f08ceb59005038d73d908656f3700327
|
7
|
+
data.tar.gz: 194826dae67fca9244bbc01cc617fab1ae9e2d3c4efe4be67509a08cee5f73ff28c2a650781a91cae3aa9f71cad05e922133d862d509c5555cdcfe165312654c
|
data/_includes/pagination.html
CHANGED
@@ -4,38 +4,7 @@
|
|
4
4
|
{% assign current_modulo = paginator.page | minus: 1 | modulo: site.page_group_size | plus: 1 %}
|
5
5
|
{% assign low_page = paginator.page | minus: current_modulo | plus: 1 %}
|
6
6
|
{% assign high_page = low_page | plus: site.page_group_size | minus: 1 | at_most: paginator.total_pages %}
|
7
|
-
<div class="pagination">
|
8
|
-
{% if paginator.previous_page %}
|
9
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
10
|
-
{% else %}
|
11
|
-
<span>« Prev</span>
|
12
|
-
{% endif %}
|
13
|
-
{% if low_page > 1 %}
|
14
|
-
<a href="/">1</a>
|
15
|
-
|
16
|
-
{% assign previous_page_group = low_page | minus: 1 %}
|
17
|
-
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', previous_page_group }}">...</a>
|
18
|
-
{% endif %}
|
19
|
-
{% for page in (low_page..high_page) %}
|
20
|
-
{% if page == paginator.page %}
|
21
|
-
<span>{{ page }}</span>
|
22
|
-
{% elsif page == 1 %}
|
23
|
-
<a href="/">{{ page }}</a>
|
24
|
-
{% else %}
|
25
|
-
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
26
|
-
{% endif %}
|
27
|
-
{% endfor %}
|
28
|
-
{% if paginator.total_pages > high_page %}
|
29
|
-
{% assign next_page_group = high_page | plus: 1 %}
|
30
|
-
{% if next_page_group < paginator.total_pages %}
|
31
|
-
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', next_page_group }}">...</a>
|
32
|
-
{% endif %}
|
33
|
-
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', paginator.total_pages }}">{{paginator.total_pages}}</a>
|
34
|
-
{% endif %}
|
35
|
-
{% if paginator.next_page %}
|
36
|
-
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
|
37
|
-
{% else %}
|
38
|
-
<span>Next »</span>
|
39
|
-
{% endif %}
|
7
|
+
<div class="pagination">
|
8
|
+
{% if paginator.previous_page %}<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-prev">« Prev</a>{% else %}<span class="prev">« Prev</span>{% endif %}{% if low_page > 1 %}<a href="{{ site.baseurl }}/" class="page-num">1</a>{% assign previous_page_group = low_page | minus: 1 %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', previous_page_group }}" class="page-num">...</a>{% endif %}{% for page in (low_page..high_page) %}{% if page == paginator.page %}<span class="page-num">{{ page }}</span>{% elsif page == 1 %}<a href="/" class="page-num">{{ page }}</a>{% else %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page-num">{{ page }}</a>{% endif %}{% endfor %}{% if paginator.total_pages > high_page %}{% assign next_page_group = high_page | plus: 1 %}{% if next_page_group < paginator.total_pages %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', next_page_group }}" class="page-total"> ...</a>{% endif %}<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', paginator.total_pages }}" class="page-total">{{paginator.total_pages}}</a>{% endif %}{% if paginator.next_page %}<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="page-next">Next »</a>{% else %}<span class="next">Next »</span>{% endif %}
|
40
9
|
</div>
|
41
10
|
{% endif %}
|
data/_includes/post/tags.html
CHANGED
data/_layouts/default.html
CHANGED
data/_layouts/home.html
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
<div class="wrapper">
|
7
|
+
<div class="home">
|
5
8
|
{% if page.title %}
|
6
9
|
<h1 class="page-heading">{{ page.title }}</h1>
|
7
10
|
{% endif %}
|
8
|
-
|
9
|
-
{{ content }}
|
10
|
-
|
11
|
+
|
11
12
|
{% if site.posts.size > 0 %}
|
12
13
|
<div class="posts-list">
|
13
14
|
{% for post in paginator.posts %}
|
@@ -35,4 +36,5 @@ layout: default
|
|
35
36
|
</div>
|
36
37
|
{% include pagination.html %}
|
37
38
|
{% endif %}
|
38
|
-
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
data/_layouts/page.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<article class="page">
|
5
4
|
|
5
|
+
<div class="wrapper">
|
6
|
+
<article class="page">
|
6
7
|
<header class="post-header">
|
7
8
|
<h1 class="post-title">{{ page.title | escape }}</h1>
|
8
9
|
</header>
|
9
|
-
|
10
10
|
<div class="post-content">
|
11
11
|
{{ content }}
|
12
12
|
</div>
|
13
|
-
|
14
|
-
|
13
|
+
</article>
|
14
|
+
</div>
|
data/_layouts/post.html
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
5
4
|
|
5
|
+
<div class="wrapper">
|
6
|
+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
6
7
|
<header class="post-header">
|
7
8
|
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
|
8
9
|
{% include post/meta.html %}
|
@@ -18,4 +19,5 @@ layout: default
|
|
18
19
|
{% endif %}
|
19
20
|
|
20
21
|
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
21
|
-
</article>
|
22
|
+
</article>
|
23
|
+
</div>
|
data/_sass/core/core.scss
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
.notice {
|
2
|
+
margin: 30px 0;
|
3
|
+
padding: 10px;
|
4
|
+
border-radius: 5px;
|
5
|
+
|
6
|
+
&.info {
|
7
|
+
border: 1px solid $color-lightblue;
|
8
|
+
background-color: lighten($color-lightblue, 30%);
|
9
|
+
color: darken($color-lightblue, 30%);
|
10
|
+
}
|
11
|
+
&.warning {
|
12
|
+
border: 1px solid $color-red;
|
13
|
+
background-color: lighten($color-red, 30%);
|
14
|
+
color: darken($color-red, 30%);
|
15
|
+
}
|
16
|
+
}
|
data/_sass/core/post.scss
CHANGED
@@ -18,6 +18,7 @@ $color-blue: #0a59b0 !default;
|
|
18
18
|
$color-teal: #5CCDDE !default;
|
19
19
|
$color-navy: #021523 !default;
|
20
20
|
$color-yellow: #ffc107 !default;
|
21
|
+
$color-red: #D9534F !default;
|
21
22
|
$color-orange: #FF6154 !default;
|
22
23
|
$color-purple: #98b8fe !default;
|
23
24
|
$color-white: #fff !default;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
title: Tags
|
3
|
+
permalink: /tags/
|
4
|
+
include_nav: false
|
5
|
+
---
|
6
|
+
|
7
|
+
<script>
|
8
|
+
SpaacedOut.ready(() => {
|
9
|
+
let title = document.getElementsByClassName('post-title')
|
10
|
+
if (title) {
|
11
|
+
title[0].style.display = 'none'
|
12
|
+
}
|
13
|
+
let tag = window.location.hash
|
14
|
+
if(tag) {
|
15
|
+
let tagElement = document.getElementById(tag.substring(1))
|
16
|
+
if (tagElement) {
|
17
|
+
tagElement.style.display = 'block'
|
18
|
+
}
|
19
|
+
}
|
20
|
+
else {
|
21
|
+
// Let's just show them all
|
22
|
+
var tags = document.getElementsByClassName('tag')
|
23
|
+
for (var tagElement of tags) {
|
24
|
+
if (tagElement) {
|
25
|
+
tagElement.style.display = 'block'
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
})
|
30
|
+
</script>
|
31
|
+
|
32
|
+
{% assign tags = site.tags %}
|
33
|
+
|
34
|
+
<div class="tag_page">
|
35
|
+
{% for tag in tags %}
|
36
|
+
{% assign tagname = tag | first | slugify %}
|
37
|
+
<div id="{{ tagname }}" class="tag">
|
38
|
+
<h2>#{{ tagname }} Posts</h2>
|
39
|
+
{% assign posts = tag[1] %}
|
40
|
+
<ul>
|
41
|
+
{% for post in posts %}
|
42
|
+
<li>
|
43
|
+
<a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a>
|
44
|
+
</li>
|
45
|
+
{% endfor %}
|
46
|
+
</ul>
|
47
|
+
</div>
|
48
|
+
{% endfor %}
|
49
|
+
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spaacedout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Gaylord
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- _includes/comments/comments_link.html
|
152
152
|
- _includes/comments/disqus_comments.html
|
153
153
|
- _includes/comments/disqus_comments_link.html
|
154
|
+
- _includes/end-notice.html
|
154
155
|
- _includes/footer.html
|
155
156
|
- _includes/head.html
|
156
157
|
- _includes/head/google-adsense.html
|
@@ -158,12 +159,14 @@ files:
|
|
158
159
|
- _includes/head/stylesheets.html
|
159
160
|
- _includes/head/twitter.html
|
160
161
|
- _includes/header.html
|
162
|
+
- _includes/info-notice.html
|
161
163
|
- _includes/pagination.html
|
162
164
|
- _includes/post/archive_post.html
|
163
165
|
- _includes/post/edit.html
|
164
166
|
- _includes/post/meta.html
|
165
167
|
- _includes/post/tags.html
|
166
168
|
- _includes/social-links.html
|
169
|
+
- _includes/warning-notice.html
|
167
170
|
- _layouts/default.html
|
168
171
|
- _layouts/home.html
|
169
172
|
- _layouts/page.html
|
@@ -174,11 +177,13 @@ files:
|
|
174
177
|
- _sass/core/footer.scss
|
175
178
|
- _sass/core/header.scss
|
176
179
|
- _sass/core/main.scss
|
180
|
+
- _sass/core/notice.scss
|
177
181
|
- _sass/core/post.scss
|
178
182
|
- _sass/syntax-highlight.scss
|
179
183
|
- _sass/variables/variables.scss
|
180
184
|
- assets/js/utils.js
|
181
185
|
- assets/pages/archives.md
|
186
|
+
- assets/pages/tags.md
|
182
187
|
- assets/style.scss
|
183
188
|
- assets/syntax-highlight.scss
|
184
189
|
homepage: https://github.com/jasongaylord/SpaacedOut
|