diff options
author | digitalcraftsman | 2017-09-07 21:41:16 +0200 |
---|---|---|
committer | digitalcraftsman | 2017-09-07 21:41:16 +0200 |
commit | 82832c1244f2d536c754efb98fbdb02b1844f4c7 (patch) | |
tree | ddeb1e83781a1f2793eb56c68d8a20e89fe4557c /layouts/index.html | |
parent | 50fec3e32df7b3ef311377db55093fc87bccb446 (diff) | |
download | hyde-82832c1244f2d536c754efb98fbdb02b1844f4c7.tar.lz hyde-82832c1244f2d536c754efb98fbdb02b1844f4c7.tar.zst hyde-82832c1244f2d536c754efb98fbdb02b1844f4c7.zip |
Make use of the base template
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/layouts/index.html b/layouts/index.html index 36f3ac2..3fed5be 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,26 +1,13 @@ -{{ partial "head.html" . }} -<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}"> - -{{ partial "sidebar.html" . }} - - <div class="content container"> +{{ define "main" -}} <div class="posts"> - - {{ range .Data.Pages }} - <div class="post"> - <h1 class="post-title"> - <a href="{{ .Permalink }}"> - {{ .Title }} - </a> - </h1> - - <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> - - {{ .Content }} - </div> - {{ end }} +{{ range .Data.Pages -}} +<div class="post"> + <h1 class="post-title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h1> + <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span> + {{ .Content }} </div> +{{- end }} </div> - - </body> -</html> +{{- end }} \ No newline at end of file |