From c0618e0a9c9cbc2a92555804c0603d0d2b882ae7 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Tue, 8 Jul 2025 10:51:34 +0200 Subject: [PATCH] feat: add blog post word count --- static/css/in.css | 8 +++++ static/css/out.css | 64 ++++++++++++++++++++++++--------------- templates/archives.html | 5 ++- templates/article.html | 2 +- templates/authors.html | 15 ++++----- templates/base.html | 27 +++++++++++++---- templates/categories.html | 2 +- templates/category.html | 2 +- templates/page.html | 2 +- templates/tag.html | 2 +- templates/tags.html | 28 ++++++++++++----- 11 files changed, 105 insertions(+), 52 deletions(-) diff --git a/static/css/in.css b/static/css/in.css index 76442b38..041b7b4a 100644 --- a/static/css/in.css +++ b/static/css/in.css @@ -52,6 +52,14 @@ ul { @apply pl-4 list-disc; } + + /* pelican tag_cloud */ + ul.tagcloud { + @apply list-none p-0; + } + ul.tagcloud li { + @apply inline-block p-1; + } } @layer components { diff --git a/static/css/out.css b/static/css/out.css index 02c3aaad..e1870e6c 100644 --- a/static/css/out.css +++ b/static/css/out.css @@ -718,6 +718,18 @@ ul { padding-left: 1rem; } +/* pelican tag_cloud */ + +ul.tagcloud { + list-style-type: none; + padding: 0px; +} + +ul.tagcloud li { + display: inline-block; + padding: 0.25rem; +} + /* Preflight is injected here */ .prose { @@ -1331,10 +1343,6 @@ code { grid-template-columns: repeat(9, minmax(0, 1fr)); } -.grid-cols-\[max-content_max-content_max-content_max-content\] { - grid-template-columns: max-content max-content max-content max-content; -} - .grid-cols-\[max-content_max-content_max-content_max-content_max-content\] { grid-template-columns: max-content max-content max-content max-content max-content; } @@ -1360,6 +1368,10 @@ code { hyphens: auto; } +.rounded-full { + border-radius: 9999px; +} + .border-b-2 { border-bottom-width: 2px; } @@ -1398,16 +1410,6 @@ code { background-color: rgb(255 250 243 / var(--tw-bg-opacity, 1)); } -.bg-rp-dawn-subtle { - --tw-bg-opacity: 1; - background-color: rgb(121 117 147 / var(--tw-bg-opacity, 1)); -} - -.bg-rp-dawn-muted { - --tw-bg-opacity: 1; - background-color: rgb(152 147 165 / var(--tw-bg-opacity, 1)); -} - .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); } @@ -1446,6 +1448,11 @@ code { padding: 2rem; } +.px-2 { + padding-left: 0.5rem; + padding-right: 0.5rem; +} + .pb-4 { padding-bottom: 1rem; } @@ -1490,6 +1497,11 @@ code { line-height: 1.5rem; } +.text-sm { + font-size: 0.875rem; + line-height: 1.25rem; +} + .text-xl { font-size: 1.25rem; line-height: 1.75rem; @@ -1503,6 +1515,10 @@ code { text-transform: uppercase; } +.capitalize { + text-transform: capitalize; +} + .italic { font-style: italic; } @@ -2260,16 +2276,16 @@ code { background-color: rgb(57 53 82 / var(--tw-bg-opacity, 1)); } - .dark\:bg-rp-moon-surface { - --tw-bg-opacity: 1; - background-color: rgb(42 39 63 / var(--tw-bg-opacity, 1)); - } - .dark\:bg-rp-moon-pine { --tw-bg-opacity: 1; background-color: rgb(62 143 176 / var(--tw-bg-opacity, 1)); } + .dark\:bg-rp-moon-surface { + --tw-bg-opacity: 1; + background-color: rgb(42 39 63 / var(--tw-bg-opacity, 1)); + } + .dark\:text-rp-moon-foam { --tw-text-opacity: 1; color: rgb(156 207 216 / var(--tw-text-opacity, 1)); @@ -2290,13 +2306,13 @@ code { color: rgb(234 154 151 / var(--tw-text-opacity, 1)); } - .dark\:text-rp-moon-text { - --tw-text-opacity: 1; - color: rgb(224 222 244 / var(--tw-text-opacity, 1)); - } - .dark\:text-rp-moon-surface { --tw-text-opacity: 1; color: rgb(42 39 63 / var(--tw-text-opacity, 1)); } + + .dark\:text-rp-moon-text { + --tw-text-opacity: 1; + color: rgb(224 222 244 / var(--tw-text-opacity, 1)); + } } diff --git a/templates/archives.html b/templates/archives.html index 131a095a..9b15a164 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -1,12 +1,11 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %} +{% block title %}Blog archive - {{ SITENAME|striptags }}{% endblock %} {% block content %}
-

Blog archive

+

Blog post archive

- Mostly valid WCAG 2.2 AA + 100% artisanal content licensed under CC BY-SA 4.0, + mostly valid WCAG 2.2 AA.

- 100% organic content licensed under CC BY-SA 4.0 -

-

- Atom feed + Atom feed of all blog posts.

diff --git a/templates/categories.html b/templates/categories.html index 1482ebd6..0f298e8c 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %} +{% block title %}Categories - {{ SITENAME|striptags }}{% endblock %} {% block content %}
diff --git a/templates/category.html b/templates/category.html index b73b635e..8edc3bc1 100644 --- a/templates/category.html +++ b/templates/category.html @@ -1,6 +1,6 @@ {% extends "index.html" %} -{% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %} +{% block title %}{{ category }} - {{ SITENAME|striptags }}{% endblock %} {% block content_title %}

Tales from the {{ category }} department

diff --git a/templates/page.html b/templates/page.html index 3d795423..fbc1985d 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% block html_lang %}{{ page.lang }}{% endblock %} -{% block title %}{{ SITENAME|striptags }} - {{ page.title|striptags }}{%endblock%} +{% block title %}{{ page.title|striptags }} - {{ SITENAME|striptags }} {%endblock%} {% block head %} {{ super() }} diff --git a/templates/tag.html b/templates/tag.html index c34a7b33..0696ceb2 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -1,6 +1,6 @@ {% extends "index.html" %} -{% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %} +{% block title %} {{ tag|capitalize }} - {{ SITENAME|striptags }}{% endblock %} {% block content_title %}

Tales tagged with {{ tag }}

diff --git a/templates/tags.html b/templates/tags.html index 52d30b56..3280842f 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -1,12 +1,26 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %} +{% block title %}Tags - {{ SITENAME|striptags }}{% endblock %} {% block content %} -

Tags for {{ SITENAME }}

- +

Article tags

+ + + + + + + + {% endblock %}