From 1521cc77a27e5c2fc7026707450a165675dc9025 Mon Sep 17 00:00:00 2001 From: Rook1e Date: Sat, 5 Aug 2023 14:22:30 +0800 Subject: [PATCH 1/9] 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/9] 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/9] 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/9] 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 }} + From f7bd1ec07cdbfe9951fdec4e0c03e39ef7bd40d1 Mon Sep 17 00:00:00 2001 From: Navendu Pottekkat Date: Sat, 12 Aug 2023 13:17:24 +0530 Subject: [PATCH 5/9] feat: add configurable limit to search results (#1281) * feat: add configurable limit to search results Signed-off-by: Navendu Pottekkat * Handle case where params.fuseOpts is not defined resulting into `Cannot read properties of null (reading 'limit')` Utilizes search options by fuse https://www.fusejs.io/api/methods.html#search The options: limit (type: number): Denotes the max number of returned search results. --------- Signed-off-by: Navendu Pottekkat Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- assets/js/fastsearch.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/js/fastsearch.js b/assets/js/fastsearch.js index 06ebcfba..9484e751 100644 --- a/assets/js/fastsearch.js +++ b/assets/js/fastsearch.js @@ -77,7 +77,12 @@ sInput.onkeyup = function (e) { // run a search query (for "term") every time a letter is typed // in the search box if (fuse) { - const results = fuse.search(this.value.trim()); // the actual query being run using fuse.js + let results; + if (params.fuseOpts) { + results = fuse.search(this.value.trim(), {limit: params.fuseOpts.limit}); // the actual query being run using fuse.js along with options + } else { + results = fuse.search(this.value.trim()); // the actual query being run using fuse.js + } if (results.length !== 0) { // build our html if result exists let resultSet = ''; // our results bucket From eab731707a1adad3a531c2320172bab8954a3600 Mon Sep 17 00:00:00 2001 From: Hiroshi Shimoju Date: Sat, 12 Aug 2023 16:56:08 +0900 Subject: [PATCH 6/9] fix: Prevent adjustments of font size after orientation changes in iOS (#1285) The font size in the code block may be larger. As shown below, the Reset CSS specifies `text-size-adjust: 100%`. https://github.com/necolas/normalize.css/blob/fc091cce1534909334c1911709a39c22d406977b/normalize.css#L13 https://github.com/csstools/sanitize.css/blob/092d0d85922bfa72d28e9e8d25d80a5437c8df44/sanitize.css#L43 --- assets/css/core/reset.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index f509cf6e..7393d57d 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -7,6 +7,8 @@ html { -webkit-tap-highlight-color: transparent; overflow-y: scroll; + -webkit-text-size-adjust: 100%; + text-size-adjust: 100%; } a, From 9d4a9e825a109feea060eb7522763ca9a37375b8 Mon Sep 17 00:00:00 2001 From: black jack <576843117@qq.com> Date: Sat, 12 Aug 2023 20:22:00 +0800 Subject: [PATCH 7/9] add social icon of leetcode (#1286) * add social icon of leetcode from https://simpleicons.org/ * alphabetize --------- 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 e54d4e19..27582277 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -340,6 +340,12 @@ +{{- else if (eq $icon_name "leetcode") -}} + + + {{- else if (eq $icon_name "letterboxd") -}} From 3a064f5c76f6006e95a1b46c209862086ba55008 Mon Sep 17 00:00:00 2001 From: COxDE <63153334+coxde@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:48:14 +0100 Subject: [PATCH 8/9] Add the social icon for Firefish (#1294) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 27582277..068e4dcf 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -195,6 +195,10 @@ stroke-linecap="round" stroke-linejoin="round"> +{{- else if (eq $icon_name "firefish") -}} + + + {{- else if (eq $icon_name "flickr") -}} Date: Sat, 26 Aug 2023 15:48:57 +0100 Subject: [PATCH 9/9] Add social icon for Pleroma (#1293) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 068e4dcf..37441e61 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -501,6 +501,10 @@ +{{- else if (eq $icon_name "pleroma") -}} + + + {{- else if (eq $icon_name "qq") -}}