diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-08 19:14:13 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-08 19:14:13 +0200 |
commit | 4562d084410bc4b2c64b21530dd71ef35999d3b4 (patch) | |
tree | c87d2091aadda46ee7137c7caea5200c6808d120 /layouts/_default/single.html | |
parent | b1cae597431053664bbc895a732c1a0d75c574bd (diff) | |
download | hugo-minimalist-theme-4562d084410bc4b2c64b21530dd71ef35999d3b4.tar.gz hugo-minimalist-theme-4562d084410bc4b2c64b21530dd71ef35999d3b4.tar.bz2 hugo-minimalist-theme-4562d084410bc4b2c64b21530dd71ef35999d3b4.zip |
Content div into templates
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9343abd..6c10095 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,13 +1,18 @@ {{ define "main" }} -<article class="ph2"> - <header class="bg-green pa5"> - <h1 class="f1 black-90"> - {{ .Title }}</h1> +<article> + <div class="w-100 bg-green"> + <header class="dt pa5 mw7 center"> + <h1 class="f1 tc black-90"> + {{ .Title }}</h1> - <div class="gray tracked">{{ .Date.Format "Mon, Jan 2, 2006" }}</div> - </header> - <div class="f5 lh-copy pv4 ph2 black-80"> - {{ .Content }} + <div class="gray tracked">{{ .Date.Format "Mon, Jan 2, 2006" }}</div> + </header> + </div> + + <div id="content" class="mw7 center"> + <div class="f5 lh-copy pv4 ph2 black-80"> + {{ .Content }} + </div> </div> </article> {{ end }} |