ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 335 forks source link

Incorrect thumbnail image link #182

Closed mien closed 7 years ago

mien commented 7 years ago

Home page of the web site is referring the correct thumbnail but other pages are not referring to other link. This bug only arise if you pass thumbnail parameter in frontmatter for example: correct thumbnail referring on home page of my website : mien.in incorrect referencing on page: http://www.mien.in/categories/IOT/ for post on this page i have passed thumbnail parameter in front matter http://www.mien.in/categories/Machine-Learning/ this page is referring correct thumbnail because I havn't custom thumbail parameter in frontmatter its using hexo default thumbnail

this same issue persist for the recent post widget

ppoffice commented 7 years ago

@mien Please use absolute image URL.

mien commented 7 years ago

I am not much into hexo. i am using absolute url, link to the code https://github.com/mien/blog-source and how is it working for home page and not other page. If you look at the html source in console and the error logs on other pages they are images are referring to different location.

ppoffice commented 7 years ago

@mien No, you are not using absolute URL.

This is the path relative to your current URL:

images/arduino-esp8266-connection-thumbnail.png

This is the absolute path to your root URL:

/images/arduino-esp8266-connection-thumbnail.png
mien commented 7 years ago

awsome thax it worked