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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f64e0c2a20aec336f3463acba80141cae7a7eb71b6a9620c1d29ba89aba1fa1
4
- data.tar.gz: a7bbdb584ea7983c494676c6e612c9aa9d79b34854fa054582977eb9ecdb1809
3
+ metadata.gz: 9e818d0643a1dc3aeb56b728ed846f26c9ace115ac1c068875c2b7c89f910e6e
4
+ data.tar.gz: 7eed28572f5ef6e73451a4b7bf724fe5986ab2522fedd040c0e7d8e153a653fa
5
5
  SHA512:
6
- metadata.gz: 443b9e84b92740d62c05b40caa877404ae32d83c998ccb4e946d38144468447622d2cbe40436ae121eba41fd0a73d8510345c25f00d493a43e05501348656bcc
7
- data.tar.gz: fa1a63094c94b4b7d6de589d1e7781ce482b846409c96655255a0149edabd9d05f4efc1360d60764f266a93124932a609140341b1d51e0899c04aa08e6233456
6
+ metadata.gz: 101763a5bedc7bc69a1dd93f9749ea6172e274985ef12d67560c32c3253d4ac2c5b2865a95cf23c12fe265a672975c3cdb7235c32b93fa1339e1f6ef9b44e0b4
7
+ data.tar.gz: 747d6765bb4ac1ec4824da2625d41a71180cfa9d677cfb18793ae75bb2c0130015490dd47c0087412939aaf9634d3da132adaaa3fcbf365130849d44d3e6e265
data/_config.yml CHANGED
@@ -12,7 +12,7 @@ author:
12
12
  twitter: kaushikgopal
13
13
  bio-url: "https://jkl.gg"
14
14
 
15
- external-url-indicator: " "
15
+ external-url-indicator: " »"
16
16
 
17
17
  # Link settings
18
18
  root: /
@@ -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>
@@ -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
- <div class="post">
4
+ <section class="post">
5
5
 
6
- <header class="post-header">
7
- <h1 class="post-title">{{ page.title }}</h1>
8
- </header>
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ </header>
9
9
 
10
- <article class="post-content">
11
- {{ content }}
12
- </article>
10
+ <article class="post-content">
11
+ {{ content }}
12
+ </article>
13
13
 
14
- </div>
14
+ </section>
15
+ <!---->
data/_layouts/post.html CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <div class="post">
4
+ <section class="post">
5
5
 
6
6
  <header class="post-header">
7
7
  <h1 class="post-title">
@@ -27,4 +27,4 @@ layout: default
27
27
 
28
28
  {% include meta.html %}
29
29
 
30
- </div>
30
+ </section>
data/_sass/base.scss CHANGED
@@ -1,6 +1,11 @@
1
1
  /**
2
2
  * Reset some basic elements
3
3
  */
4
+
5
+ html {
6
+ font-size: 100%; // for accessibility
7
+ }
8
+
4
9
  body, h1, h2, h3, h4, h5, h6,
5
10
  p, blockquote, pre, hr,
6
11
  dl, dd, ol, ul, figure {
data/_sass/main.scss CHANGED
@@ -155,8 +155,9 @@
155
155
  }
156
156
 
157
157
  .linklog {
158
- text-decoration: none;
159
158
  color: $color-link;
159
+ font-family: $fixed-width-font-family;
160
+ text-decoration: none;
160
161
 
161
162
  &:hover {
162
163
  color: $color-text;
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.0
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-07 00:00:00.000000000 Z
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