Skip to content

Added include_raw tag feature.#140

Merged
ivan-nginx merged 1 commit intomasterfrom
feature-include-raw
Feb 13, 2018
Merged

Added include_raw tag feature.#140
ivan-nginx merged 1 commit intomasterfrom
feature-include-raw

Conversation

@ivan-nginx
Copy link
Member

Usage:

{% include_raw '_data/path/to/file.html' %}

Path is relative to your site source directory.


For example, create hexo/source/_data/templates/custom.html then add tag in post:

{% include_raw '_data/templates/custom.html' %}

All contents from custom.html will include into your post(s) in raw mode.

@ivan-nginx ivan-nginx added this to the v6.0.5 milestone Feb 13, 2018
@ivan-nginx ivan-nginx merged commit b856dc0 into master Feb 13, 2018
@ivan-nginx ivan-nginx deleted the feature-include-raw branch February 13, 2018 21:49
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant