fixed UI details across layouts

This commit is contained in:
Nuno Coração
2022-10-15 23:14:35 +01:00
parent dd64ebf501
commit 893aa17abc
9 changed files with 29 additions and 18 deletions

View File

@@ -25,7 +25,7 @@
</div>
</section>
{{ if gt .Pages 0 }}
<section class="space-y-10 w-fit">
<section class="space-y-10 max-w-prose">
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">

View File

@@ -12,9 +12,9 @@
</div>
</section>
{{ end }}
<section class="flex flex-wrap -mx-2 overflow-hidden">
<section class="flex flex-wrap max-w-prose -mx-2 overflow-hidden">
{{ range .Data.Terms }}
<article class="w-full px-2 my-3 overflow-hidden sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5">
<article class="w-full px-2 my-3 overflow-hidden sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/4">
<h2 class="flex items-center">
<a
class="text-xl font-medium decoration-primary-500 hover:underline hover:underline-offset-2"

View File

@@ -12,7 +12,7 @@
</div>
</section>
{{ end }}
<section class="mt-5 space-y-10 w-fit">
<section class="mt-5 space-y-10 max-w-prose">
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">