diff options
author | Alan Pearce | 2018-06-17 19:23:18 +0200 |
---|---|---|
committer | Alan Pearce | 2018-06-17 19:23:18 +0200 |
commit | 743253f995d352f51fc7b7681948b20c79609060 (patch) | |
tree | e7992e69cff8aabd1f8c3e571a74d6ecbb130477 /layouts/index.html | |
parent | 61b24805867fc6d2aa67ede189d43faf86220ad4 (diff) | |
parent | 8cab2d27e2b7727e632d817dbdd41a97cc99af00 (diff) | |
download | hyde-743253f995d352f51fc7b7681948b20c79609060.tar.lz hyde-743253f995d352f51fc7b7681948b20c79609060.tar.zst hyde-743253f995d352f51fc7b7681948b20c79609060.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/layouts/index.html b/layouts/index.html index 9d181dc..04d3175 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,18 +1,18 @@ -{{ partial "head.html" . }} - <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}"> - <main class="content container" role="main"> - <section class="recent"> - <h2>Recent Posts</h2> - <ul class="posts"> - {{ range first 10 .Data.Pages }} - <li> - <a class="post-title" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a> - <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> - </li> - {{ end }} - </ul> - </section> - </main> -{{ partial "sidebar.html" . }} - </body> -</html> +{{ define "main" -}} +<div class="posts"> +{{ range .Data.Pages -}} +<div class="post"> + <h1 class="post-title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h1> + <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> + {{ .Summary }} + {{ if .Truncated }} + <div class="read-more-link"> + <a href="{{ .RelPermalink }}">Read Moreā¦</a> + </div> + {{ end }} +</div> +{{- end }} +</div> +{{- end }} |