diff --git a/sass/_sparkline.scss b/sass/_sparkline.scss new file mode 100644 index 0000000..ae100ba --- /dev/null +++ b/sass/_sparkline.scss @@ -0,0 +1,22 @@ +.sparkline { + display: flex; + flex-direction: row; + align-items: flex-end; + float: inline-end; + gap: 0.25rem; + margin: 1rem 0; + width: 6rem; + height: 2rem; + + div { + flex: 1; + transform-origin: bottom; + transition: var(--transition); + background-image: linear-gradient(to top, var(--accent-color) var(--bar-height), transparent var(--bar-height)); + height: 100%; + + &:hover { + height: 200%; + } + } +} diff --git a/sass/style.scss b/sass/style.scss index a116e05..756f8fa 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -29,6 +29,7 @@ @use "not-found"; @use "post-nav"; @use "pre-container"; +@use "sparkline"; @use "spoiler"; @use "statements"; @use "table"; diff --git a/templates/article_list.html b/templates/article_list.html index 46cc1c4..3bbde28 100644 --- a/templates/article_list.html +++ b/templates/article_list.html @@ -14,6 +14,22 @@ {{ section.content | safe }} +{#
{%- if config.taxonomies | length > 0 -%}
@@ -22,7 +38,7 @@
{%- endif %}
- {{ macros_translate::translate(key="posts", number=number_of_posts, default="$NUMBER posts", language_strings=language_strings) }}
+ {{ macros_translate::translate(key="posts", number=number_of_posts, default="$NUMBER posts in total", language_strings=language_strings) }}