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

asset_img doesn't work properly if a post has an excerpt #2

Open
pperez opened this issue Feb 14, 2015 · 2 comments
Open

asset_img doesn't work properly if a post has an excerpt #2

pperez opened this issue Feb 14, 2015 · 2 comments

Comments

@pperez
Copy link

pperez commented Feb 14, 2015

Hi! This is the issue, if i use the tag asset_img on a post that has an excerpt ( tag), the image is not shown on the index:

Image on index
And inside the post itself it's shown twice:

Image on post

Steps to reproduce:

  1. Create a new post: hexo new "testing asset image"
  2. Attach an image to the post using the asset_img tag
  3. Put an excerpt in the post using the tag
  4. Generate static content: hexo generate && hexo server

This gist has the content of the post i used to test the issue.

Regards

@timnew
Copy link
Owner

timnew commented Feb 14, 2015

@pperez My intuition says it is because excerpt uses a different page generation process than the normal post. I might need to dig a little bit deeper to find out the solution.
I'll keep you posted

@pperez
Copy link
Author

pperez commented Feb 14, 2015

@timnew awesome, thanks!

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

No branches or pull requests

2 participants