From 3d1c1aadd5fd701d1c61ecb75190030288c486d4 Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Mon, 8 Aug 2022 11:07:32 -0400 Subject: [PATCH 1/6] Add .search-toggle icon switching depending on search state. --- assets/javascripts/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/javascripts/main.js b/assets/javascripts/main.js index 0dbe3f0e6..059dd0e14 100644 --- a/assets/javascripts/main.js +++ b/assets/javascripts/main.js @@ -73,4 +73,9 @@ function toggleClassSearch() { setTimeout(function () { document.querySelector('.search-content input').focus(); }, 400); + + if (mySearchContent.classList.contains('is--visible')) + document.querySelector('.search-toggle').children[0].children[1].setAttribute('d', 'M 11.839844 0.691406 C 12.738281 -0.226562 14.207031 -0.230469 15.113281 0.679688 C 16.019531 1.589844 16.023438 3.074219 15.121094 3.988281 L 11.164062 8 L 15.125 12.019531 C 16.019531 12.929688 16.007812 14.398438 15.097656 15.308594 C 14.191406 16.214844 12.726562 16.210938 11.835938 15.304688 L 7.898438 11.3125 L 3.957031 15.308594 C 3.054688 16.226562 1.589844 16.230469 0.683594 15.320312 C -0.222656 14.410156 -0.226562 12.925781 0.671875 12.011719 L 4.632812 8 L 0.667969 3.980469 C -0.226562 3.070312 -0.210938 1.601562 0.695312 0.691406 C 1.605469 -0.214844 3.066406 -0.210938 3.960938 0.695312 L 7.894531 4.6875 Z M 11.839844 0.691406') + else + document.querySelector('.search-toggle').children[0].children[1].setAttribute('d', 'M15.5,13.12L13.19,10.8a1.69,1.69,0,0,0-1.28-.55l-0.06-.06A6.5,6.5,0,0,0,5.77,0,6.5,6.5,0,0,0,2.46,11.59a6.47,6.47,0,0,0,7.74.26l0.05,0.05a1.65,1.65,0,0,0,.5,1.24l2.38,2.38A1.68,1.68,0,0,0,15.5,13.12ZM6.4,2A4.41,4.41,0,1,1,2,6.4,4.43,4.43,0,0,1,6.4,2Z" transform="translate(-.01)') } From a878795e1e07c9b9808464350db63d43aaa00719 Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Mon, 8 Aug 2022 11:41:51 -0400 Subject: [PATCH 2/6] Revert "Delete stale.yml" This reverts commit c5a8aaf5795aaa9a5fe8322094dd9fe0b3c333ca. Revert change that should be in separate branch. --- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..2a9fa4f43 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: "Close stale issues and PRs" +on: + schedule: + - cron: "30 1 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + stale-issue-message: | + This issue has been automatically marked as stale because it has not had recent activity. + + If this is a **bug** and you can still reproduce this error on the `master` branch, please reply with any additional information you have about it in order to keep the issue open. + + If this is a feature request, please [add as an Idea under discussions](https://github.com/mmistakes/jekyll-theme-basically-basic/discussions/categories/ideas) and elaborate on why it is core to this project and why you feel more than 80% of users would find it beneficial. + + This issue will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions. + stale-pr-message: | + This pull request has been automatically marked as stale because it has not had recent activity. + + This pull request will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions. + stale-issue-label: "Status: Stale" + exempt-issue-labels: "Status: Accepted,Status: Under Consideration,Status: Review Needed,Status: In Progress" + stale-pr-label: "Status: Stale" + exempt-pr-labels: "Status: Accepted,Status: Under Consideration,Status: Review Needed,Status: In Progress" From 3aa944143e88a8dcf29d5e3938049e324ac4648c Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Mon, 8 Aug 2022 11:43:16 -0400 Subject: [PATCH 3/6] Revert "Revert "Delete stale.yml"" This reverts commit a878795e1e07c9b9808464350db63d43aaa00719. --- .github/workflows/stale.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 2a9fa4f43..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Close stale issues and PRs" -on: - schedule: - - cron: "30 1 * * *" - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v3 - with: - stale-issue-message: | - This issue has been automatically marked as stale because it has not had recent activity. - - If this is a **bug** and you can still reproduce this error on the `master` branch, please reply with any additional information you have about it in order to keep the issue open. - - If this is a feature request, please [add as an Idea under discussions](https://github.com/mmistakes/jekyll-theme-basically-basic/discussions/categories/ideas) and elaborate on why it is core to this project and why you feel more than 80% of users would find it beneficial. - - This issue will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions. - stale-pr-message: | - This pull request has been automatically marked as stale because it has not had recent activity. - - This pull request will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions. - stale-issue-label: "Status: Stale" - exempt-issue-labels: "Status: Accepted,Status: Under Consideration,Status: Review Needed,Status: In Progress" - stale-pr-label: "Status: Stale" - exempt-pr-labels: "Status: Accepted,Status: Under Consideration,Status: Review Needed,Status: In Progress" From 7b4c50bcbb5234f4df7d8ec82ba41e3d9424a52c Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Mon, 8 Aug 2022 11:43:44 -0400 Subject: [PATCH 4/6] Revert "Add .search-toggle icon switching depending on search state." This reverts commit 3d1c1aadd5fd701d1c61ecb75190030288c486d4. search icon new feature should go in separate branch for pull request --- assets/javascripts/main.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/assets/javascripts/main.js b/assets/javascripts/main.js index 059dd0e14..0dbe3f0e6 100644 --- a/assets/javascripts/main.js +++ b/assets/javascripts/main.js @@ -73,9 +73,4 @@ function toggleClassSearch() { setTimeout(function () { document.querySelector('.search-content input').focus(); }, 400); - - if (mySearchContent.classList.contains('is--visible')) - document.querySelector('.search-toggle').children[0].children[1].setAttribute('d', 'M 11.839844 0.691406 C 12.738281 -0.226562 14.207031 -0.230469 15.113281 0.679688 C 16.019531 1.589844 16.023438 3.074219 15.121094 3.988281 L 11.164062 8 L 15.125 12.019531 C 16.019531 12.929688 16.007812 14.398438 15.097656 15.308594 C 14.191406 16.214844 12.726562 16.210938 11.835938 15.304688 L 7.898438 11.3125 L 3.957031 15.308594 C 3.054688 16.226562 1.589844 16.230469 0.683594 15.320312 C -0.222656 14.410156 -0.226562 12.925781 0.671875 12.011719 L 4.632812 8 L 0.667969 3.980469 C -0.226562 3.070312 -0.210938 1.601562 0.695312 0.691406 C 1.605469 -0.214844 3.066406 -0.210938 3.960938 0.695312 L 7.894531 4.6875 Z M 11.839844 0.691406') - else - document.querySelector('.search-toggle').children[0].children[1].setAttribute('d', 'M15.5,13.12L13.19,10.8a1.69,1.69,0,0,0-1.28-.55l-0.06-.06A6.5,6.5,0,0,0,5.77,0,6.5,6.5,0,0,0,2.46,11.59a6.47,6.47,0,0,0,7.74.26l0.05,0.05a1.65,1.65,0,0,0,.5,1.24l2.38,2.38A1.68,1.68,0,0,0,15.5,13.12ZM6.4,2A4.41,4.41,0,1,1,2,6.4,4.43,4.43,0,0,1,6.4,2Z" transform="translate(-.01)') } From 0ad34f90bff4878f7fbb1f4b42caa0b31f8d2fa6 Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Fri, 25 Aug 2023 00:31:24 -0700 Subject: [PATCH 5/6] Create icon-printables.html --- _includes/icon-printables.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _includes/icon-printables.html diff --git a/_includes/icon-printables.html b/_includes/icon-printables.html new file mode 100644 index 000000000..ba9edc058 --- /dev/null +++ b/_includes/icon-printables.html @@ -0,0 +1,4 @@ + + {% include icon-printables.svg %} + {{ include.label | default: include.username }} + From e752b47dced0e41479d9fbd620553b9348d4d64b Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Fri, 25 Aug 2023 00:31:46 -0700 Subject: [PATCH 6/6] Create icon-printables.svg --- _includes/icon-printables.svg | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _includes/icon-printables.svg diff --git a/_includes/icon-printables.svg b/_includes/icon-printables.svg new file mode 100644 index 000000000..380e99eaf --- /dev/null +++ b/_includes/icon-printables.svg @@ -0,0 +1,8 @@ + + + + + + +