diff options
Diffstat (limited to 'themes/polaris/layouts/_default')
-rw-r--r-- | themes/polaris/layouts/_default/baseof.html | 23 | ||||
-rw-r--r-- | themes/polaris/layouts/_default/home.html | 4 | ||||
-rw-r--r-- | themes/polaris/layouts/_default/now.html | 8 | ||||
-rw-r--r-- | themes/polaris/layouts/_default/single.html | 5 |
4 files changed, 40 insertions, 0 deletions
diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html new file mode 100644 index 0000000..b6ccdac --- /dev/null +++ b/themes/polaris/layouts/_default/baseof.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>{{ .Site.Title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + {{ $style := resources.Get "css/style.css" | minify | fingerprint }} + <link rel="stylesheet" href="{{ $style.Permalink }}"> + </head> + <body> + <nav> + {{ partial "nav.html" . }} + </nav> + <main> + {{ block "main" . }} + {{ .Content }} + {{ end }} + </main> + <footer> + {{ partial "footer.html" . }} + </footer> + </body> +</html> diff --git a/themes/polaris/layouts/_default/home.html b/themes/polaris/layouts/_default/home.html new file mode 100644 index 0000000..6e46985 --- /dev/null +++ b/themes/polaris/layouts/_default/home.html @@ -0,0 +1,4 @@ +{{ define "main" }} + {{ .Content }} + {{ partial "posts.html" }} +{{ end }} diff --git a/themes/polaris/layouts/_default/now.html b/themes/polaris/layouts/_default/now.html new file mode 100644 index 0000000..bb77eaf --- /dev/null +++ b/themes/polaris/layouts/_default/now.html @@ -0,0 +1,8 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + {{ .Content }} + <p> + Last updated {{ .Date | time.Format "Jan 02 2006" }}. + <a href="https://nownownow.com/about">What the heck is a “now page”?</a> + </p> +{{ end }} diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html new file mode 100644 index 0000000..d87f112 --- /dev/null +++ b/themes/polaris/layouts/_default/single.html @@ -0,0 +1,5 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + <p><em>Written {{ .Date | time.Format "Jan 02 2006" }}.</em></p> + {{ .Content }} +{{ end }} |