From ab789fc20396bb583835c1f47478c1f17039d39f Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 20 Jul 2022 01:14:33 +0200 Subject: Provide minimal tag cloud --- assets/js/search.js | 1 - assets/sass/_customize.scss | 27 ++++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/js/search.js b/assets/js/search.js index 270f828..4ea49ac 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -26,7 +26,6 @@ async function initSearchIndex() { this.field('objectID'); this.field('title'); - this.field('categories'); this.field('tags'); this.field('content'); diff --git a/assets/sass/_customize.scss b/assets/sass/_customize.scss index a996917..6d55b8e 100644 --- a/assets/sass/_customize.scss +++ b/assets/sass/_customize.scss @@ -134,13 +134,14 @@ ul.pager li { position: relative; } -.post-tags { +ul.post-tags { margin: 0; padding: 0; position: absolute; right: 24px; bottom: -12px; list-style: none; + text-indent: unset; } .post-tags li, @@ -213,6 +214,30 @@ a.external:after { @include mask-image (url("/img/external-link.svg")); } +ul.tags-cloud { + display: flex; + flex-wrap: wrap; + justify-content: center; + max-width: 960px; + margin: auto; + padding: 2rem 0 1rem; + list-style: none; + border: 2px solid white; + border-radius: 5px; +} + +ul.tags-cloud .tag { + display: flex; + align-items: center; + margin: 0.25rem 1rem; +} + +ul.tags-cloud .tag-link { + padding: 5px 5px 0; + transition: 0.3s; + text-decoration: none; +} + /* Themes */ /* Red */ -- cgit v1.2.3