-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix bug: Uncaught ReferenceError: process is not defined & add dark mode feature && support mermaid #300
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
changed the title
fix bug: Uncaught ReferenceError: process is not defined
fix bug: Uncaught ReferenceError: process is not defined & add dark mode feature
Jun 3, 2021
ghost
changed the title
fix bug: Uncaught ReferenceError: process is not defined & add dark mode feature
fix bug: Uncaught ReferenceError: process is not defined & add dark mode feature && support mermaid
Jun 5, 2021
12 tasks
LolipopJ
added a commit
that referenced
this pull request
Jul 28, 2021
🛎️ One-click translation by Google. [中文更新内容](https://github.com/fi3ework/hexo-theme-archer/pull/305)。 ## Merge PR Merged #268 and #300. ## Feature - Added **Dark mode** support, and can be switched by the button at \<header \/\>. Regarding the mode switch button, considering that the user is less likely to use it after use, it is put together with the link back to the home page and disappears after scrolling. In the future, you can put the same less frequently used search button or other helpful things here. - Add **MathJax mathematical formula** support, and update related documents (#266). - Added **Mermaid chart** support (#186). - Add support for the personal information `sticky` of the homepage to scroll with the page (#202). -Now you can set the category information of the corresponding article to be displayed on the homepage and article page (#188). - It is now possible to hide the catalog of specific articles (#244). ## Change - Adapt to Dark mode, adjust the spacing of text `padding`. - For mobile, when scrolling to the top part of the page, add a dark background to the \<header \/\> part. Helps to avoid buttons being disturbed by page title information. - The critical point of page scroll switching is selected as the junction of the header image and \<container \/\>. ## Optimization - Add a fade-in and fade-out animation effect to the floating button. - Add more configuration content for the timeliness of `outdated_threshold` articles. And keep the style sheet design consistent with the quote block part of the article. - Add support for Hexo's `comments` property to the article. When set to `false`, the comment plugin will not be displayed for the article. - When setting the post `sticky` property, the sticky icon will also be displayed. - The Toc of the article page will be ready sooner. - Optimize the configuration of Babel and Eslint. ## Fix - When Algolia is enabled, the unprocessed icon content will no longer be displayed when the page has not been loaded. - When opening the Algolia search interface, prevent page scrolling. - Fix the alignment of social icon including Steam icon (#301). ## Chore - Fixed the code format and indentation of all `.ejs` files in the `layout` directory. - Use `const` instead of unnecessary `let` in the script file to make the code look more clever. - Unify most of the CDN links as `cdn.jsdelivr.net`. - Update third-party dependency packages including jQuery to fix compatibility issues; remove unnecessary or deprecated dependencies. - Update the warehouse documentation and secondary development documentation. ## Known issues In dark mode, when switching or refreshing the page, due to the reload of the `layout.ejs` file, the component \<div class="contain" \/\> will cause a short white screen. The expected situation is that in Dark mode, set its background color to dark before loading (such as \#121212)
Stark-X
pushed a commit
to Stark-X/hexo-theme-archer
that referenced
this pull request
Apr 1, 2024
🛎️ One-click translation by Google. [中文更新内容](https://github.com/fi3ework/hexo-theme-archer/pull/305)。 ## Merge PR Merged fi3ework#268 and fi3ework#300. ## Feature - Added **Dark mode** support, and can be switched by the button at \<header \/\>. Regarding the mode switch button, considering that the user is less likely to use it after use, it is put together with the link back to the home page and disappears after scrolling. In the future, you can put the same less frequently used search button or other helpful things here. - Add **MathJax mathematical formula** support, and update related documents (fi3ework#266). - Added **Mermaid chart** support (fi3ework#186). - Add support for the personal information `sticky` of the homepage to scroll with the page (fi3ework#202). -Now you can set the category information of the corresponding article to be displayed on the homepage and article page (fi3ework#188). - It is now possible to hide the catalog of specific articles (fi3ework#244). ## Change - Adapt to Dark mode, adjust the spacing of text `padding`. - For mobile, when scrolling to the top part of the page, add a dark background to the \<header \/\> part. Helps to avoid buttons being disturbed by page title information. - The critical point of page scroll switching is selected as the junction of the header image and \<container \/\>. ## Optimization - Add a fade-in and fade-out animation effect to the floating button. - Add more configuration content for the timeliness of `outdated_threshold` articles. And keep the style sheet design consistent with the quote block part of the article. - Add support for Hexo's `comments` property to the article. When set to `false`, the comment plugin will not be displayed for the article. - When setting the post `sticky` property, the sticky icon will also be displayed. - The Toc of the article page will be ready sooner. - Optimize the configuration of Babel and Eslint. ## Fix - When Algolia is enabled, the unprocessed icon content will no longer be displayed when the page has not been loaded. - When opening the Algolia search interface, prevent page scrolling. - Fix the alignment of social icon including Steam icon (fi3ework#301). ## Chore - Fixed the code format and indentation of all `.ejs` files in the `layout` directory. - Use `const` instead of unnecessary `let` in the script file to make the code look more clever. - Unify most of the CDN links as `cdn.jsdelivr.net`. - Update third-party dependency packages including jQuery to fix compatibility issues; remove unnecessary or deprecated dependencies. - Update the warehouse documentation and secondary development documentation. ## Known issues In dark mode, when switching or refreshing the page, due to the reload of the `layout.ejs` file, the component \<div class="contain" \/\> will cause a short white screen. The expected situation is that in Dark mode, set its background color to dark before loading (such as \#121212)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
jquery.min.js:2 Uncaught ReferenceError: process is not defined
at Object.../../node_modules/algoliasearch/src/AlgoliaSearchCore.js (search.js:799)
at webpack_require (search.js:7160)
however, this feature cannot be specified in any configuration file. It just follows the system preference.