summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-02-09 20:49:06 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-02-09 20:49:06 +0100
commita2ec58b42960ee3bb67f9375d3f2c5d1cb392286 (patch)
treeb1dec0ed6b051e5597c4bb277162f12ffa29578b /themes
parent8ceb5a0e726a755ac319f974833906aeac7b45d3 (diff)
downloadwww-andreasbaumann-cc-a2ec58b42960ee3bb67f9375d3f2c5d1cb392286.tar.gz
www-andreasbaumann-cc-a2ec58b42960ee3bb67f9375d3f2c5d1cb392286.tar.bz2
some sidebar fixes for category views
Diffstat (limited to 'themes')
-rw-r--r--themes/new_theme/layouts/_default/list.html5
-rw-r--r--themes/new_theme/layouts/partials/sidebar.html2
2 files changed, 6 insertions, 1 deletions
diff --git a/themes/new_theme/layouts/_default/list.html b/themes/new_theme/layouts/_default/list.html
index 1657fd0..0c71c49 100644
--- a/themes/new_theme/layouts/_default/list.html
+++ b/themes/new_theme/layouts/_default/list.html
@@ -37,6 +37,11 @@
<div class="loop__meta meta">
<svg class="icon icon-time" height="14" viewBox="0 0 16 16" width="14" xmlns="http://www.w3.org/2000/svg"><path d="m8-.0000003c-4.4 0-8 3.6-8 8 0 4.4000003 3.6 8.0000003 8 8.0000003 4.4 0 8-3.6 8-8.0000003 0-4.4-3.6-8-8-8zm0 14.4000003c-3.52 0-6.4-2.88-6.4-6.4000003 0-3.52 2.88-6.4 6.4-6.4 3.52 0 6.4 2.88 6.4 6.4 0 3.5200003-2.88 6.4000003-6.4 6.4000003zm.4-10.4000003h-1.2v4.8l4.16 2.5600003.64-1.04-3.6-2.1600003z"/></svg>
<time class="loop__meta-date" datetime="{{ .Date }}">{{.Date.Format "January 02, 2006"}}</time>
+ {{- if .Params.categories }}
+ <span class="post__meta-categories meta-categories">
+ <svg class="icon icon-category" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m7 2l1 2h8v11h-16v-13z"/></svg>
+ {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a class="meta-categories__link" href="{{ "/categories/" | relLangURL }}{{ . | urlize | lower }}" rel="category">{{ . }}</a>{{ end }}</span>
+ {{- end }}
</div>
</header>
<div class="loop__excerpt post__content">
diff --git a/themes/new_theme/layouts/partials/sidebar.html b/themes/new_theme/layouts/partials/sidebar.html
index 0179264..b621bb2 100644
--- a/themes/new_theme/layouts/partials/sidebar.html
+++ b/themes/new_theme/layouts/partials/sidebar.html
@@ -1,7 +1,7 @@
<aside class="sidebar" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
{{ partial "widgets/search.html" . }}
{{ $section := .Section }}
- {{ if eq $section "blog" }}
+ {{ if or ( eq $section "blog" ) ( eq $section "" ) }}
{{ partial "widgets/recent.html" . }}
{{ partial "widgets/categories.html" . }}
{{ partial "widgets/taglist.html" . }}