tag adjustments

This commit is contained in:
madrilene 2024-01-31 18:09:21 +01:00
parent 37d753c4c2
commit 2155eb38cc
6 changed files with 26 additions and 16 deletions

View file

@ -31,6 +31,7 @@ module.exports = {
'Tell the word what you are writing about in your blog. It will show up on feed readers.', 'Tell the word what you are writing about in your blog. It will show up on feed readers.',
tagSingle: 'Tag', tagSingle: 'Tag',
tagPlural: 'Tags', tagPlural: 'Tags',
tagMore: 'More tags:',
// feed links are looped over in the head. // feed links are looped over in the head.
feedLinks: [{title: 'Atom Feed', url: '/feed.xml', type: 'application/atom+xml'}], feedLinks: [{title: 'Atom Feed', url: '/feed.xml', type: 'application/atom+xml'}],
pagination: 'Blog', pagination: 'Blog',

View file

@ -13,7 +13,8 @@
.button:hover, .button:hover,
.button[aria-current='page'], .button[aria-current='page'],
.button[aria-pressed='true'] { .button[aria-pressed='true'],
.button[data-state='active'] {
background-size: 150% 150%; background-size: 150% 150%;
--button-bg: var(--color-text); --button-bg: var(--color-text);
--button-text: var(--color-bg); --button-text: var(--color-bg);

View file

@ -16,8 +16,8 @@
.card h3 { .card h3 {
font-family: var(--font-base); font-family: var(--font-base);
font-size: var(--size-step-2); font-size: var(--size-step-2);
font-weight: 700;
} }
.card h2 a, .card h2 a,
.card h3 a { .card h3 a {
text-decoration: none; text-decoration: none;

View file

@ -26,3 +26,7 @@
.tags h1 { .tags h1 {
font-size: var(--size-step-4); font-size: var(--size-step-4);
} }
.tags h2 {
font-size: var(--size-step-2);
}

View file

@ -9,6 +9,20 @@ eleventyComputed:
title: '{{ meta.blog.tagSingle }}: {{ tag }}' title: '{{ meta.blog.tagSingle }}: {{ tag }}'
--- ---
<ul class="grid region" role="list" data-rows="masonry" data-layout="50-50">
<!-- loop posts -->
{% set itemList = collections[tag] | reverse %} {% for item in itemList %}
<!-- activate tags -->
{% set activateTags = true %}
<!-- set heading context -->
{% set headingContext = "h2" %}
<!-- card -->
{% include 'components/card.njk' %} {% endfor %}
</ul>
<h2>{{ meta.blog.tagMore }}</h2>
<ul class="taglist | my-s-m cluster" role="list"> <ul class="taglist | my-s-m cluster" role="list">
{% for tag in collections.tagList %} {% for tag in collections.tagList %}
<li><a <li><a
@ -27,16 +41,3 @@ eleventyComputed:
</ul> </ul>
<ul class="grid region" role="list" data-rows="masonry" data-layout="50-50">
<!-- loop posts -->
{% set itemList = collections[tag] | reverse %} {% for item in itemList %}
<!-- activate tags -->
{% set activateTags = true %}
<!-- set heading context -->
{% set headingContext = "h2" %}
<!-- card -->
{% include 'components/card.njk' %} {% endfor %}
</ul>

View file

@ -5,7 +5,7 @@ eleventyComputed:
title: '{{ meta.blog.tagPlural }}' title: '{{ meta.blog.tagPlural }}'
--- ---
<div class="taglist | my-s-m cluster"> <div class="taglist | mt-s-m cluster">
{% for tag in collections.tagList %} {% for tag in collections.tagList %}
<a href="/tags/{{ tag }}" class="button"> <a href="/tags/{{ tag }}" class="button">
{{ tag }} {{ tag }}
@ -13,6 +13,7 @@ eleventyComputed:
{% endfor %} {% endfor %}
</div> </div>
<ul class="grid region" role="list" data-rows="masonry" data-layout="50-50"> <ul class="grid region" role="list" data-rows="masonry" data-layout="50-50">
<!-- loop posts --> <!-- loop posts -->
{% set itemlist = collections.posts %} {% for item in itemlist %} {% set itemlist = collections.posts %} {% for item in itemlist %}
@ -23,3 +24,5 @@ eleventyComputed:
<!-- card --> <!-- card -->
{% include 'components/card.njk' %} {% endfor %} {% include 'components/card.njk' %} {% endfor %}
</ul> </ul>