awesome-jekyll-theme 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/blog.html +19 -20
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 164019e6c3109984bbe3db4279be2d23f8ddad23d1a12f7d3015f2bbca699696
4
- data.tar.gz: 044aa8802bdb0349b46c6dc5773bac73d39481b3ea89c390d9de63a601ecf023
3
+ metadata.gz: 0ad70b9c649c808a093c69abe1c09f1cc814ba7aa0b875f9a29facc92b6a7d06
4
+ data.tar.gz: 77f532c52fb44050fd7658cb2337070ba9f485201b3a979cf840013782609866
5
5
  SHA512:
6
- metadata.gz: 2e062ce6ae5c2472a9df4bcafbc47ff0c90877b6a3d07d1e7956359bf4faf6093fa93d2c06d5ece07c76a2e34cadd9d25c43d63e85e38ff2ef64ef2355d32228
7
- data.tar.gz: 2735944210b9f3ee36228c3b5a68de8f83d8c96d9a8daa8d427ea4c800e87b34b6631ce2fb1fe64c1e3c4d63495e6cdc226f0bd26d4a86fd5efdf1785967a571
6
+ metadata.gz: 41a04ed27443e17c0d6f96ff59d16b6b4586044a2189220f62e3a68f237f65325ef3dd36b1e8080a890eed965a0930dbdccc702a6e6d433cd46a8ad4484fe425
7
+ data.tar.gz: 3f258785edb80ac423deb85c0375ad2e25a9fcb9e2c6e8a3a49ba2384aadf3c26af0dbdf738d2874b28e257e06745831ff2d0be7ce738b46e13ba1d7cd027518
data/_layouts/blog.html CHANGED
@@ -4,37 +4,36 @@ layout: default
4
4
 
5
5
  <section class="container mx-auto pb-10 pt-20 lg:pt-[90px] lg:pb-20">
6
6
  {% if site.categories.size > 0 %}
7
- <div class="flex flex-wrap justify-center border-gray-400 border-y mb-4 md:mb-12 ">
8
- {% for category in site.categories %}
9
- {% assign category_name = category[0] %}
10
- <a href="{{site.url}}/category/{{category_name| replace: ' ', '-'| downcase}}"
7
+ <div
8
+ class="flex flex-wrap justify-center border-gray-400 border-y mb-4 md:mb-12"
9
+ >
10
+ {% for category in site.categories %} {% assign category_name = category[0]
11
+ %}
12
+ <a
13
+ href="{{site.url}}{{site.baseurl}}/category/{{category_name| replace: ' ', '-'| downcase}}"
11
14
  aria-label="Category {{category_name}} page"
12
- class="block font-mulish hover:text-sky-400 p-4 {% if category_name == page.title %}font-black{% endif %}">
15
+ class="block font-mulish hover:text-sky-400 p-4 {% if category_name == page.title %}font-black{% endif %}"
16
+ >
13
17
  {{ category_name | upcase }}
14
18
  </a>
15
19
  {% endfor %}
16
20
  </div>
17
- {% endif %}
21
+ {% endif %} {% assign posts = page.posts | default: site.posts %} {% assign
22
+ first_post = posts[0] %} {% include post_main.html post=first_post %} {%
23
+ assign rest_posts = posts | slice: 1, posts.size %} {% if rest_posts.size > 0
24
+ %}
18
25
 
19
- {% assign posts = page.posts | default: site.posts %}
20
- {% assign first_post = posts[0] %}
21
-
22
- {% include post_main.html post=first_post %}
23
-
24
-
25
- {% assign rest_posts = posts | slice: 1, posts.size %}
26
- {% if rest_posts.size > 0 %}
27
-
28
- <hr class="h-px my-12 bg-gray-400 border-0 dark:bg-gray-700">
26
+ <hr class="h-px my-12 bg-gray-400 border-0 dark:bg-gray-700" />
29
27
 
30
28
  <h1 class="text-2xl md:text-4xl font-bold text-gray-800">
31
29
  {{ site.data[site.active_lang].strings.blog.more_articles | default:
32
30
  site.data['en'].strings.blog.more_articles }}
33
31
  </h1>
34
- <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-12 gap-y-16 py-8 md:py-16">
35
- {% for post in rest_posts %}
36
- {% include post_card.html post=post %}
37
- {% endfor %}
32
+ <div
33
+ class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-12 gap-y-16 py-8 md:py-16"
34
+ >
35
+ {% for post in rest_posts %} {% include post_card.html post=post %} {%
36
+ endfor %}
38
37
  </div>
39
38
  {% endif%}
40
39
  </section>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - a-chacon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-12 00:00:00.000000000 Z
11
+ date: 2024-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll