33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
<div class="max-w-6xl mx-auto">
|
|
<div class="mb-20 text-center">
|
|
<h1 class="text-4xl font-bold mb-2 text-black">{{ .Title }}</h1>
|
|
</div>
|
|
<div class="grid grid-cols-1 gap-8 auto-rows-max">
|
|
{{- $pages := union .RegularPages .Sections }}
|
|
|
|
{{- if .IsHome }}
|
|
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
|
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
|
|
{{- end }}
|
|
{{ range $pages }}
|
|
<div class="bg-white shadow-lg rounded-lg p-10">
|
|
<div class="text-[18px] font-semibold pb-2">
|
|
<a href="{{ .RelPermalink }}" class="text-bold hover:underline">
|
|
{{ .LinkTitle }}
|
|
</a>
|
|
</div>
|
|
<div class="font-light pb-2">{{ .Date | time.Format ":date_long" }}</div>
|
|
<div class="text-[14px] rounded-md line-clamp-3">
|
|
{{ .Summary }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
<div class="flex space-x-12 justify-center mt-24 text-2xl">
|
|
<div class=""><a href="/posts/">Posts</a></div>
|
|
<div class=""><a href="/daily/">Daily</a></div>
|
|
</div>
|
|
{{ end }}
|