diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 90cbee5..354bc9c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,10 +1,7 @@ {{ define "main" }} <content> {{ if .Data.Singular }} - <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3> - <small> - <a href="{{ "blog" | relURL }}">Remove filter</a> - </small> + <h3 class="blog-filter">{{ i18n "filtering-for" }} "{{ .Title }}"</h3> {{ end }} <ul class="blog-posts"> {{ range .Pages }} @@ -12,27 +9,28 @@ <span> <i> <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate> - {{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }} + {{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }} </time> </i> </span> - <a href="{{ .Permalink }}">{{ .Title }}</a> + {{ if .Params.link }} + <a href="{{ .Params.link }}" target="_blank">{{ .Title }} ↪</a> + {{ else }} + <a href="{{ .Permalink }}">{{ .Title }}</a> + {{ end }} </li> {{ else }} <li> - No posts yet + {{ i18n "no-posts" }} </li> {{ end }} </ul> - {{ if .Data.Singular }} - {{else}} - <small> - <div> - {{ range .Site.Taxonomies.tags }} - <a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a> - {{ end }} - </div> - </small> - {{ end }} + {{ if not .Data.Singular }} + <div> + {{ range .Site.Taxonomies.tags }} + <a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a> + {{ end }} + </div> + {{ end }} </content> {{ end }} |