Browse Source

add default page layout

master
Amolith 2 months ago
parent
commit
1fa7c8923a
Signed by: Amolith GPG Key ID: 5548AD9930655715
  1. 21
      themes/redacted/layouts/_default/single.html

21
themes/redacted/layouts/_default/single.html

@ -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 }}
Loading…
Cancel
Save