feat: support custom homepage #304
Closed
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.
Background
Yesterday, I thought a log about the
Custom Homepage
before closing a issue (#294). anyhow, we should NEVER usev-html
to render anything from front-matter —— The YAML is only meant for convenience, and you even cannot use multiple line syntax.BTW, Another defect of using html at front-matter is that we will need to parse each field which would be html. in fact, we only need to support HTML for description in homepage. while in other page the description in only existed in
<meta>
tag.@luisDanielRoviraContreras Thanks for your PR, as Evan said at #293 (comment), we can simply inspect the default generated structure and write your own HTML in the markdown section:
It's a good idea, but I still want to keep some custom functionalities out of the box. which is for a more smooth transition to
pure html
or Custom Layout.So with this PR, you can implement your requirements like this:
@yyx990803 This feature only import very small change to the core. and fully downward compatibility. please help me to confirm the document. thanks!