Skip to content
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

Enhancement: Add support HEXO's post asset folders #430

Closed
estruyf opened this issue Oct 1, 2022 · 3 comments
Closed

Enhancement: Add support HEXO's post asset folders #430

estruyf opened this issue Oct 1, 2022 · 3 comments
Labels
enhancement New feature or request Project: v8.2.0
Projects

Comments

@estruyf
Copy link
Owner

estruyf commented Oct 1, 2022

    This is a HEXO feature. https://hexo.io/docs/asset-folders defines it better. I have the `_config.yml` parameter `post_asset_folder: true` set.
post_asset_folder: true
marked:
  prependRoot: true
  postAsset: true

Originally posted by @lorezyra in #428 (comment)

@estruyf
Copy link
Owner Author

estruyf commented Oct 1, 2022

@lorezyra just tested it out, with the settings you provided above, it behaves like our page bundles. In this case, FM needs to implement the knowledge of how to use these HEXO settings in order to adapt its behavior.

@estruyf estruyf added the enhancement New feature or request label Oct 1, 2022
@estruyf
Copy link
Owner Author

estruyf commented Oct 7, 2022

@lorezyra with the post_asset_folder setting set to true are you able to reference images from other folders?

@estruyf estruyf added this to Planned in v8.2.0 via automation Oct 8, 2022
@estruyf
Copy link
Owner Author

estruyf commented Oct 8, 2022

I've added support for HEXO its image functionality.

When you set the frontMatter.framework.id setting to hexo, you can set the frontMatter.content.publicFolder folder to:

  • source/images: If you want to use the default image location of HEXO
  • hexo:post_asset_folder: If you want to use the post asset folder functionality

When you initialize a new project, these settings are automatically applied, but when already initialized, you will have to manually add this.

@estruyf estruyf moved this from Planned to In development in v8.2.0 Oct 8, 2022
@estruyf estruyf moved this from In development to Done in v8.2.0 Nov 28, 2022
@estruyf estruyf mentioned this issue Dec 8, 2022
@estruyf estruyf closed this as completed Dec 8, 2022
@estruyf estruyf closed this as completed Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Project: v8.2.0
Projects
No open projects
Development

No branches or pull requests

1 participant