diff options
author | Christoph Cullmann <cullmann@kde.org> | 2019-08-03 22:26:50 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2019-08-03 22:26:50 +0200 |
commit | ec1341fcd178d72e1accd308d1ae314702e69c01 (patch) | |
tree | 927c5113475a982af7a4809af78a8f4b4990be62 /themes/beautifulhugo/layouts/_default/list.html | |
parent | 05bc58562c52539f196ae4357afd80a23d34e812 (diff) |
use new theme
Diffstat (limited to 'themes/beautifulhugo/layouts/_default/list.html')
-rw-r--r-- | themes/beautifulhugo/layouts/_default/list.html | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/themes/beautifulhugo/layouts/_default/list.html b/themes/beautifulhugo/layouts/_default/list.html new file mode 100644 index 0000000..5e52b60 --- /dev/null +++ b/themes/beautifulhugo/layouts/_default/list.html @@ -0,0 +1,63 @@ +{{ define "main" }} + <div class="container" role="main"> + <div class="row"> + <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> + {{ with .Content }} + <div class="well"> + {{.}} + </div> + {{ end }} + <div class="posts-list"> + {{ range .Paginator.Pages }} + <article class="post-preview"> + <a href="{{ .Permalink }}"> + <h2 class="post-title">{{ .Title }}</h2> + + {{ if .Params.subtitle }} + <h3 class="post-subtitle"> + {{ .Params.subtitle }} + </h3> + {{ end }} + </a> + + <p class="post-meta"> + {{ partial "post_meta.html" . }} + </p> + <div class="post-entry"> + {{ if .Truncated }} + {{ .Summary }} + <a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a> + {{ else }} + {{ .Content }} + {{ end }} + </div> + + {{ if .Params.tags }} + <div class="blog-tags"> + {{ range .Params.tags }} + <a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a> + {{ end }} + </div> + {{ end }} + + </article> + {{ end }} + </div> + {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} + <ul class="pager main-pager"> + {{ if .Paginator.HasPrev }} + <li class="previous"> + <a href="{{ .Permalink }}page/{{ .Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a> + </li> + {{ end }} + {{ if .Paginator.HasNext }} + <li class="next"> + <a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a> + </li> + {{ end }} + </ul> + {{ end }} + </div> + </div> + </div> +{{ end }} |