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 +4 -4
- data/_includes/sidebar.html +2 -0
- data/_layouts/post.html +11 -6
- data/_layouts/posts-archive.html +2 -2
- data/_layouts/posts-author.html +1 -1
- data/_layouts/posts-tag.html +2 -1
- data/_sass/amethyst.scss +10 -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: 1862052f2e939b117bac0d111234895d4103a5a39223c98fcf6794a1116f92f0
|
4
|
+
data.tar.gz: 5a0eb362913341106ea1f20eba8b6c50e3830b74e00ca4bc0928db95be0f8c9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae8a07691607180df222d14e234f63e20572186c2a55da2475391b434f9e6270d38dfb1a99916976df25ee1eca168ca04608291cded1d9de0a460c7cd8ff5613
|
7
|
+
data.tar.gz: 7ec00e114a617140bb10edc658c7235272675e4c5a731ed1cce538220aa4f60ec857db3fb7d1951a8fcf585ab33adfbc24a74a53bb9092a8389a9619ae62cc26
|
data/_includes/sidebar.html
CHANGED
@@ -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 <
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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>
|
data/_layouts/posts-archive.html
CHANGED
@@ -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
|
-
<
|
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
|
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>
|
data/_layouts/posts-author.html
CHANGED
@@ -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
|
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>
|
data/_layouts/posts-tag.html
CHANGED
@@ -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
|
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.
|
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.
|
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-
|
12
|
+
date: 2025-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|