diff options
author | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-01 15:06:05 -0300 |
---|---|---|
committer | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-01 15:06:05 -0300 |
commit | 3ec95503252645b87c625df10a8ac44d04563166 (patch) | |
tree | 0304691be8b7859d7e5b525807d6c0e082873553 /layouts/_default/list.html | |
parent | 76ca2f889f35035484482bf7f9715149a5b40127 (diff) | |
download | hugo-bearcub-3ec95503252645b87c625df10a8ac44d04563166.tar.gz hugo-bearcub-3ec95503252645b87c625df10a8ac44d04563166.tar.bz2 |
Bring files from personal blog
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8b8c14b..6c4f7d0 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,10 +1,10 @@ {{ 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 style="margin-bottom:0">{{ i18n "filter" }} "{{ .Title }}"</h3> + <small> + <a href="{{ i18n "posts" }}">{{ i18n "remove" }}</a> + </small> {{ end }} <ul class="blog-posts"> {{ range .Pages }} @@ -16,7 +16,11 @@ </time> </i> </span> - <a href="{{ .Permalink }}">{{ .Title }}</a> + {{ if .Params.link }} + <a href="{{ .Params.link }}">{{ .Title }}</a> + {{ else }} + <a href="{{ .Permalink }}">{{ .Title }}</a> + {{ end }} </li> {{ else }} <li> @@ -26,13 +30,11 @@ </ul> {{ if .Data.Singular }} {{else}} - <small> - <div> - {{ range .Site.Taxonomies.tags }} - <a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a> - {{ end }} - </div> - </small> - {{ end }} + <div> + {{ range .Site.Taxonomies.tags }} + <a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a> + {{ end }} + </div> + {{ end }} </content> {{ end }} |