blog/layouts/_default/list.html

64 lines
2.2 KiB
HTML
Raw Normal View History

2022-06-25 08:47:06 +01:00
{{ define "main" }}
2022-06-25 09:17:51 +01:00
<div class="container" role="main">
2022-06-25 08:47:06 +01:00
<div class="row">
2022-06-25 09:17:51 +01:00
<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>
2022-06-25 08:47:06 +01:00
2022-06-25 09:17:51 +01:00
{{ if .Params.subtitle }}
<h3 class="post-subtitle">
{{ .Params.subtitle }}
</h3>
{{ end }}
</a>
2022-06-25 08:47:06 +01:00
2022-06-25 09:17:51 +01:00
<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>
2022-06-25 08:47:06 +01:00
2022-06-25 09:17:51 +01:00
{{ if .Params.tags }}
<div class="blog-tags">
{{ range .Params.tags }}
{{ partial "tag-link" . }}
{{ end }}
</div>
{{ end }}
2022-06-25 08:47:06 +01:00
2022-06-25 09:17:51 +01:00
</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 }}/">&larr; {{ i18n "newerPosts" }}</a>
</li>
{{ end }}
{{ if .Paginator.HasNext }}
<li class="next">
<a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} &rarr;</a>
</li>
{{ end }}
</ul>
2022-06-25 08:47:06 +01:00
{{ end }}
2022-06-25 09:17:51 +01:00
</div>
2022-06-25 08:47:06 +01:00
</div>
2022-06-25 09:17:51 +01:00
</div>
2022-06-25 08:47:06 +01:00
{{ end }}