Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-02-18 05:39:39 +0300
committerZachary Betz <zwbetz@gmail.com>2019-02-18 05:39:39 +0300
commit82aa4877c09b3dc6cba8f60563fd4ba9e1ae16ae (patch)
tree043f8d3033960be9205ae1848d4d02b9f13cd8d3 /layouts
parent16a40bc9e72c14796ddfa90eb77d5ab90a122277 (diff)
Homepage content from file
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 820e32e..29bcc73 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,13 @@
{{ define "main" }}
<div id="home-jumbotron" class="jumbotron text-center">
+{{ with .Content }}
+ <h1>{{ $.Page.Title }}</h1>
+ {{ . }}
+{{ else }}
<h1>{{ .Site.Title }}</h1>
<p class="font-125">{{ .Site.Params.homeText | markdownify }}</p>
+{{ end }}
</div>
{{ end }} \ No newline at end of file