Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章内H1一级标题不显示 #690

Closed
3 tasks done
hormoyo opened this issue Aug 19, 2023 · 5 comments
Closed
3 tasks done

文章内H1一级标题不显示 #690

hormoyo opened this issue Aug 19, 2023 · 5 comments

Comments

@hormoyo
Copy link

hormoyo commented Aug 19, 2023

Issue Checklist

Expected behavior

正常展示H1 H2 H3级别的正文内标题

Actual behavior

image
image

Steps to reproduce the behavior

使用最新的next版本,开始创建blog,然后发现H1标题在正文内不展示,但侧边栏目录里会有。不知道是什么问题?
Using the latest version, start creating a blog and discover that the H1 title is not displayed in the main text, but in the sidebar directory

Node.js and NPM Information

node:v20.5.1
npm:9.8.1

Package dependencies Information

Hexo Configuration

# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Divergent
subtitle: 分歧者,拥有强烈好奇心的异类
description: 今天,终会成为过去,唯一能留住的就是未来
author: Dannii
language: zh-CN
timezone: Asia/Shanghai

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://dannii.cc
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: 
  enable: true # Open external links in new tab
  field: site
  exclude: []
filename_case: 0
render_drafts: false
marked:
  prependRoot: true
  postAsset: true
post_asset_folder: true
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: true
  tab_replace:
  
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ''
  per_page: 10
  order_by: -date
  pagination_dir: page
  
# Category & Tag
default_category: uncategorized
category_map:
  「这就是生活」: life
  「书影世界」: bookandmovie
  「你好,手工艺」: craftsmanship
  「进化之路」: self-growth
  「跟黑洞一样大的脑坑」: novel
  「get新技能」: newskill
  「随手记」: notes
tag_map:
  “更无用”的写作课-作业: wuyong-writing-work
  “更无用”的写作课-笔记: wuyong-writing-note
  读书笔记: reading-notes
  理财: finance

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# hexo-theme-next

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy: 
  type: git
  repository: https://github.com/hormoyo/hormoyo.github.io.git
  branch: master

#统计字数
symbols_count_time:
  symbols: true 
  time: true 
  total_symbols: true 
  total_time: false

#rss订阅
feed:
  type: rss2
  path: rss2.xml
  limit: 10
  hub:
  content: 'true'

#本地搜索
search:
  path: search.xml
  field: post
  format: html
  limit: 10000
  content: true

NexT Configuration

Use `description` in front-matter to specify post excerpt. post内使用简介
excerpt_description: true

# Read more button
# If true, the read more button will be displayed in excerpt section.
read_more_btn: true

# Post meta display settings 文章内头部字段配置
post_meta:
  item_text: true
  created_at: true
  updated_at:
    enable: true
    another_day: true
  categories: true

# Post wordcount display settings 字数统计
# Dependencies: https://github.com/next-theme/hexo-word-counter
symbols_count_time:
  separated_meta: true
  item_text_total: false

# Use icon instead of the symbol # to indicate the tag at the bottom of the post
tag_icon: true

# -----
# TagCloud settings for tags page.
tagcloud:
  min: 12 # Minimum font size in px
  max: 30 # Maximum font size in px
  amount: 200 # Total amount of tags
  orderby: name # Order of tags
  order: 1 # Sort order

# -----

font:
  enable: true

  # Uri of fonts host, e.g. https://fonts.googleapis.com (Default).
  host: https://github.com/lxgw/LxgwWenKai

  # Font options:
  # `external: true` will load this font family from `host` above.
  # `family: Times New Roman`. Without any quotes.
  # `size: x.x`. Use `em` as unit. Default: 1 (16px)

  # Global font settings used for all elements inside <body>.
  global:
    external: true
    family: LXGW WenKai
    size: 0.85

  # Font settings for site title (.site-title).
  title:
    external: true
    family: LXGW WenKai
    size:

  # Font settings for headlines (<h1> to <h6>).
  headings:
    external: true
    family: LXGW WenKai
    size:

  # Font settings for posts (.post-body).
  posts:
    external: true
    family: Caveat

  # Font settings for <code> and code blocks.
  codes:
    external: true
    family:

# -------
# Local Search 本地搜索
# Dependencies: https://github.com/next-theme/hexo-generator-searchdb
local_search:
  enable: true
  # If auto, trigger search by changing input.
  # If manual, trigger search by pressing enter key or search button.
  trigger: auto
  # Show top n results per article, show all results by setting to -1
  top_n_per_article: 1
  # Unescape html strings to the readable one.
  unescape: false
  # Preload the search data when the page loads.
  preload: false

# -------

Other Information

No response

@hormoyo hormoyo added the Bug Something isn't working label Aug 19, 2023
@welcome
Copy link

welcome bot commented Aug 19, 2023

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@stevenjoezhang
Copy link
Member

提供一下你的网站链接。

@hormoyo
Copy link
Author

hormoyo commented Aug 21, 2023

提供一下你的网站链接。

现在暂时还没有发布 只在hexo s查看

@stevenjoezhang
Copy link
Member

看上去原因是 h1 的 font-size 被设置为了 0px,请检查你的配置文件是否有误

@stevenjoezhang stevenjoezhang added Solved and removed Bug Something isn't working labels Sep 21, 2023
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants