EvanNotFound / hexo-theme-redefine

Simplicity in Speed, Purity in Design. Redefine Your Hexo Journey.
https://redefine.ohevan.com
GNU General Public License v3.0
1.52k stars 132 forks source link

[BUG] Home Banner Title Loss! #194

Closed 1chooo closed 1 year ago

1chooo commented 1 year ago

Describe the bug I have follow the steps to change the home_banner.title into my name. However, it does not change, it still be the default "Theme Redefine"

To Reproduce Steps to reproduce the behavior:

  1. go to _config.redefine.yml
  2. Find the home_banner.title and rename into 1chooo's Blog
  3. hexo clean, hexo generate, hexo server
  4. See error!!! home_banner.title still be the "Theme Redefine"

Expected behavior "Theme Redefine" will change into "1chooo's Blog"

Screenshots

The "home_banner.title" still be the "Theme Redefine"

Screen Shot 2023-07-30 at 12 58 29 AM

Desktop (please complete the following information):

Additional context My _config.redefine.yml

home_banner:
  # Whether to enable home banner
  enable: true
  # style of home banner
  style: fixed # static or fixed
  # Home banner image
  image: 
    light: /images/NCU.png # light mode
    dark: /images/NCU.png # dark mode
  # Home banner title
  title: 1chooo's Blog
  # Home banner subtitle

BR, Hugo ChunHo Lin

EvanNotFound commented 1 year ago

The title in the menu bar is configured by info.title, not homebanner

EvanNotFound commented 1 year ago

image

1chooo commented 1 year ago

@EvanNotFound Sorry that I use the old version of base_info.title, I have changed into base.title. I sincerely apologise for my mistake, thank you for your assistance

# My Old version code and not work
base_info:
  title: 1chooo's Blog # Site title
  author: Hugo ChunHo Lin # Author name
  url: https://1chooo.github.io/1chooo-blog # Site url
  # Logo image (You can use local image, image external link or don’t fill)
  # logo image on the left of the navigation bar
  logo_img: /images/favicon.ico

# This work!
info:
  title: 1chooo's Blog # Site title
  author: Hugo ChunHo Lin # Author name
  url: https://1chooo.github.io/1chooo-blog # Site url
  # Logo image (You can use local image, image external link or don’t fill)
  # logo image on the left of the navigation bar
  logo_img: /images/favicon.ico

BR, Hugo ChunHo Lin

1chooo commented 1 year ago

It finally work!!!

Screen Shot 2023-07-30 at 1 09 25 AM
EvanNotFound commented 1 year ago

You are welcome. Feel free to ask more questions

1chooo commented 1 year ago

@EvanNotFound

My I ask you an another problem? How to add the image to the cover of the article

Example Image: article list I wish post page I wish
Screen Shot 2023-07-30 at 1 11 55 AM Screen Shot 2023-07-30 at 1 12 03 AM
My current article list My current post page
Screen Shot 2023-07-30 at 1 16 09 AM Screen Shot 2023-07-30 at 1 17 31 AM

This is the heading of the scaffolds/post.md

How do I modify?

---
title: {{ title }}
date: {{ date }}
tags:
---
EvanNotFound commented 1 year ago

Please check out documentation for this:

https://redefine-docs.ohevan.com/article_customize/thumbnail

and

https://redefine-docs.ohevan.com/article_customize/banner