aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html20
-rw-r--r--layouts/_default/list.html12
-rw-r--r--layouts/_default/single.html69
3 files changed, 55 insertions, 46 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b0a5999..2ee48da 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,12 +1,12 @@
-<!DOCTYPE html>
+<!doctype html>
<html>
- {{- partial "head.html" . -}}
- <body class="w3-theme-light">
- {{- partial "header.html" . -}}
- {{ block "hero" . }} {{ end }}
- <div id="content" class="min-vh-100 mw7 center avenir ph2">
- {{- block "main" . }}{{- end }}
- </div>
- {{- partial "footer.html" . -}}
- </body>
+ {{- partial "head.html" . -}}
+ <body class="w3-theme-light">
+ {{- partial "header.html" . -}}
+ {{ block "hero" . }}{{ end }}
+ <div id="content" class="min-vh-100 avenir">
+ {{- block "main" . }}{{- end }}
+ </div>
+ {{- partial "footer.html" . -}}
+ </body>
</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index f8b838d..2349bb7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,12 @@
{{ define "hero" }}
-{{ partial "hero.html" . }}
+ {{ partial "hero.html" . }}
{{ end }}
{{ define "main" }}
-{{ range .Paginator.Pages.ByPublishDate.Reverse }}
-{{ partial "post.html" . }}
-{{ end }}
-{{ partial "pagination.html" . }}
+ <div class="mw7 center">
+ {{ 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 77b7f97..bcd733b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,36 +1,43 @@
{{ define "main" }}
- <header>
- <h2 class="baskerville f2 lh-title mv3">
- {{ .Title }}
- </h2>
+ <header class="mw7 center">
+ <h2 class="baskerville f2 lh-title mv3">
+ {{ .Title }}
+ </h2>
- {{ with .Params.subtitle }}
- <h3 class="f3 baskerville mv3">{{ . }}</h3>
- {{end}}
+ {{ with .Params.subtitle }}
+ <h3 class="f3 baskerville mv3">{{ . }}</h3>
+ {{ end }}
- {{ with resources.Get (index .Params.images 0) }}
- {{ $image := .Fill (default "400x400" $.Params.image_size) }}
- <div class="relative">
- <img src="{{ $image.RelPermalink }}" class="db center" alt= "{{ .Title }}">
- {{ with $.Params.caption }}
- <a href="{{ .url }}" class="link near-white absolute bottom-0 right-0 pa2 bg-black-30 br2">
- {{ .text }}
- </a>
- {{ end }}
- </div>
- {{end}}
-
- {{ if isset .Params "metadata" }}
- {{ partial "metadata.html" . }}
+ {{ with resources.Get (index .Params.images 0) }}
+ {{ $image := .Fill (default "400x400" $.Params.image_size) }}
+ <div class="relative">
+ <img
+ src="{{ $image.RelPermalink }}"
+ class="db center"
+ alt="{{ .Title }}"
+ />
+ {{ with $.Params.caption }}
+ <a
+ href="{{ .url }}"
+ class="link near-white absolute bottom-0 right-0 pa2 bg-black-30 br2"
+ >
+ {{ .text }}
+ </a>
{{ end }}
- </header>
-<div class="main-content lh-copy f5 f4-ns">
-{{ .Content }}
-</div>
-<div class="f5 f4-ns lh-copy pv2">
-{{ if isset .Params "metadata" }}
-{{ partial "author_card" . }}
-{{ end }}
-{{ partial "post_pager" . }}
-</div>
+ </div>
+ {{ end }}
+
+ {{ if isset .Params "metadata" }}
+ {{ partial "metadata.html" . }}
+ {{ end }}
+ </header>
+ <div class="main-content mw7 center lh-copy f5 f4-ns">
+ {{ .Content }}
+ </div>
+ <div class="f5 f4-ns lh-copy pv2">
+ {{ if isset .Params "metadata" }}
+ {{ partial "author_card" . }}
+ {{ end }}
+ {{ partial "post_pager" . }}
+ </div>
{{ end }}