Make per_page default to true to make math lazyloaded#66
Merged
wafer-li merged 3 commits intotheme-next:masterfrom Jan 22, 2018
wafer-li:math-flip-perpage
Merged
Make per_page default to true to make math lazyloaded#66wafer-li merged 3 commits intotheme-next:masterfrom wafer-li:math-flip-perpage
wafer-li merged 3 commits intotheme-next:masterfrom
wafer-li:math-flip-perpage
Conversation
tsanie
approved these changes
Jan 22, 2018
Contributor
tsanie
left a comment
There was a problem hiding this comment.
GJ. 👍
And I think it is not a breaking change, because the users' current config will not make the different result, until they change their config.
Member
|
It's just optimization. |
Member
|
And milestone please. |
Contributor
|
@sli1989 The code is not changed, and just change the default parameter and docs, the logic works like it before as. And yes, if it is set to true, only the post contains original words: |
Collaborator
|
好吧,还以为改了代码。为啥不考虑删除not呀,为了保持一致性? |
|
正在用这个功能。我觉得单页比较好,因为不是每一篇博客都含有数学化学等公式的,如果每页均要引入mathjax的话,对页面的加载来说是个负担。 目前我的做法就是在含有数学公式的md文件的头部加个 |
Collaborator
|
The question is the logic: |
tongluyang
pushed a commit
to tongluyang/hexo-theme-next
that referenced
this pull request
Nov 19, 2019
Make per_page default to true to make math lazyloaded
This file contains hidden or 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
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.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
per_pagedefault isfalseand will render math EVERY PAGE.What is the new behavior?
per_pagedefault istrueand will render math on demand.That is it will only render those posts with
mathjax: trueby defaultRelated: #32 (comment)
How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?