Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 55dfb8e..ba95831 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -7,11 +7,7 @@
<div id="all">
- <header>
-
- {{ partial "nav.html" . }}
-
- </header>
+ {{ partial "nav.html" . }}
{{ partial "breadcrumbs.html" . }}
@@ -30,9 +26,9 @@
<div class="image">
<a href="{{ .Permalink }}">
{{ if .Params.banner }}
- <img src="{{ .Site.BaseURL}}{{ .Params.banner }}" class="img-responsive" alt="">
+ <img src="{{ .Params.banner | relURL }}" class="img-responsive" alt="">
{{ else }}
- <img src="{{ .Site.BaseURL}}img/placeholder.png" class="img-responsive" alt="">
+ <img src="{{ "img/placeholder.png" | relURL }}" class="img-responsive" alt="">
{{ end }}
</a>
</div>
@@ -41,19 +37,23 @@
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="clearfix">
<p class="author-category">
- {{ if isset .Params "author" }}
- {{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a>
+ {{ if isset .Params "authors" }}
+ {{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}<a href="{{ (printf "%s/%s" ("authors" | relURL) ($author | urlize)) }}">{{ $author }}</a>{{ end }}
{{ end }}
{{ if isset .Params "categories" }}
{{ if gt (len .Params.categories) 0 }}
- in <a href="{{ $.Site.BaseURL }}categories/{{ index .Params.categories 0 | urlize | lower }}">{{ index .Params.categories 0 }}</a>
+ in
+ {{ range $index, $category := .Params.categories }}{{ if $index }}, {{ end }}
+ <a href="{{ "categories/" | relURL }}{{ . | urlize | lower }}">{{ $category }}</a>{{ end }}
{{ end }}
{{ end }}
</p>
+ {{ if isset .Params "date" }}
<p class="date-comments">
- <a href="{{ .Permalink }}"><i class="fa fa-calendar-o"></i> {{ .Date.Format .Site.Params.date_format }}</a>
+ <a href="{{ .Permalink }}"><i class="far fa-calendar"></i> {{ .Date.Format .Site.Params.date_format }}</a>
</p>
+ {{ end }}
</div>
<p class="intro">{{ .Summary }}</p>
<p class="read-more"><a href="{{ .Permalink }}" class="btn btn-template-main">{{ i18n "continueReading" }}</a>
@@ -65,13 +65,13 @@
<ul class="pager">
{{ if .Paginator.HasPrev }}
- <li class="previous"><a href="{{ .Site.BaseURL }}{{ .Paginator.Prev.URL }}">&larr; {{ i18n "newer" }}</a></li>
+ <li class="previous"><a href="{{ .Paginator.Prev.URL | relURL }}">&larr; {{ i18n "newer" }}</a></li>
{{ else }}
<li class="previous disabled"><a href="#">&larr; {{ i18n "newer" }}</a></li>
{{ end }}
{{ if .Paginator.HasNext }}
- <li class="next"><a href="{{ .Site.BaseURL }}{{ .Paginator.Next.URL }}">{{ i18n "older" }} &rarr;</a></li>
+ <li class="next"><a href="{{ .Paginator.Next.URL | relURL }}">{{ i18n "older" }} &rarr;</a></li>
{{ else }}
<li class="next disabled"><a href="#">{{ i18n "older" }} &rarr;</a></li>
{{ end }}