From 3631685b4d28756810ce513fff8732f7d1cb8865 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 19 Apr 2021 11:42:35 +0200 Subject: [PATCH] added option to disable tags in article preview --- README.md | 1 + layouts/partials/article_card.html | 2 +- layouts/partials/featured_articles.html | 2 +- layouts/partials/js_paginator.html | 17 +++++++++-------- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 2bee94d..66b1d1d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ summaryLength = 70 # number of words for article summaries discreteCards = false # enable discrete card style; default false discreteTags = false # enable discrete tag style; default false + tagsInArticlePreview = true # enable tags list in the article preview card gridView = false # show post list as a grid. goes well with discreteCards highlightBgColor = "#34363b" # card and circle navigation background color for discrete card mode diff --git a/layouts/partials/article_card.html b/layouts/partials/article_card.html index ff725af..d058a14 100644 --- a/layouts/partials/article_card.html +++ b/layouts/partials/article_card.html @@ -6,7 +6,7 @@

{{ .Date.Format "2006-01-02" }} - {{ if .Params.tags }} + {{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }} | {{ range .Params.tags }} diff --git a/layouts/partials/featured_articles.html b/layouts/partials/featured_articles.html index cf621eb..59936f0 100644 --- a/layouts/partials/featured_articles.html +++ b/layouts/partials/featured_articles.html @@ -14,7 +14,7 @@

{{ .Date.Format "2006-01-02" }} - {{ if .Params.tags }} + {{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
{{ range .Params.tags }} diff --git a/layouts/partials/js_paginator.html b/layouts/partials/js_paginator.html index bcb0791..a199d68 100644 --- a/layouts/partials/js_paginator.html +++ b/layouts/partials/js_paginator.html @@ -1,12 +1,11 @@