diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-04-28 17:33:09 +0200 |
commit | e77051ccc4b47951bfa4fde2be436b1bb2fb113b (patch) | |
tree | f0b75ee3521da9c8cd39dac4359212348f70e4e8 /themes/blowfish/layouts/partials/related.html | |
parent | 4b355837824ac2422d371acef790f0f4249255c7 (diff) |
use https://github.com/nunocoracao/blowfish.git
Diffstat (limited to 'themes/blowfish/layouts/partials/related.html')
-rw-r--r-- | themes/blowfish/layouts/partials/related.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/partials/related.html b/themes/blowfish/layouts/partials/related.html new file mode 100644 index 0000000..f24f86c --- /dev/null +++ b/themes/blowfish/layouts/partials/related.html @@ -0,0 +1,11 @@ +{{ if .Params.showRelatedContent | default (.Site.Params.article.showRelatedContent | default false)}} +{{ $related := .Site.RegularPages.Related . | first .Site.Params.article.relatedContentLimit }} +{{ with $related }} +<h2 class="mt-8 text-2xl font-extrabold mb-10">{{ i18n "article.related_articles" | emojify }}</h2> +<section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3"> + {{ range . }} + {{ partial "article-link/card-related.html" . }} + {{ end }} +</section> +{{ end }} +{{ end }}
\ No newline at end of file |