Update site layouts

This commit is contained in:
Gabriel Arazas 2023-02-25 08:06:18 +08:00
parent a1c0777c39
commit 8f68e1af9d
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,6 @@
{{- define "main" -}} {{- define "main" -}}
<main>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ .Content }} {{ .Content }}
@ -23,6 +24,5 @@
</section> </section>
{{- end }} {{- end }}
{{ end }} {{ end }}
</main>
{{- end -}} {{- end -}}

View File

@ -5,11 +5,10 @@
{{- partial "head_extended.html" . -}} {{- partial "head_extended.html" . -}}
</head> </head>
<body> <body>
{{- partial "components/theme-button.html" . }}
{{- partial "header.html" . -}} {{- partial "header.html" . -}}
<hr> <hr aria-hidden="true">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
<hr> <hr aria-hidden="true">
{{- partial "footer.html" . -}} {{- partial "footer.html" . -}}
{{- if hugo.IsProduction -}} {{- if hugo.IsProduction -}}
<script data-goatcounter="https://foo-dogsquared.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> <script data-goatcounter="https://foo-dogsquared.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>