small fix on docs

This commit is contained in:
Nuno Coração 2022-11-06 18:43:35 +00:00
parent 10be63c502
commit 3948277d5f

View file

@ -16,12 +16,12 @@
</span> </span>
</div> </div>
<div id="CardViewProse" class="hidden h-full"> <div id="CardViewScreenWidth" class="">
<section class="w-full"> <section class="relative w-screen max-w-[1600px]" style="left: calc(max(-50vw,-800px) + 50%);">
<div class="flex flex-wrap"> <div class="flex flex-wrap pl-8 pr-8">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }} .Site.Params.mainSections)).Pages }}
<div class="flex flex-wrap w-full p-4 sm:w-1/2 md:w-1/3"> <div class="flex flex-wrap w-full p-4 sm:w-1/2 md:w-1/3 xl:w-1/4 2xl:w-1/5">
{{ partial "article-link-card.html" . }} {{ partial "article-link-card.html" . }}
</div> </div>
{{ end }} {{ end }}
@ -29,12 +29,12 @@
</section> </section>
</div> </div>
<div id="CardViewScreenWidth" class=""> <div id="CardViewProse" class="hidden h-full">
<section class="relative w-screen max-w-[1600px]" style="left: calc(max(-50vw,-800px) + 50%);"> <section class="w-full">
<div class="flex flex-wrap pl-8 pr-8"> <div class="flex flex-wrap">
{{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in"
.Site.Params.mainSections)).Pages }} .Site.Params.mainSections)).Pages }}
<div class="flex flex-wrap w-full p-4 sm:w-1/2 md:w-1/3 xl:w-1/4 2xl:w-1/5"> <div class="flex flex-wrap w-full p-4 sm:w-1/2 md:w-1/3">
{{ partial "article-link-card.html" . }} {{ partial "article-link-card.html" . }}
</div> </div>
{{ end }} {{ end }}