From f7bd1ec07cdbfe9951fdec4e0c03e39ef7bd40d1 Mon Sep 17 00:00:00 2001 From: Navendu Pottekkat Date: Sat, 12 Aug 2023 13:17:24 +0530 Subject: [PATCH 1/5] 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 06ebcfb..9484e75 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 2/5] 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 f509cf6..7393d57 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 3/5] 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 e54d4e1..2758227 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 4/5] 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 2758227..068e4dc 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 5/5] 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 068e4dc..37441e6 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") -}}