add default page layout

This commit is contained in:
Amolith 2021-09-23 19:43:26 -04:00
parent 7c15a9fa73
commit 1fa7c8923a
Signed by: Amolith
GPG Key ID: 5548AD9930655715
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<!--
SPDX-FileCopyrightText: 2021 Amolith <amolith@secluded.site>
SPDX-License-Identifier: BSD-3-Clause
-->
{{ define "main" }}
<div class="wrapper">
<article>
<div class="frontmatter">
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
{{- if .GitInfo }}
<p><strong>Last edited:</strong> <a href="{{ .Site.Params.gitUrl -}}{{ .GitInfo.Hash }}" target="_blank" rel="noopener">{{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }}</a></p>
{{- end }}
</div>
<div class="content">
{{ .Content | safeHTML }}
</div>
</article>
</div>
{{ end }}