diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | layouts/_default/list.html | 16 | ||||
-rw-r--r-- | layouts/_default/single.html | 10 |
3 files changed, 26 insertions, 11 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 5f8e2ec..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE html> -<html> - {{- partial "head.html" . -}} - <body> - {{- partial "header.html" . -}} - <div id="content"> - {{- block "main" . }}{{- end }} - </div> - {{- partial "footer.html" . -}} - </body> -</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..e69e3bf 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ partial "head" . }} +<main> + + {{ .Content }} + <ul class="contents"> + {{ range .Paginator.Pages }} + <li>{{.Title}} + <div> + {{ .Summary }} + </div> + </li> + {{ end }} + </ul> + +</main> +{{ partial "footer" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e69de29..37bc22c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -0,0 +1,10 @@ +{{ partial "head" . }} +<main> + <article> + <h1>{{ .Title }}</h1> + <span class="single-date">{{ .Date.Format "January 2, 2006" }}</span> + +{{ .Content }} + </article> +</main> +{{ partial "footer" . }} |