jekyll-theme-simplix 0.4 → 0.4.1
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/_layouts/archive.html +44 -1
- data/_layouts/post.html +2 -2
- data/assets/script.js +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9cfb55fb3799b0f3d86d13a019de575f8e043e3b6ec29cd41763f2e1f91769c
|
|
4
|
+
data.tar.gz: ac9d85c0d8c19ed910859532c9482e7c277f04d9908f065d07794055db49905c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea6dfbd79098c0b400e2903ead8835e10b7bd411c20ccd230e74b8332e0425793560ab993e1e775bcbaa69a68032c6a349240499d72532c38b3067a3c6e1edaa
|
|
7
|
+
data.tar.gz: 0ab6db6b632677f6a4a1ddb2a7ac095b29bfc4892d96551fabb0487ff9a2a26f9fb80a872e60a00be36b7c2d5ff283c268413a1c88d5244e5faccbb73ddf0b23
|
data/_layouts/archive.html
CHANGED
|
@@ -2,5 +2,48 @@
|
|
|
2
2
|
layout: page
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
{% if page.type == 'tag' or page.type == 'category' %}
|
|
6
|
+
{% assign name = page.title | strip_html %}
|
|
7
|
+
{% elsif page.type == 'year' %}
|
|
8
|
+
{% assign name = page.date | date: '%Y' %}
|
|
9
|
+
{% assign child = 'month' %}
|
|
10
|
+
{% elsif page.type == 'month' %}
|
|
11
|
+
{% assign name = page.date | date: '%b %Y' %}
|
|
12
|
+
{% assign child = 'day' %}
|
|
13
|
+
{% elsif page.type == 'day' %}
|
|
14
|
+
{% assign name = page.date | date: '%d %b %Y' %}
|
|
15
|
+
{% endif %}
|
|
16
|
+
|
|
17
|
+
{% if child %}
|
|
18
|
+
{% assign arr = '' | split: ',' %}
|
|
19
|
+
{% assign months = ',Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec' | split: ',' %}
|
|
20
|
+
<p>Specific {{ child }}s which have existing posts: {% case page.type %}
|
|
21
|
+
{% when 'year' %}
|
|
22
|
+
{% assign year = page.date | date: '%Y' %}
|
|
23
|
+
{% for post in site.posts %}
|
|
24
|
+
{% assign src = post.date | date: '%Y' %}
|
|
25
|
+
{% if src == year %}
|
|
26
|
+
{% assign idx = post.date | date: '%m' %}
|
|
27
|
+
{% unless arr contains idx %}
|
|
28
|
+
{% assign arr = arr | push: idx %}
|
|
29
|
+
<a href="{{ idx }}">{% assign idx = idx | to_integer %}{{ months[idx] }}</a>
|
|
30
|
+
{% endunless %}
|
|
31
|
+
{% endif %}
|
|
32
|
+
{% endfor %}
|
|
33
|
+
{% when 'month' %}
|
|
34
|
+
{% assign month = page.date | date: '%Y%m' %}
|
|
35
|
+
{% for post in site.posts %}
|
|
36
|
+
{% assign src = post.date | date: '%Y%m' %}
|
|
37
|
+
{% if src == month %}
|
|
38
|
+
{% assign idx = post.date | date: '%d' %}
|
|
39
|
+
{% unless arr contains idx %}
|
|
40
|
+
{% assign arr = arr | push: idx %}
|
|
41
|
+
<a href="{{ idx }}">{{ idx }}</a>
|
|
42
|
+
{% endunless %}
|
|
43
|
+
{% endif %}
|
|
44
|
+
{% endfor %}
|
|
45
|
+
{% endcase %}</p>
|
|
46
|
+
{% endif %}
|
|
47
|
+
|
|
48
|
+
<p>Here are posts which belong to the {{ page.type }} <b>{{ name }}</b>.</p>
|
|
6
49
|
{% include list-post.html posts=page.posts %}
|
data/_layouts/post.html
CHANGED
|
@@ -13,10 +13,10 @@ title_bg_dark: 'linear-gradient(104deg, #1a094d 0%, #074b8f 70%, #0081de 100%)'
|
|
|
13
13
|
<p>posted{% if page.date %} on {{ page.date | date_to_string }}{% endif %}{% if page.author %} by {{ page.author | strip_html }}{% endif %}</p>
|
|
14
14
|
{% endif %}
|
|
15
15
|
{% if page.tags.size > 0 %}
|
|
16
|
-
<p>Tags: {% for tag in page.tags %}{% if site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'tags' %}<a href="{{ tag |
|
|
16
|
+
<p>Tags: {% for tag in page.tags %}{% if site.plugins contains 'jekyll-archives' and site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'tags' %}<a href="{{ site['jekyll-archives'].permalinks.tag | default: '/tag/:name/' | replace: ':name', tag | relative_url }}">{{ tag }}</a>{% else %}{{ tag }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
|
|
17
17
|
{% endif %}
|
|
18
18
|
{% if page.categories.size > 0 %}
|
|
19
|
-
<p>Categories: {% for category in page.categories %}{% if site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'categories' %}<a href="{{ category |
|
|
19
|
+
<p>Categories: {% for category in page.categories %}{% if site.plugins contains 'jekyll-archives' and site['jekyll-archives'].enabled == 'all' or site['jekyll-archives'].enabled contains 'categories' %}<a href="{{ site['jekyll-archives'].permalinks.category | default: '/category/:name/' | replace: ':name', category | relative_url }}">{{ category }}</a>{% else %}{{ category }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
|
|
20
20
|
{% endif %}
|
|
21
21
|
</header>
|
|
22
22
|
|
data/assets/script.js
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
// Initialize
|
|
44
|
+
// Initialize "Scroll to top" button
|
|
45
45
|
function scroll_ev() {
|
|
46
46
|
const e = document.querySelector("header"), r = e.getBoundingClientRect(), h = window.innerHeight;
|
|
47
47
|
if(document.body.clientHeight > h && (r.bottom <= h * .2) != document.body.classList.contains("main__scroll-down")) document.body.classList.toggle("main__scroll-down");
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-simplix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lithier94675
|
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
80
|
version: '0'
|
|
81
81
|
requirements: []
|
|
82
|
-
rubygems_version:
|
|
82
|
+
rubygems_version: 4.0.10
|
|
83
83
|
specification_version: 4
|
|
84
84
|
summary: A simple Jekyll theme made with gradient colors
|
|
85
85
|
test_files: []
|