diff options
author | Przemysław Kołodziejczyk <eshlox@vertolabs.com> | 2018-05-07 23:55:42 +0300 |
---|---|---|
committer | Przemysław Kołodziejczyk <eshlox@vertolabs.com> | 2018-05-07 23:55:42 +0300 |
commit | 12bf36019b4ad98a416bb0e11de19b3d6ec6e262 (patch) | |
tree | bc6248b9738c23d6a2f58ed236118851c3c3bac1 | |
parent | 8359547924c74e472107e9ad8aa5654c69493f0e (diff) |
The same template for section and taxonomy
-rw-r--r-- | layouts/_default/taxonomy.html | 12 | ||||
-rw-r--r-- | layouts/partials/posts_list.html | 17 |
2 files changed, 16 insertions, 13 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 6798ccf..54a9585 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,15 +1,3 @@ {{ define "main" }} - <h2> - {{ i18n "postsAbout" }} {{ .Title }} - <div class="svg-icon baseline"> - <a href="{{ .RSSLink | relURL }}" class="rss" title="RSS"> - <svg aria-labelledby="simpleicons-rss-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> - <title id="simpleicons-rss-icon">RSS</title> - <path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z"/> - </svg> - </a> - </div> - </h2> - <hr> {{ partial "posts_list.html" . }} {{ end }} diff --git a/layouts/partials/posts_list.html b/layouts/partials/posts_list.html index 23ab026..ac2aff2 100644 --- a/layouts/partials/posts_list.html +++ b/layouts/partials/posts_list.html @@ -1,4 +1,19 @@ -<h1>{{ i18n "postsList" . }}</h1> +<h2> + {{ if eq .Kind "section" }} + {{ i18n "postsList" . }} + {{ else }} + {{ i18n "postsAbout" }} {{ .Title }} + {{ end }} + <div class="svg-icon baseline"> + <a href="{{ .RSSLink | relURL }}" class="rss" title="RSS"> + <svg aria-labelledby="simpleicons-rss-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> + <title id="simpleicons-rss-icon">RSS</title> + <path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z"/> + </svg> + </a> + </div> +</h2> +<hr> {{ range (where .Data.Pages "Type" "posts").GroupByDate "2006" }} <h2 id="{{ .Key }}"> |