From b540350d76c3710642d9349bac021e8345321a8f Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 18 Sep 2020 00:00:39 +0200 Subject: [PATCH] feat(article): add support for custom taxonomy link --- .../partials/article/components/details.html | 25 +++++++++++-------- .../partials/article/components/footer.html | 8 +----- layouts/partials/article/components/tags.html | 10 ++++++++ 3 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 layouts/partials/article/components/tags.html diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 89d5554..1e7ea18 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -1,16 +1,19 @@ -{{ $image := partialCached "helper/image" (dict "Context" .) .RelPermalink }} -{{ $context := . }} +{{- $image := partialCached "helper/image" (dict "Context" .) .RelPermalink -}} +{{- $context := . -}} +{{- $categories := .Params.categories -}}
- {{ with $categories := .Params.categories }} + {{ if $categories }} diff --git a/layouts/partials/article/components/footer.html b/layouts/partials/article/components/footer.html index 102bc4a..3431c81 100644 --- a/layouts/partials/article/components/footer.html +++ b/layouts/partials/article/components/footer.html @@ -1,11 +1,5 @@