jekyll-theme-amethyst 2.7.1 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 761d0e283346d45ab7dbd8ef98a2ea62be241e7f3cac2937c0fac6cd50c03463
4
- data.tar.gz: 97f7786441127eb032cce374d993604e85dfdffde42639dcebb4b9e8c116ecdd
3
+ metadata.gz: 1862052f2e939b117bac0d111234895d4103a5a39223c98fcf6794a1116f92f0
4
+ data.tar.gz: 5a0eb362913341106ea1f20eba8b6c50e3830b74e00ca4bc0928db95be0f8c9a
5
5
  SHA512:
6
- metadata.gz: 83cc009a2f4c57f15c61e630e96a972189fef102ea62ad360aa7e0ae00fe5642de9de799caa1d360b1985419f6300c53cd00051c0eeda4c38da003a5a8e8af60
7
- data.tar.gz: 9405aac2bfbef432d51caa7c55975e5cdb9af1abf7b3a8ffb9b8a9a17ce3698eb74e2225dd6d6b3954fe3f1f13aa9ce0f5eccfe9efc10c5eb0e0b59b5760dd28
6
+ metadata.gz: ae8a07691607180df222d14e234f63e20572186c2a55da2475391b434f9e6270d38dfb1a99916976df25ee1eca168ca04608291cded1d9de0a460c7cd8ff5613
7
+ data.tar.gz: 7ec00e114a617140bb10edc658c7235272675e4c5a731ed1cce538220aa4f60ec857db3fb7d1951a8fcf585ab33adfbc24a74a53bb9092a8389a9619ae62cc26
@@ -66,6 +66,8 @@ Block data:
66
66
  {%- assign block_url = block.url | default: group_page.url -%}
67
67
  {%- assign block_contents = site.pages | where: 'groups', block.group | sort_natural: 'title' -%}
68
68
  {%- elsif block_type == "recent" -%}
69
+ {%- assign group_page = site.pages | where: "layout", "posts" | first -%}
70
+ {%- assign block_url = block.url | default: group_page.url -%}
69
71
  {%- assign block_contents = site.posts | slice: 0, 5 -%}
70
72
  {%- elsif block_type == "archive" -%}
71
73
  {%- assign block_contents = site.pages | where: "layout", "posts-year" | sort_natural: 'date' | reverse -%}
data/_layouts/post.html CHANGED
@@ -8,12 +8,17 @@ layout: wrapper
8
8
  <header>
9
9
  <h1>{{ page.title | escape }}</h1>
10
10
  {%- assign date_format = site.amethyst.date_format | default: "%e %B %Y" -%}
11
- <p class="post-meta byline">Posted on <a href="{{ page.url | relative_url }}" rel="bookmark"><time itemprop="pubdate" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: date_format }}</time></a>{% if page.author %} by <span class="vcard"><span class="fn n" rel="author">
12
- {%- assign author_page = site.pages | where: "layout", "posts-author" | where: "author", page.author | first -%}
13
- {%- if author_page -%}
14
- <a href="{{ author_page.url | relative_url }}">{{ site.data.authors[page.author] | default: page.author | escape }}</a>
15
- {%- else -%}{{ site.data.authors[page.author] | default: page.author | escape}}
16
- {%- endif -%}</span></span>{% endif %}</p>
11
+ <p class="post-meta byline">Posted on <time pubdate datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: date_format }}</time>
12
+ {%- if page.author %} by <span class="author vcard">
13
+ {%- assign author_page = site.pages | where: "layout", "posts-author" | where: "author", page.author | first -%}
14
+ {%- if author_page -%}
15
+ <a rel="author" class="url fn n" href="{{ author_page.url | relative_url }}">{{ site.data.authors[page.author] | default: page.author | escape }}</a>
16
+ {%- else -%}
17
+ <span rel="author" class="fn n">{{ site.data.authors[page.author] | default: page.author | escape}}</span>
18
+ {%- endif -%}
19
+ </span>
20
+ {%- endif -%}
21
+ </p>
17
22
  </header>
18
23
  {{ content }}
19
24
  </article>
@@ -14,11 +14,11 @@ amethyst:
14
14
  {%- assign post_year = post.date | date: '%Y' -%}
15
15
  {%- if post_year != prev_year -%}
16
16
  {%- if prev_year != false %}</ul>{% endif %}
17
- <p id="{{ post_year | escape }}"><strong>{{ post_year | escape }}</strong></p>
17
+ <h3 id="{{ post_year | escape }}">{{ post_year | escape }}</h3>
18
18
  <ul>
19
19
  {%- assign prev_year = post_year -%}
20
20
  {%- endif %}
21
- <li><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>, <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format_archive }}</time></li>
21
+ <li><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a><br><span class="post-meta">Posted <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format_archive }}</time>{% if post.author %} by {{ site.data.authors[post.author] | default: post.author | escape }}{% endif %}</span>
22
22
  {%- endfor -%}
23
23
  </ul>
24
24
  </div>
@@ -11,7 +11,7 @@ amethyst:
11
11
  <h1>Author: {{ page.title | escape }}</h1>
12
12
  <ul>
13
13
  {% for post in posts -%}
14
- <li><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>, <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format_archive }}</time></li>
14
+ <li><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a><br><span class="post-meta">Posted <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format_archive }}</time></span></li>
15
15
  {%- endfor -%}
16
16
  </ul>
17
17
  </div>
@@ -11,7 +11,8 @@ amethyst:
11
11
  <h1>Tag: {{ page.title | escape }}</h1>
12
12
  <ul>
13
13
  {% for post in posts -%}
14
- <li><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>, <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format_archive }}</time></li>
14
+ <li><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a><br><span class="post-meta">Posted <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format_archive }}</time>{% if post.author %} by {{ site.data.authors[post.author] | default: post.author | escape }}{% endif %}</span>
15
+ </li>
15
16
  {%- endfor -%}
16
17
  </ul>
17
18
  </div>
data/_sass/amethyst.scss CHANGED
@@ -9,7 +9,7 @@ $size-sm: 0.8rem;
9
9
  $size-1: 1rem;
10
10
  $size-2: 1.25rem;
11
11
  $size-3: 1.5rem;
12
- $size-4: 2.25rem;
12
+ $size-4: 2.1rem;
13
13
  $size-5: 3.157rem;
14
14
  $size-spacing: $size-2;
15
15
  $box-spacing: $size-1;
@@ -781,6 +781,15 @@ article > header {
781
781
  color: $color-off-white;
782
782
  }
783
783
 
784
+ .posts > ul > li {
785
+ color: $color-darkgrey;
786
+ margin-bottom: $size-sm;
787
+ }
788
+
789
+ .posts > ul > li > a {
790
+ font-weight: bold;
791
+ }
792
+
784
793
  .post-row h2 {
785
794
  margin-bottom: $size-1;
786
795
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-amethyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Tijhof
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-24 00:00:00.000000000 Z
12
+ date: 2025-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll