diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2022-01-03 14:15:14 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2022-01-03 14:15:14 +0000 |
commit | 8cb6a3007590117228191d89052c9c2a6277ee7c (patch) | |
tree | 1ee3f2a6ae0854a6409bb1666e5bfe232726130a | |
parent | c44108b021903aaf5dfb32ac081d570c713b169e (diff) |
added blank home page template and updated copyright year
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | layouts/blog/single.html | 17 | ||||
-rw-r--r-- | layouts/index.html | 22 |
3 files changed, 40 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 14163ce..b6c7a57 100644 --- a/config.toml +++ b/config.toml @@ -8,7 +8,7 @@ pygmentsUseClasses = true [params] description = "An intentionally quiet and unassuming (and empty) blog" - copyright = "Copyright © 2021 Yulqen" + copyright = "Copyright © 2022 Yulqen" dark = "auto" highlight = true diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..cd92323 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} +<article> + <header id="post-header"> + <h1>{{ .Title }}</h1> + <div> + {{- if isset .Params "date" -}} + {{ if eq .Lastmod .Date }} + <time>{{ .Date.Format "2 January, 2006" }}</time> + {{ else }} + Updated <time>{{ .Lastmod.Format "January 2, 2006" }}</time> + {{ end }} + {{- end -}} + </div> + </header> + {{- .Content -}} +</article> +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..de7fa73 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,22 @@ + +{{ define "main" }} + <main aria-role="main"> + <header class="homepage-header"> + <h1>{{.Title}}</h1> + {{ with .Params.subtitle }} + <span class="subtitle">{{.}}</span> + {{ end }} + </header> + <div class="homepage-content"> + <!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md --> + {{.Content}} + </div> + <div> + {{ range first 10 .Site.RegularPages }} + {{ .Render "summary"}} + {{ end }} + </div> + </main> +{{ end }} + + |