diff --git a/exampleSite/content/docs/shortcodes/index.de.md b/exampleSite/content/docs/shortcodes/index.de.md index cbfd6c9b..643a4595 100644 --- a/exampleSite/content/docs/shortcodes/index.de.md +++ b/exampleSite/content/docs/shortcodes/index.de.md @@ -92,7 +92,8 @@ Das Alert-Zeichen (`+` oder `-`) ist optional, um zu steuern, ob die Admonition > **GitHub-Typen:** `NOTE`, `TIP`, `IMPORTANT`, `WARNING`, `CAUTION` > **Obsidian-Typen:** `note`, `abstract`, `info`, `todo`, `tip`, `success`, `question`, `warning`, `failure`, `danger`, `bug`, `example`, `quote` -


+> [!INFO]- Admonition anpassen +> Siehe die [Anleitung zur Anpassung von Admonition](https://github.com/nunocoracao/blowfish/blob/main/layouts/_default/_markup/render-blockquote.html). ## Article diff --git a/exampleSite/content/users/users.json b/exampleSite/content/users/users.json index e99f08d7..5a9a4655 100644 --- a/exampleSite/content/users/users.json +++ b/exampleSite/content/users/users.json @@ -1097,5 +1097,14 @@ "Personal Finance", "Calculators" ] + }, + { + "title": "chius.cc", + "url": "https://chius.cc/", + "source": "https://github.com/chius-me/chius.cc", + "tags": [ + "Personal site", + "Blog" + ] } ] diff --git a/i18n/de.yaml b/i18n/de.yaml index 43bf3a46..76c5ecaf 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -87,6 +87,23 @@ shortcode: recent: show_more: "Zeige Mehr" +admonition: + abstract: "Kurzfassung" + bug: "Bug" + caution: "Vorsicht" + danger: "Gefahr" + example: "Beispiel" + failure: "Fehler" + important: "Wichtig" + info: "Info" + note: "Hinweis" + question: "Frage" + quote: "Zitat" + success: "Erfolg" + tip: "Tipp" + todo: "To-Do" + warning: "Warnung" + cookie_notice: message_with_link: "Diese Website verwendet Cookies und ähnliche Technologien. Lesen Sie unsere Datenschutzerklärung" message: "Diese Website verwendet Cookies und ähnliche Technologien. Mit der Nutzung dieser Website akzeptierst du das." diff --git a/layouts/partials/article-link/_shortcode.html b/layouts/partials/article-link/_shortcode.html index 52b25a92..beb592b9 100644 --- a/layouts/partials/article-link/_shortcode.html +++ b/layouts/partials/article-link/_shortcode.html @@ -47,6 +47,9 @@ {{ end }} {{ else }} {{ $featured = $p.Resources.Get . }} + {{ if not $featured }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} {{ end }} @@ -89,7 +92,7 @@ role="presentation" loading="lazy" decoding="async" - class="not-prose absolute inset-0 w-full h-full object-cover"> + class="not-prose absolute inset-0 w-full h-full object-cover" /> {{ end }}
diff --git a/layouts/partials/article-link/card-related.html b/layouts/partials/article-link/card-related.html index e06d604a..8d0ff914 100644 --- a/layouts/partials/article-link/card-related.html +++ b/layouts/partials/article-link/card-related.html @@ -21,6 +21,9 @@ {{ end }} {{ else }} {{ $featured = $p.Resources.Get . }} + {{ if not $featured }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} {{ end }} @@ -57,14 +60,16 @@
{{ with $featuredURL }} -