henry-jekyll 0.2.0 → 0.2.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/_config.yml +1 -1
- data/_layouts/categories.html +24 -0
- data/_layouts/index.html +34 -0
- data/_layouts/page.html +9 -8
- data/_layouts/post.html +2 -2
- data/_sass/base.scss +5 -0
- data/_sass/main.scss +2 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e818d0643a1dc3aeb56b728ed846f26c9ace115ac1c068875c2b7c89f910e6e
|
4
|
+
data.tar.gz: 7eed28572f5ef6e73451a4b7bf724fe5986ab2522fedd040c0e7d8e153a653fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 101763a5bedc7bc69a1dd93f9749ea6172e274985ef12d67560c32c3253d4ac2c5b2865a95cf23c12fe265a672975c3cdb7235c32b93fa1339e1f6ef9b44e0b4
|
7
|
+
data.tar.gz: 747d6765bb4ac1ec4824da2625d41a71180cfa9d677cfb18793ae75bb2c0130015490dd47c0087412939aaf9634d3da132adaaa3fcbf365130849d44d3e6e265
|
data/_config.yml
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
permalink: /categories/
|
4
|
+
title: Categories
|
5
|
+
---
|
6
|
+
|
7
|
+
<section class="post-index">
|
8
|
+
{% for category in site.categories %}
|
9
|
+
{% capture category_name %}{{ category | first }}{% endcapture %}
|
10
|
+
|
11
|
+
<h2 class="post-list-header post-list-category" id="{{ category_name }}">#{{category_name}}</h2>
|
12
|
+
|
13
|
+
<ul class="post-list-content">
|
14
|
+
{% for post in site.categories[category_name] %}
|
15
|
+
<li class="post-link">
|
16
|
+
<a class="post-link-url" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
17
|
+
{% if post.external_url %}<a class="linklog" href="{{ post.external_url }}">{{ site.external-url-indicator }}</a>{% endif %}
|
18
|
+
<p class="post-link-date">{{ post.date | date: "%m/%-d" }}</p>
|
19
|
+
</li>
|
20
|
+
{% endfor %}
|
21
|
+
</ul>
|
22
|
+
{% endfor %}
|
23
|
+
</section>
|
24
|
+
</div>
|
data/_layouts/index.html
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: All Posts
|
4
|
+
---
|
5
|
+
|
6
|
+
<section class="post-index">
|
7
|
+
{% for post in site.posts %}
|
8
|
+
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
9
|
+
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
10
|
+
|
11
|
+
{% if forloop.first %}
|
12
|
+
<h2 class="post-list-header" id="{{ this_year }}-ref">{{this_year}}</h2>
|
13
|
+
<ul class="post-list-content">
|
14
|
+
{% endif %}
|
15
|
+
<li class="post-link">
|
16
|
+
<a class="post-link-url" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
17
|
+
{% if post.external_url %}<a class="linklog" href="{{ post.external_url }}">{{ site.external-url-indicator }}</a>{% endif %}
|
18
|
+
<p class="post-link-date">{{ post.date | date: "%b %-d" }}</p>
|
19
|
+
{% if post.draft %} <span class="draft">Draft</span> {% endif %}
|
20
|
+
</li>
|
21
|
+
|
22
|
+
{% if forloop.last %}
|
23
|
+
</ul>
|
24
|
+
{% else %}
|
25
|
+
{% if this_year != next_year %}
|
26
|
+
</ul>
|
27
|
+
|
28
|
+
<h2 class="post-list-header" id="{{ next_year }}-ref">{{next_year}}</h2>
|
29
|
+
|
30
|
+
<ul class="post-list-content">
|
31
|
+
{% endif %}
|
32
|
+
{% endif %}
|
33
|
+
{% endfor %}
|
34
|
+
</section>
|
data/_layouts/page.html
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<
|
4
|
+
<section class="post">
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
<header class="post-header">
|
7
|
+
<h1 class="post-title">{{ page.title }}</h1>
|
8
|
+
</header>
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
<article class="post-content">
|
11
|
+
{{ content }}
|
12
|
+
</article>
|
13
13
|
|
14
|
-
</
|
14
|
+
</section>
|
15
|
+
<!---->
|
data/_layouts/post.html
CHANGED
data/_sass/base.scss
CHANGED
data/_sass/main.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: henry-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaushik Gopal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -139,7 +139,9 @@ files:
|
|
139
139
|
- _includes/head.html
|
140
140
|
- _includes/header.html
|
141
141
|
- _includes/meta.html
|
142
|
+
- _layouts/categories.html
|
142
143
|
- _layouts/default.html
|
144
|
+
- _layouts/index.html
|
143
145
|
- _layouts/page.html
|
144
146
|
- _layouts/post.html
|
145
147
|
- _sass/_initialize.scss
|