Added shortcodes, lots of improvements and content dump

This commit is contained in:
2022-06-07 13:54:07 +00:00
parent 6c98fcf57a
commit 9859c9e5ba
34 changed files with 448 additions and 59 deletions

View File

@@ -0,0 +1 @@
<a href='{{ .Destination | safeURL }}' target='_blank'>{{ .Text | safeHTML }}</a>

View File

@@ -28,11 +28,11 @@
{{ end }}
{{ block "head" . }}{{ end }}
{{ if .Param "chroma" }}
{{ with resources.Get "chroma.scss" | toCSS | postCSS | minify | fingerprint | resources.PostProcess }}
{{ with resources.Get "chroma.scss" | toCSS | minify | fingerprint | resources.PostProcess }}
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
{{ end }}
{{ end }}
{{ with resources.Get "main.scss" | toCSS | postCSS | minify | fingerprint | resources.PostProcess }}
{{ with resources.Get "main.scss" | toCSS | minify | fingerprint | resources.PostProcess }}
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
{{ end }}
</head>

View File

@@ -4,6 +4,9 @@
<h1>{{ .Title | humanize }}</h1>
</header>
{{ .Content }}
{{if gt (len .Pages) 0}}
<br />
<h3>Posts</h3>
<ul class='contents'>
{{ range .Pages }}
<br />
@@ -12,5 +15,6 @@
</a>
{{ end }}
</ul>
{{ end }}
</article>
{{ end }}