diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ff1e357..c8a7669a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Site search powered by Fuse.js - Automatic Markdown image resizing and srcset generation - Performance and Accessibility improvements to achieve perfect Lighthouse scores +- Taxonomies on article and list pages - Author `headline` parameter - Skip to content links diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index d8747a57..613779e3 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1997,6 +1997,11 @@ body a, body button { margin-bottom: 0.75rem; } +.my-1 { + margin-top: 0.25rem; + margin-bottom: 0.25rem; +} + .mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; @@ -2279,14 +2284,14 @@ body a, body button { scroll-behavior: smooth; } -.rounded-full { - border-radius: 9999px; -} - .rounded-md { border-radius: 0.375rem; } +.rounded-full { + border-radius: 9999px; +} + .rounded { border-radius: 0.25rem; } @@ -2317,6 +2322,11 @@ body a, body button { border-color: rgba(var(--color-neutral-400), var(--tw-border-opacity)); } +.border-neutral-200 { + --tw-border-opacity: 1; + border-color: rgba(var(--color-neutral-200), var(--tw-border-opacity)); +} + .border-neutral-300 { --tw-border-opacity: 1; border-color: rgba(var(--color-neutral-300), var(--tw-border-opacity)); @@ -2327,11 +2337,6 @@ body a, body button { border-color: rgba(var(--color-primary-400), var(--tw-border-opacity)); } -.border-neutral-200 { - --tw-border-opacity: 1; - border-color: rgba(var(--color-neutral-200), var(--tw-border-opacity)); -} - .border-neutral-700 { --tw-border-opacity: 1; border-color: rgba(var(--color-neutral-700), var(--tw-border-opacity)); @@ -2640,6 +2645,11 @@ body a, body button { margin-top: 2rem; } +.hover\:border-primary-300:hover { + --tw-border-opacity: 1; + border-color: rgba(var(--color-primary-300), var(--tw-border-opacity)); +} + .hover\:border-primary-400:hover { --tw-border-opacity: 1; border-color: rgba(var(--color-primary-400), var(--tw-border-opacity)); @@ -2999,6 +3009,11 @@ body a, body button { color: rgba(var(--color-neutral-800), var(--tw-text-opacity)); } +.dark .dark\:hover\:border-primary-600:hover { + --tw-border-opacity: 1; + border-color: rgba(var(--color-primary-600), var(--tw-border-opacity)); +} + .dark .dark\:hover\:bg-primary-900:hover { --tw-bg-opacity: 1; background-color: rgba(var(--color-primary-900), var(--tw-bg-opacity)); diff --git a/config/_default/params.toml b/config/_default/params.toml index d075a017..f9946871 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -29,6 +29,7 @@ enableSearch = false showHeadingAnchors = true showPagination = true showReadingTime = true + showTaxonomies = false showWordCount = false # sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"] diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 1f462b70..8d270d6f 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -29,6 +29,7 @@ mainSections = ["samples"] showHeadingAnchors = true showPagination = true showReadingTime = true + showTaxonomies = false showWordCount = false # sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"] diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html index ea87e653..bec143e6 100644 --- a/layouts/partials/article-meta.html +++ b/layouts/partials/article-meta.html @@ -40,4 +40,21 @@ {{ partial "badge.html" (i18n "article.draft" | emojify) }} {{ end }} + + {{/* Output taxonomies */}} + {{ if .Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false) }} +