From 0409a75924ef2070d78fc502178be2c00583eaa6 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 1 Oct 2024 18:02:18 +0100 Subject: [PATCH] Fix CSS for Mastodon comments Based heavily on https://gitlab.com/ognarb/blog/-/raw/master/assets/scss/partials/article.scss, via https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ --- m.css/pelican-theme/templates/article.html | 1 + .../templates/article_comments.html | 194 ++++++++++++++++++ .../templates/article_footer.html | 194 ------------------ static/tweaks.css | 76 +++++++ 4 files changed, 271 insertions(+), 194 deletions(-) create mode 100644 m.css/pelican-theme/templates/article_comments.html diff --git a/m.css/pelican-theme/templates/article.html b/m.css/pelican-theme/templates/article.html index 859e7508..1ba5d9c3 100644 --- a/m.css/pelican-theme/templates/article.html +++ b/m.css/pelican-theme/templates/article.html @@ -133,6 +133,7 @@ {% if article.category.badge or (article.author and article.author.badge) %} {{ badges()|rtrim|indent(6) }} {% endif %} + {% include "article_comments.html" %}