From e5e3d62fc472c9e7022f31c5a2fd56eaff181f76 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 9 Nov 2021 17:27:36 -0600 Subject: [PATCH] Rework taxonomy page title Fixes #24 --- i18n/en.yaml | 3 --- i18n/es.yaml | 3 --- layouts/taxonomy/list.html | 12 ++++++++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index bd906bf..dec9be6 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -20,9 +20,6 @@ browser_no_video_support: other: "Your browser does not support video." -filtering_for: - other: "Filtering for \"{{ . }}\"" - no_posts: other: "No posts here!" diff --git a/i18n/es.yaml b/i18n/es.yaml index 027014f..54f507b 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -20,9 +20,6 @@ browser_no_video_support: other: "Tu navegador de internet no admite video." -filtering_for: - other: "Filtrando por \"{{ . }}\"" - no_posts: other: "¡No hay contenido para mostrar!" diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html index cfe2f34..05c21f7 100644 --- a/layouts/taxonomy/list.html +++ b/layouts/taxonomy/list.html @@ -1,8 +1,16 @@ {{ define "main" }}

- {{ partial "icon.html" "filter" }} - {{ i18n "filtering_for" .Title }} + {{ if eq .Data.Singular "tag" }} + {{ partial "icon.html" "tag" }} + {{ else if eq .Data.Singular "author" }} + {{ partial "icon.html" "user-circle" }} + {{ else }} + {{ partial "icon.html" "filter" }} + {{ end }} + + {{ .Title }} + {{ if eq .Kind "term" }} {{ with .OutputFormats.Get "rss" }}