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

Closed
opened 2026-10-05 02:42:07 +02:00 by adam · 3 comments
Owner
    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 https://github.com/estruyf/vscode-front-matter/issues/428#issuecomment-1264311609

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. ```yml post_asset_folder: true marked: prependRoot: true postAsset: true ``` _Originally posted by @lorezyra in https://github.com/estruyf/vscode-front-matter/issues/428#issuecomment-1264311609_ <!-- github-sync-id:1393340104 -->
adam closed this issue 2026-10-05 02:42:07 +02:00
Author
Owner

@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.

@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. <!-- github-comment-id:1264319681 -->
Author
Owner

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

@lorezyra with the `post_asset_folder` setting set to `true` are you able to reference images from other folders? <!-- github-comment-id:1271544077 -->
Author
Owner

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.

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. <!-- github-comment-id:1272344323 -->
adam changed title from Enhancement: Add support HEXO's post asset folders to Enhancement: Add support HEXO's post asset folders 2026-10-27 13:15:18 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#347