Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

How to change header background with my own picture? how to hide the article-excerpt at homepage? #258

Open
ru-song opened this issue Jul 13, 2019 · 9 comments
Labels
discussion Any questions about this theme.

Comments

@ru-song
Copy link

ru-song commented Jul 13, 2019

Hi, I like this theme, and I try to use it.
I have try to solve these for many times, but it didnt work, could you please teach me how to modify it?

Thanks!

@ru-song ru-song changed the title How to change header background with my own picture? how to hide the article-excerpt iat homepage? How to change header background with my own picture? how to hide the article-excerpt at homepage? Jul 13, 2019
@ppoffice ppoffice added the discussion Any questions about this theme. label Jul 13, 2019
@ru-song
Copy link
Author

ru-song commented Jul 13, 2019

@ppoffice Hi, I mean the background on the top(black part under hueman logo), now It's black, can I change it with my own pic?

@ru-song
Copy link
Author

ru-song commented Jul 13, 2019

@ppoffice ya, I find it before, but I dont know how to modify, could you please give an example , like
background: /XX/XX/XX.png

@haofengsiji
Copy link

In the \blog\themes\landscape\source\css\_variables.styl file, you can change banner-url = "images/yourimage.jpg".
Reference: http://blogpengyin.herokuapp.com/How-to-Change-Banner-in-Hexo/

@JackHvikee
Copy link

In the \blog\themes\landscape\source\css\_variables.styl file, you can change banner-url = "images/yourimage.jpg".
Reference: http://blogpengyin.herokuapp.com/How-to-Change-Banner-in-Hexo/

I tried but got no keywords like BANNER:(

@haofengsiji
Copy link

haofengsiji commented May 9, 2020

You can also simply change the E:\study\program\blog\themes\landscape\source\css\images\banner.jpg as you wish, but with the same name banner.jpg

@JackHvikee
Copy link

I found that the theme's header bg is a pure color, so there has no banner.jpg or something like that. I can change the bg color but can't change it to a picture I prefer.

@JackHvikee
Copy link

I found that the theme's header bg is a pure color, so there has no banner.jpg or something like that. I can change the bg color but can't change it to a picture I prefer.

Problems solved yet~ I follow the way that landscape theme did, I add a banner pic in the .../css/images and add a linebanner-url = "images/banner.png"in the_variables``//Header line, and change theheader.styl file's first line frombackground: color intobackground: url(banner-url)
P.S. pay attention to the pic's pixels, which should be set in a great way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion Any questions about this theme.
Projects
None yet
Development

No branches or pull requests

4 participants