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

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

Open ru-song opened 5 years ago

ru-song commented 5 years ago

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!

ppoffice commented 5 years ago

@ru-song

  1. https://github.com/ppoffice/hexo-theme-hueman/wiki/Theme#thumbnail
  2. Remove those lines https://github.com/ppoffice/hexo-theme-hueman/blob/master/layout/common/summary.ejs#L19-L21
ru-song commented 5 years ago

@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?

ppoffice commented 5 years ago

@ru-song https://github.com/ppoffice/hexo-theme-hueman/blob/master/source/css/_partial/header.styl#L2

ru-song commented 5 years ago

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

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

JackHvikee commented 4 years ago

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

I tried but got no keywords like BANNER:(

haofengsiji commented 4 years ago

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

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

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.