diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/about.html | 12 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/list.html | 8 | ||||
-rw-r--r-- | layouts/_default/single.html | 11 |
4 files changed, 21 insertions, 13 deletions
diff --git a/layouts/_default/about.html b/layouts/_default/about.html new file mode 100644 index 0000000..6fdfaba --- /dev/null +++ b/layouts/_default/about.html @@ -0,0 +1,12 @@ +{{ define "hero" }} +{{ partial "hero.html" . }} +{{ end }} + +{{ define "main" }} +{{ range .Paginator.Pages }} +<div class="main-content lh-copy f5 f4-ns"> +{{ .Content }} +</div> +{{ end }} + +{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 81ba4d7..b0a5999 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,8 @@ {{- partial "head.html" . -}} <body class="w3-theme-light"> {{- partial "header.html" . -}} - <div id="content" class="min-vh-100"> + {{ block "hero" . }} {{ end }} + <div id="content" class="min-vh-100 mw7 center avenir ph2"> {{- block "main" . }}{{- end }} </div> {{- partial "footer.html" . -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8737066..f8b838d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,10 +1,10 @@ -{{ define "main" }} -<div class="mw7 center avenir ph2"> -{{ partial "open_section.html" . }} +{{ define "hero" }} +{{ partial "hero.html" . }} +{{ end }} +{{ define "main" }} {{ range .Paginator.Pages.ByPublishDate.Reverse }} {{ partial "post.html" . }} {{ end }} {{ partial "pagination.html" . }} -</div> {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 894caf5..d12dd07 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,4 @@ {{ define "main" }} -<article class="mw7 center avenir ph2"> <header> <h2 class="baskerville f2 lh-title mv3"> {{ .Title }} @@ -25,15 +24,11 @@ {{ if isset .Params "metadata" }} {{ partial "metadata.html" . }} {{ end }} - - </header> - - <div class="main-content sans-serif f5 f4-ns lh-copy baskerville"> +<div class="main-content lh-copy f5 f4-ns"> {{ .Content }} - </div> -</article> -<div class="sans-serif f5 f4-ns lh-copy pv2"> +</div> +<div class="f5 f4-ns lh-copy pv2"> {{ if isset .Params "metadata" }} {{ partial "author_card" . }} {{ end }} |