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/recent-articles/cardview-fullwidth.html | |
parent | 4b355837824ac2422d371acef790f0f4249255c7 (diff) |
use https://github.com/nunocoracao/blowfish.git
Diffstat (limited to 'themes/blowfish/layouts/partials/recent-articles/cardview-fullwidth.html')
-rw-r--r-- | themes/blowfish/layouts/partials/recent-articles/cardview-fullwidth.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/partials/recent-articles/cardview-fullwidth.html b/themes/blowfish/layouts/partials/recent-articles/cardview-fullwidth.html new file mode 100644 index 0000000..7551e17 --- /dev/null +++ b/themes/blowfish/layouts/partials/recent-articles/cardview-fullwidth.html @@ -0,0 +1,12 @@ +{{ $recentArticles := 5 }} +{{ $recentArticles = .Site.Params.homepage.showRecentItems }} + +<div class="relative w-screen max-w-[1600px] px-[30px]" style="left: calc(max(-50vw,-800px) + 50%);"> + <section + class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"> + {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" + .Site.Params.mainSections)).Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} + </section> +</div>
\ No newline at end of file |