aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
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
commit4562d084410bc4b2c64b21530dd71ef35999d3b4 (patch)
treec87d2091aadda46ee7137c7caea5200c6808d120 /layouts/index.html
parentb1cae597431053664bbc895a732c1a0d75c574bd (diff)
downloadhugo-minimalist-theme-4562d084410bc4b2c64b21530dd71ef35999d3b4.tar.gz
hugo-minimalist-theme-4562d084410bc4b2c64b21530dd71ef35999d3b4.tar.bz2
hugo-minimalist-theme-4562d084410bc4b2c64b21530dd71ef35999d3b4.zip
Content div into templates
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 17c1d26..b4eaea0 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,11 +1,13 @@
{{ define "main" }}
+<div id="content" class="mw7 center">
-<h1 class="f1">{{.Title}}</h1>
+ <h1 class="f1">{{.Title}}</h1>
-<h2 class="f2">Posts</h2>
-<!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
+ <h2 class="f2">Posts</h2>
+ <!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
- {{ range where .Data.Pages "Section" "post" }}
- {{ .Render "summary" }}
- {{ end }}
+ {{ range where .Data.Pages "Section" "post" }}
+ {{ .Render "summary" }}
+ {{ end }}
+</div>
{{ end }}