upgrade to new hugo

This commit is contained in:
Cyryl Płotnicki 2022-06-25 09:17:51 +01:00
parent 383c126c6a
commit 29fd68173d

View file

@ -1,63 +1,63 @@
{{ define "main" }} {{ define "main" }}
<div class="container" role="main"> <div class="container" role="main">
<div class="row"> <div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ with .Content }} {{ with .Content }}
<div class="well"> <div class="well">
{{.}} {{.}}
</div> </div>
{{ end }} {{ end }}
<div class="posts-list"> <div class="posts-list">
{{ range .Paginator.Pages }} {{ range .Paginator.Pages }}
<article class="post-preview"> <article class="post-preview">
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<h2 class="post-title">{{ .Title }}</h2> <h2 class="post-title">{{ .Title }}</h2>
{{ if .Params.subtitle }} {{ if .Params.subtitle }}
<h3 class="post-subtitle"> <h3 class="post-subtitle">
{{ .Params.subtitle }} {{ .Params.subtitle }}
</h3> </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 }}
{{ partial "tag-link" . }}
{{ end }}
</div>
{{ end }}
</article>
{{ end }} {{ end }}
</a> </div>
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<p class="post-meta"> <ul class="pager main-pager">
{{ partial "post_meta.html" . }} {{ if .Paginator.HasPrev }}
</p> <li class="previous">
<div class="post-entry"> <a href="{{ .Permalink }}page/{{ .Paginator.Prev.PageNumber }}/">&larr; {{ i18n "newerPosts" }}</a>
{{ if .Truncated }} </li>
{{ .Summary }}
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
{{ else }}
{{ .Content }}
{{ end }} {{ end }}
</div> {{ if .Paginator.HasNext }}
<li class="next">
{{ if .Params.tags }} <a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} &rarr;</a>
<div class="blog-tags"> </li>
{{ range .Params.tags }} {{ end }}
{{ partial "tag-link" . }} </ul>
{{ end }} {{ end }}
</div>
{{ end }}
</article>
{{ end }}
</div> </div>
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<ul class="pager main-pager">
{{ if .Paginator.HasPrev }}
<li class="previous">
<a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}/">&larr; {{ i18n "newerPosts" }}</a>
</li>
{{ end }}
{{ if .Paginator.HasNext }}
<li class="next">
<a href="{{ .URL }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} &rarr;</a>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div> </div>
</div> </div>
{{ end }} {{ end }}