timnew / hexo-tag-asset-res

Hexo Tag that consumes asset files
https://github.com/timnew/hexo-tag-asset-res
MIT License
17 stars 4 forks source link

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

Open pperez opened 9 years ago

pperez commented 9 years ago

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 commented 9 years ago

@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 commented 9 years ago

@timnew awesome, thanks!