From 1521cc77a27e5c2fc7026707450a165675dc9025 Mon Sep 17 00:00:00 2001 From: Rook1e Date: Sat, 5 Aug 2023 14:22:30 +0800 Subject: [PATCH 1/4] feat: allow hiding author in post_meta (#1250) * feat: allow hiding author in post_meta For a person's site, in most cases the author is the person, and displaying it on every post and list may be redundant. Setting the `params.author` in the configuration to empty will achieve the hidden effect, but it will also empty the value of ``. So add hideAuthor --- layouts/partials/post_meta.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 15b8b1bd..8bc0e505 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -12,9 +12,11 @@ {{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }} {{- end }} +{{- if not (.Param "hideAuthor") -}} {{- with (partial "author.html" .) }} {{- $scratch.Add "meta" (slice .) }} {{- end }} +{{- end }} {{- with ($scratch.Get "meta") }} {{- delimit . " ยท " -}} From 4230109ff7428dd0442a9b23f5746bce52f269ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20Elyesa=20Y=C4=B1ld=C4=B1r=C4=B1m?= Date: Sat, 5 Aug 2023 09:31:43 +0300 Subject: [PATCH 2/4] Add svg for pixelfed (#87) (#1272) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 2f85399b..c7de9e74 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -487,6 +487,10 @@ +{{- else if (eq $icon_name "pixelfed") -}} + + + {{- else if (eq $icon_name "qq") -}} From 69cec7a0bafad873794af7f8006d48b5581e07a0 Mon Sep 17 00:00:00 2001 From: Bob Zheng Date: Sat, 5 Aug 2023 14:42:02 +0800 Subject: [PATCH 3/4] feat: add wechat icon (#1149) Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index c7de9e74..e54d4e19 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -671,6 +671,12 @@ +{{- else if (eq $icon_name "wechat") -}} + + + + {{- else if (eq $icon_name "xda") -}} Date: Wed, 9 Aug 2023 21:19:17 +0530 Subject: [PATCH 4/4] Add news.ycombinator share button --- layouts/partials/share_icons.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index 59ed0503..4281c940 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -68,4 +68,14 @@ {{- end }} - \ No newline at end of file + {{- if (cond ($custom) (in $ShareButtons "ycombinator") (true)) }} + + + + + + {{- end }} +