From 6c53b50ec3afaabbe3f09c6e838baf63e17499b1 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Wed, 18 Dec 2019 01:04:15 -0500 Subject: Mostly working initial stuff TODO: CSS needs to be defined Index page lists about page when it shouldn't --- layouts/_default/list.html | 14 ++++++++++++++ layouts/_default/rss.xml | 26 ++++++++++++++++++++++++++ layouts/_default/single.html | 19 +++++++++++++++++++ layouts/_default/terms.html | 15 +++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/rss.xml create mode 100644 layouts/_default/single.html create mode 100644 layouts/_default/terms.html (limited to 'layouts/_default') diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..ffe85da --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,14 @@ +{{ partial "header.html" . }} +
+ {{ if not .IsHome }} +

{{ .Title | markdownify }}

+ {{ end }} + +
+{{ partial "footer.html" . }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..f907888 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,26 @@ + + + {{ .Site.Title }} + {{ .Permalink }} + Recent content on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..cb76f1a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,19 @@ +{{ partial "header.html" . }} +
+
+
+
+
+ {{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }} +
+
+
+

{{ .Title | markdownify }}

+
+
+
+
+ {{ .Content }} +
+
+{{ partial "footer.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..20347df --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} +
+ {{ if not .IsHome }} +

{{ .Title | markdownify }}

+ {{ end }} + +
+{{ partial "footer.html" . }} -- cgit v1.2.3