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

access to asset_img content #4081

Open
keymood opened this issue Jan 15, 2020 · 0 comments
Open

access to asset_img content #4081

keymood opened this issue Jan 15, 2020 · 0 comments

Comments

@keymood
Copy link

@keymood keymood commented Jan 15, 2020

my _config.yml

post_asset_folder: true

and have made new post and used below code inside new.md

{% asset_img pic.jpg %}

but as category.ejs i cant use its content as dynamic by

<% site.posts.forEach(function(post) { %>

<%- image_tag(post.path + post.asset_img, ['title']) %>

and its result is 'undefined' for post.asset_img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.