Hexo: CSS changes in landscape theme not used during generate or deploy

Created on 1 Apr 2014  ·  1Comment  ·  Source: hexojs/hexo

I am using Hexo (updated today) and the default landscape theme.

I changed the banner image (banner-url) in landscape theme and that works correctly when running "hexo server", however when running "hexo deploy" the original image is used as the banner URL (the public/css/style.css and .deploy/css/style.css are both using the original banner-url setting)

To change the banner image, I edited themes/landscape/source/css/_variables.styl

banner-url = "images/cat-eyes-and-paw.png"

Either there is a bug in the CSS creation for generate/deployment or I misunderstand where else banner-url is being set.

I don't understand why hexo server has the correct results unless it does not use the static content created by heroku generate

Thank you

Most helpful comment

Sorry, now realise I need to do a "Hexo clean" command in my project in order to pick up changes in the theme. The Hexo clean removes .cache and deploy folders so I am assuming hexo uses the cache to minimise what is generated each time.

If this is the desired behaviour, it would be good to document it.

I'll be bloging my experiences learning hexo in the next few days at jr0cket.co.uk if you would find that useful.

Thanks

>All comments

Sorry, now realise I need to do a "Hexo clean" command in my project in order to pick up changes in the theme. The Hexo clean removes .cache and deploy folders so I am assuming hexo uses the cache to minimise what is generated each time.

If this is the desired behaviour, it would be good to document it.

I'll be bloging my experiences learning hexo in the next few days at jr0cket.co.uk if you would find that useful.

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Helihua1992 picture Helihua1992  ·  3Comments

ghost picture ghost  ·  3Comments

19uni94 picture 19uni94  ·  3Comments

jakeg picture jakeg  ·  3Comments

hjmJhon picture hjmJhon  ·  3Comments