styles: main

This commit is contained in:
SerKo 2022-05-09 18:41:08 +08:00
parent 88c9777c62
commit 2a4d7b6955
2 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,7 @@
{{ partial "header.html" . -}}
<div class="d:flex flex:column@<=sm pt:90 px:32 jc:center gap:44">
{{- block "side" . }}{{- end }}
<div class="max-w:700 box:content-box">
<div class="max-w:700 w:700 box:content-box">
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
</div>

View File

@ -1,2 +1,16 @@
{{ define "main" }}
<div class="d:flex flex:col">
{{- partial "prose.html" . -}}
<h2 class="my:1em">Post</h2>
{{- range where site.RegularPages "Type" "in" site.Params.mainSections -}}
{{- partial "li.html" ( dict
"url" .Permalink
"title" .Title
"subTitle" (.Date | time.Format (":date_medium"))
) -}}
{{- end -}}
</div>
{{ end }}