From 99b5790a1adcab53ab8e2decd7397ad88a3680d8 Mon Sep 17 00:00:00 2001 From: BernatBC Date: Fri, 28 Jul 2023 16:04:23 +0200 Subject: [PATCH] Add possibility to show tags on post cards --- assets/styles/layouts/list.scss | 16 ++++++++++++++++ assets/styles/sections/recent-posts.scss | 16 ++++++++++++++++ layouts/partials/cards/post.html | 10 ++++++++++ layouts/partials/cards/recent-post.html | 10 ++++++++++ 4 files changed, 52 insertions(+) diff --git a/assets/styles/layouts/list.scss b/assets/styles/layouts/list.scss index bb24e8a..717cc74 100644 --- a/assets/styles/layouts/list.scss +++ b/assets/styles/layouts/list.scss @@ -98,6 +98,22 @@ body.kind-section, body.kind-term { width: fit-content; } + .taxonomy-terms-card { + text-align: left; + } + .taxonomy-terms-card li { + font-size: 0.5em; + list-style-type: none; + display: inline-block; + background: #248aaa; + margin-left: 0.1em; + margin-right: 0.1em; + } + + .taxonomy-terms-card a { + color: #f9fafc; + } + /* ============= Device specific fixes ======= */ /* Large screens such as TV */ diff --git a/assets/styles/sections/recent-posts.scss b/assets/styles/sections/recent-posts.scss index 7ff1704..1b30c8b 100644 --- a/assets/styles/sections/recent-posts.scss +++ b/assets/styles/sections/recent-posts.scss @@ -38,6 +38,22 @@ -webkit-line-clamp: 5; /* number of lines to show */ -webkit-box-orient: vertical; } + + .taxonomy-terms { + text-align: left; + } + .taxonomy-terms li { + font-size: 0.5em; + list-style-type: none; + display: inline-block; + background: #248aaa; + margin-left: 0.2em; + margin-right: 0.2em; + } + + .taxonomy-terms a { + color: #f9fafc; + } /* ============= Device specific fixes ======= */ diff --git a/layouts/partials/cards/post.html b/layouts/partials/cards/post.html index afabab9..200cf84 100644 --- a/layouts/partials/cards/post.html +++ b/layouts/partials/cards/post.html @@ -9,6 +9,16 @@

{{ .Summary }}