From 8bf69a5d71e556f07dcfd43e02eb83861ea9136c Mon Sep 17 00:00:00 2001 From: daudix Date: Thu, 17 Oct 2024 17:00:35 +0300 Subject: [PATCH] The big shortcode cleanup --- CHANGELOG.md | 4 + config.toml | 2 +- content/demo/index.md | 30 ++++++- i18n/ar.toml | 2 + i18n/en.toml | 2 + i18n/es.toml | 2 + i18n/fa.toml | 2 + i18n/ms.toml | 2 + i18n/ru.toml | 2 + i18n/zh-Hans.toml | 2 + sass/_iframe.scss | 10 ++- templates/macros/rel_attributes.html | 6 +- templates/macros/translate.html | 98 +++++++++++------------ templates/partials/comments.html | 10 +-- templates/partials/csp.html | 72 ++++++++--------- templates/partials/default_theme.html | 6 +- templates/partials/description.html | 6 +- templates/partials/favicon.html | 22 ++--- templates/partials/language_switcher.html | 76 +++++++++--------- templates/partials/title.html | 6 +- templates/shortcodes/alert.html | 41 +++++----- templates/shortcodes/image.html | 63 ++++++++------- templates/shortcodes/mastodon.html | 16 ++++ templates/shortcodes/video.html | 62 +++++++++++--- templates/shortcodes/vimeo.html | 6 +- templates/shortcodes/youtube.html | 7 +- 26 files changed, 331 insertions(+), 226 deletions(-) create mode 100644 templates/shortcodes/mastodon.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f037b6..0c1f1d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,12 +13,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `config.extra.show_backlinks` config variable for showing the backlinks button for linked articles in the article's quick actions. - Add `fediverse:creator` meta tag. - Add `title` class for use on ``. +- Add missing translation strings for author separator and conjunctions. +- Add shortcode for Mastodon post embedding. - Add support for Fuse.js search (#101). +- Add the ability to set video attributes via shortcode. ### Changed - Make `emoji` class available outside of comments. - Make the code and styling for article cards much cleaner. +- Make the shortcodes code much cleaner. - Remove top/bottom margin from the first/last element in `