diff options
Diffstat (limited to 'themes/markskitchen/layouts/_default')
-rw-r--r-- | themes/markskitchen/layouts/_default/baseof.html | 9 | ||||
-rw-r--r-- | themes/markskitchen/layouts/_default/list.html | 15 | ||||
-rw-r--r-- | themes/markskitchen/layouts/_default/single.html | 21 |
3 files changed, 45 insertions, 0 deletions
diff --git a/themes/markskitchen/layouts/_default/baseof.html b/themes/markskitchen/layouts/_default/baseof.html new file mode 100644 index 0000000..c4963da --- /dev/null +++ b/themes/markskitchen/layouts/_default/baseof.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html> + {{- partial "head.html" . -}} + <body> + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} + </body> +</html> diff --git a/themes/markskitchen/layouts/_default/list.html b/themes/markskitchen/layouts/_default/list.html new file mode 100644 index 0000000..9388e7d --- /dev/null +++ b/themes/markskitchen/layouts/_default/list.html @@ -0,0 +1,15 @@ +{{ define "head" }} +<link rel="stylesheet" href='{{ "css/list.css" | absURL }}'> +{{ end }} + +{{ define "main" }} +<main id="main"> + <ul> + {{ range .Pages }} + <li> + <a class="link" href="{{ .RelPermalink }}">{{ .Title }} --- <i>{{ .PublishDate.Format "January 2, 2006"}}</i></a> + </li> + {{ end }} + </ul> +</main> +{{ end }} diff --git a/themes/markskitchen/layouts/_default/single.html b/themes/markskitchen/layouts/_default/single.html new file mode 100644 index 0000000..52e9c13 --- /dev/null +++ b/themes/markskitchen/layouts/_default/single.html @@ -0,0 +1,21 @@ +{{ define "head" }} +<link rel="stylesheet" href='{{ "css/single.css" | absURL }}'> +{{ end }} + +{{ define "main" }} +<main id="main" class="post"> + <h1>{{ .Title }}</h1> + <div><i>{{ .PublishDate.Format "January 2, 2006"}}</i></div> + <article class="content"> + {{ .Content }} + </article> + {{ if ne .Params.tags nil }} + <div> + <b>Keywords: </b> + {{ range .Params.tags }} + <a class="link" href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a> + {{ end }} + </div> + {{ end }} +</main> +{{ end }} |