next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.41k stars 428 forks source link

pandoc 为 tr 增加的 header 类名存在命名冲突 #521

Closed woruo27 closed 2 years ago

woruo27 commented 2 years ago

Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

表格标题文字正常显示。(<tr class="header" style="opacity: 1; top: 0px;">

Actual behavior

通过pjax打开友链页面时,表格标题文字透明。(<tr class="header">

直接打开页面(无跳转)时正常。

|              头像              |     昵称     |                  链接                 |      介绍      |
| :----------------------------: |   :-----:   | :-----------------------------------: | :------------: |
|  ![xxx](/uploads/xxx.png)  |  **xxx**  |  [xxx Blog](https://xxx)  |  xxx  |

希望添加友链请通过侧边栏的联系方式或评论区留言。

Steps to reproduce the behavior

设置pjax为true,新建friends页面并添加到menu,编写md文件如上。

Environment Information

Node.js and NPM Information

v16.15.0
8.10.0

Package dependencies Information

blog.woruo.online@1.0.0 /home/woruo/web/blog.woruo.online
├── @waline/hexo-next@3.0.1
├── hexo-generator-archive@1.0.0
├── hexo-generator-category@1.0.0
├── hexo-generator-index@2.0.0
├── hexo-generator-searchdb@1.4.0
├── hexo-generator-sitemap@3.0.1
├── hexo-generator-tag@1.0.0
├── hexo-renderer-pandoc@0.3.1
├── hexo-renderer-stylus@2.0.1
├── hexo-server@3.0.0
├── hexo-theme-next@8.11.1
├── hexo-word-counter@0.0.3
└── hexo@6.2.0

Hexo Configuration

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

# Site
title: 沃若の日记本
subtitle: '桑之未落,其叶沃若。'
description: ''
keywords:
author: 沃若
language: zh-CN
timezone: 'Asia/Shanghai'

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://blog.woruo.online
permalink: :title/
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

# 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 # Apply to the whole site
  exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: false
highlight:
  enable: false
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  enable: true
  preprocess: false
  line_number: 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

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# 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
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'

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

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:

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

# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
  type: ''

# hexo-word-counter
# https://github.com/next-theme/hexo-word-counter
symbols_count_time:
  symbols: true
  time: true
  total_symbols: true
  total_time: true
  exclude_codeblock: true
  awl: 2
  wpm: 275
  suffix: "分钟"

# hexo-generator-sitemap
# https://github.com/hexojs/hexo-generator-sitemap
sitemap:
  path: sitemap.xml
  template: node_modules/hexo-generator-sitemap/sitemap.xml
  rel: false
  tags: true
  categories: true

# Waline Config File
# For more information:
# - https://waline.js.org
# - https://waline.js.org/reference/component.html
waline:
  # New! Whether enable this plugin
  enable: true

  # Waline server address url, you should set this to your own link
  serverURL: https://waline.woruo.online

  # Waline library CDN url, you can set this to your preferred CDN
  libUrl: https://cdn.jsdelivr.net/npm/@waline/client@v2/dist/waline.js

  # Waline CSS styles CDN url, you can set this to your preferred CDN
  cssUrl: https://cdn.jsdelivr.net/npm/@waline/client@v2/dist/waline.css

  # Custom locales
  locale:
    placeholder: 留下邮箱可以收到回复通知哦! # Comment box placeholder

  # If false, comment count will only be displayed in post page, not in home page
  commentCount: true

  # Pageviews count, Note: You should not enable both `waline.pageview` and `leancloud_visitors`.
  pageview: true

  # Custom emoji
  emoji:
    - https://unpkg.com/@waline/emojis@1.0.1/weibo
  #   - https://unpkg.com/@waline/emojis@1.0.1/alus
    - https://unpkg.com/@waline/emojis@1.0.1/bilibili
    - https://unpkg.com/@waline/emojis@1.0.1/qq
    - https://unpkg.com/@waline/emojis@1.0.1/tieba
  #   - https://unpkg.com/@waline/emojis@1.0.1/tw-emoji

  # Comment infomation, valid meta are nick, mail and link
  meta:
    - nick
    - mail
  #   - link

  # Set required meta field, e.g.: [nick] | [nick, mail]
  requiredMeta:
    - nick

  # Language, available values: en-US, zh-CN, zh-TW, pt-BR, ru-RU, jp-JP
  lang: zh-CN

  # Word limit, no limit when setting to 0
  wordLimit: 0

  # Whether enable login, can choose from 'enable', 'disable' and 'force'
  login: disable

  # comment per page
  pageSize: 10

NexT Configuration

pjax: true
menu:
  home: / || fa fa-home
  about: /about/ || fa fa-user
  tags: /tags/ || fa fa-tags
  categories: /categories/ || fa fa-th
  archives: /archives/ || fa fa-archive
  友链: /friends/ || fas fa-user-friends

(略)

Other Information

CHROME VERSION   101.0.4951.67
OS VERSION   Windows NT: 10.0.22000
stevenjoezhang commented 2 years ago

谢谢反馈,这个情况太少见了 😂 已修复: https://github.com/next-theme/hexo-theme-next/commit/f31c10d3295530ab0dedd59670462e90b719ae77

github-actions[bot] commented 1 year ago

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.