Add new filter type theme_inject#868
Merged
jiangtj merged 17 commits intotheme-next:masterfrom Jul 10, 2019
Merged
Conversation
stevenjoezhang
previously approved these changes
May 7, 2019
Contributor
|
And docs here... |
Member
Author
Why is there a doc here? QAQ |
stevenjoezhang
approved these changes
Jul 8, 2019
Contributor
-> |
Contributor
|
And... how about a |
Member
Author
Yeah 😂, In addition, we also can add |
This was referenced Jul 9, 2019
15 tasks
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?
Through update custom layout file.
Issue resolved: N/A
What is the new behavior?
Inject custom layout.
I want to write an new theme by myself, based on NexT.
This is a core feature, and want to refactor comment post_meta etc, based on it.
How to use?
For
advanced-settingsuser, you can write code as following. And others can seeBreaking Change, if you have compatibility issue.In
scripts:Layout (point: ['head', 'header', 'sidebar', 'postMeta', 'postBodyEnd', 'footer', 'bodyEnd'] )
Style (point: ['variable', 'mixin', 'style'] )
Does this PR introduce a breaking change?
Breaking Change
Remove default custom layout files (
layout/_custom/*) and css files.If you define the content in the default custom layout files, you will need to migrate it into the hexo directory and define it in the
custom_file_path.Example: move theme
source/css/_variables/custom.stylto hexosource/_data/variables.styl, and then config as following:DIFF: