diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-02-18 05:39:39 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-02-18 05:39:39 +0300 |
commit | 82aa4877c09b3dc6cba8f60563fd4ba9e1ae16ae (patch) | |
tree | 043f8d3033960be9205ae1848d4d02b9f13cd8d3 /layouts | |
parent | 16a40bc9e72c14796ddfa90eb77d5ab90a122277 (diff) |
Homepage content from file
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 5 |
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 |