klugjo / hexo-theme-magnetic

Adaptation of http://pixelhint.com/magnetic-free-html5-responsive-photography-website-template/ for hexo
187 stars 66 forks source link

Cover index pictures not shown in second page #24

Closed tvntran closed 6 years ago

tvntran commented 6 years ago

Cover index pictures are shown perfectly in the homepage, but disappear from the second page. Here I set 2 posts per page, and this is page 2. Do you have any idea to fix the problem? Thanks!

klugjo commented 6 years ago

Do you a have a link to your live blog ? Can you also paste the front matter for the posts ? I need to see how you set up the path to the cover images.

Thanks for using my theme :)

tvntran commented 6 years ago

I don't think there is any problem with the front matter, because everything looks perfect when I set per_page: 0, and if I forget, it should show the default cover index. Here is my site tiengnauy.no. I will change it to another value and let you know. The theme is great with its minimalism. Thank you for your work!

klugjo commented 6 years ago

I am just thinking there is an issue with relative/absolute path to the images. So when you are on the root page it works, but when you are on page/2 it fails because it can’t find the images

On Tue, 26 Jun 2018 at 8:20 PM, Tran Van Ngoc Tan notifications@github.com wrote:

I don't think there is any problem with the front matter, because everything looks perfect when I set per_page: 0 Here is my site http://tiengnauy.no. I will change it to another value and let you know. The theme is great with its minimalism. Thank you for your work!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/klugjo/hexo-theme-magnetic/issues/24#issuecomment-400287262, or mute the thread https://github.com/notifications/unsubscribe-auth/AC0qqEvTt8TCPJTzql1VzSwN7KnzbJQsks5uAiclgaJpZM4U1xU9 .

tvntran commented 6 years ago

Oh, I see. I use relative link. It could be the cause.

klugjo commented 6 years ago

Try to use absolute path for now then I will have a look and fix it for relative path if that is the cause

On Tue, 26 Jun 2018 at 8:24 PM, Tran Van Ngoc Tan notifications@github.com wrote:

Oh, I see. I use relative link. It could be the cause.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/klugjo/hexo-theme-magnetic/issues/24#issuecomment-400288224, or mute the thread https://github.com/notifications/unsubscribe-auth/AC0qqCOk6UqVZ2m2HAGZ_3OuCk7CnMQ7ks5uAigAgaJpZM4U1xU9 .

tvntran commented 6 years ago

I confirm that it works when I use absolute links for the images. Thank for your support!