Giter VIP home page Giter VIP logo

hexo-theme-minimalism's Introduction

Hello 👋

🇨🇳 Zhengzhou,China・🕹Web developer

http://codeover.cn

95后普通男青年:heart:

hexo-theme-minimalism's People

Contributors

f-dong avatar katriyda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-minimalism's Issues

[BUG]

提交前检查单

  • [✓] 已尝试执行 hexo clean,问题仍然存在

Bug 描述
gitalk模块报错,网页不显示。

  • hexo 根目录的网站配置文件 _config.yml
  • 主题根目录配置文件 _config.yml 中有关的项目。如果有敏感信息请打码。
    comment:
    enable: true
    system: gitalk # 可选 gitalk、twikoo
    config:
    gitalk:
    clientId: ef1dde43**********
    clientSecret: 8d6c18ab*****
    repository: blog-talk # 仓库名
    owner: Forri1996 # 仓库所有者
    createIssueManually: true

复现方法
文章

预期结果
展示评论模块

截图
image

看不到的话,直接访问这个地址:https://github.com/f-dong/hexo-theme-minimalism/assets/128824087/3f2b5920-6e3a-4e0e-aee8-90906d18cd0b

电脑(请填写以下信息):

  • 操作系统:[Windows]
  • 浏览器 [Chrome, Safari]
  • 版本 [115.0.5790.171]

文章摘要沒有自動顯示

README.md 最下面有寫:

summary: 这是你自定义的文章摘要内容,如果这个属性有值,文章卡片摘要就显示这段文字,否则程序会自动截取文章的部分内容作为摘要

但我測試如果沒有設定summary,就沒有任何的文章摘要,請我有地方設定錯嗎?Thanks!

[BUG]文章置顶不起作用

提交前检查单

  • 已尝试执行 hexo clean,问题仍然存在

Bug 描述
清晰地描述,请提供

---
top: true
toc: false
sticky: 999
---

按照如下设置,置顶文章不起任何作用

[功能建议] 默认的 menu

功能概述
请提供这个功能应该是什么样的

目前主题的配置,默认的 menu 部分。

menu:
  Index:
    url: /
    External: false
    name: 首页
  Tags:
    url: /tags
    External: false
    name: 标签
  Archives:
    url: /archives
    External: false
    name: 归档
  About:
    url: /about
    External: false
    name: 关于

但实际上如果使用 _config.minimalism.yml 进行覆盖的化

比如这样:

menu:
  Index:
    url: /
    External: false
    name: 首页
  Tags:
    url: /tags/
    External: false
    name: 标签
  Equipment:
    url: /equipment/
    External: false
    name: 装备
  Projects:
    url: /projects/
    External: false
    name: 作品
  Archives:
    url: /archives/
    External: false
    name: 归档
  About:
    url: /about/
    External: false
    name: 关于

但最终结果是这样的:

menu:
  Index:
    url: /
    External: false
    name: 首页
  Tags:
    url: /tags
    External: false
    name: 标签
  Archives:
    url: /archives
    External: false
    name: 归档
  About:
    url: /about
    External: false
    name: 关于
  Equipment:
    url: /equipment/
    External: false
    name: 装备
  Projects:
    url: /projects/
    External: false
    name: 作品

如果使用 npm 安装的化,实际上并没有办法去改变 menu 的顺序。hexo 会把两个 _config.yml 进行合并。甚至不能去掉已经存在的按钮。建议默认配置里面把 menu 留空


BTW: 用 Map 来做有顺序的配置这在语法上并不严格。建议使用 Array

例如这样:

menu:
 -
    url: /
    External: false
    name: 首页
 -
    url: /tags
    External: false
    name: 标签
 -
    url: /archives
    External: false
    name: 归档
 -
    url: /about
    External: false
    name: 关于

想要某些文章仅仅不在首页展示

文章 Front-matter中的hide一旦设置为true,文章不仅会在网站首页不展示,在tags页面同样也会不展示。而我想要实现的是仅仅不在首页展示,进入到对应tags还是要展示的。我实在没什么前端经验,不知道能不能麻烦老哥帮我改下源码实现此功能,或者告诉我改哪个文件,我自己研究下。

[BUG] 图片无法正常加载

提交前检查单

  • 已尝试执行 hexo clean,问题仍然存在

Bug 描述
最新的1.3.3版本,图片无法正常加载

复现方法
复现该 Bug 的步骤:

文章中插入图片

![test](/image/test.png)

预期结果
该功能本来应该是怎么样的

图片正常载入

截图
如果可以,请添加截图以帮助解释您的问题。

生成的html代码变成了

<a class="simple-lightbox" href="/image/test.png" one-link-mark="yes"><img src="/images/loading.svg" data-src="/image/test.png" alt="test" lazyload=""></a>

一直停留在加载界面
image

hide为true后,分页展示错误

设置hide为true后,文章会隐藏,但是仍然被记入分页的total里。如: 本来设置的每页展示16条,结果首页每页展示不够16条就下一页了。

markdown空格转义字符解析不出来

&emsp; 这个转义字符代表一个全角的空格,在本地markdown编辑器可以正常显示空格。通过hexo部署后显示字符&emsp;而不是空格。

[BUG] 导航栏中间位置有一个隐形链接

作者你好,很喜欢这个主题,但是好像发现一个问题,就是在导航栏的中部有一个地方鼠标放上去会变成手型,点击会跳转到分类页面,不知道是什么原因:
image

跳转到分类页面:

image

不知道是有意为之还是BUG,谢谢!

[BUG]归档页面不能分页,只能显示一部分文章

config.yml

menu:
  Index:
    url: /
    External: false
    name: Home
  Tags:
    url: /tags
    External: false
    name: Tags
  Categories:
    url: /categories
    External: false
    name: Categories
  Archives:
    url: /archives
    External: false
    name: Archives
  About:
    url: /about
    External: false
    name: About

# 深色主题
dark_theme:
  enable: true

# 联系方式
contact:
  github: "https://github.com/li199-code"
  twitter:
  weibo:
  zhihu:
  facebook:
  mail: ""

# 是否显示封面图片
showFeatureImage: true

# 首页头像图片
avatar: /images/avatar.png

# 谷歌统计 跟踪 ID
ga:

# 百度统计 The baidu web analytics
baidu_tongji:

# Gittalk 评论组件
# See: https://github.com/gitalk/gitalk/
gitalk:
  enable: false
  clientId:
  clientSecret:
  repository: # 仓库名
  owner: # 仓库所有者
  createIssueManually: false # 如果当前页面没有相应的 isssue 且登录的用户属于 admin,则会自动创建 issue。如果设置为 true,则显示一个初始化页面,创建 issue 需要点击 init 按钮。

# 是否使用 bootcdn
use_bootcdn: false

# 底部链接
bottom_link:
  rss:
    url:
    text: RSS
    class: rss
  icp:
    url: # beian.miit.gov.cn
    text: # 沪ICP备 09007032号-1
    class: icp

# 底部显示来源信息
bottom_source:
  enable: true

# 脚注
footnote:
  enable: true # 是否开启脚注解析
  ignoreCodeBlock: false # 是否忽略代码块中的脚注

# 图片配置
image:
  lazyload_enable: false # 图片懒加载

开启gitalk后,评论框未出现

gitalk:
enable: true
clientId: xxx
clientSecret: xxxx
repository: xxxxx
owner: xxx
createIssueManually: false, # 如果当前页面没有相应的 isssue 且登录的用户属于 admin,则会自动创建 issue。如果设置为 true,则显示一个初始化页面,创建 issue 需要点击 init 按钮。

如上设置为true,其它配置项也如实填写后未出现期待的评论框。

环境是master分支最新代码。

[BUG]归档无法展示所有的文章,仅仅展示了部分文章

提交前检查单

  • 已尝试执行 hexo clean,问题仍然存在,是的,问题还存在

Bug 描述
清晰地描述,请提供

  • hexo 根目录的网站配置文件 _config.yml
title: 0x783kb
subtitle: ''
description: ''
keywords: thearthunting
author: ''
language: en
timezone: ''
url: ''
permalink: ':year/:month/:day/:title/'
permalink_defaults: null
pretty_urls:
  trailing_index: true
  trailing_html: true
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: ':lang'
skip_render: null
new_post_name: ':title.md'
default_layout: post
titlecase: false
external_link:
  enable: true
  field: site
  exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: true
marked:
  prependRoot: true
  postAsset: true
relative_link: false
future: true
syntax_highlighter: highlight.js
highlight:
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  preprocess: true
  line_number: true
  tab_replace: ''
index_generator:
  path: ''
  per_page: 10
  order_by: '-date'
default_category: uncategorized
category_map: null
tag_map: null
meta_generator: true
date_format: YYYY-MM-DD
time_format: HH:mm:ss
updated_option: mtime
per_page: 10
pagination_dir: page
include: null
exclude: null
ignore: null
theme: minimalism
deploy:
  type: ''
permalink_pinyin:
  enable: true # 启用插件
  separator: '-' # 分词符,将使用此符号分隔两个汉字间的拼音

sitemap:
  path: # 可选只要一个
    - sitemap.xml
    - sitemap.txt
  rel: true # 是否在页面头部添加 rel="sitemap" 链接

encrypt:
   enable: true
  • 主题根目录配置文件 _config.yml 中有关的项目。如果有敏感信息请打码。
$ cat _config.yml 
menu:
  Index:
    url: /
    External: false
    name: 首页
  Tags:
    url: /tags
    External: false
    name: 标签
  Categories:
    url: /categories
    External: false
    name: 分类
  Archives:
    url: /archives
    External: false
    name: 归档
  About:
    url: /about
    External: false
    name: 关于

# 深色主题
dark_theme:
  enable: true
  mode: auto # 可选 auto、dark

# 联系方式
contact:
  #github: "https://github.com/f-dong"
  twitter:
  weibo:
  zhihu:
  facebook:

# 首页头像图片
avatar: /imanges/avatar.ico

# 站点图标
favicon: /imanges/avatar.ico

# 谷歌统计 跟踪 ID
ga:

# 百度统计 The baidu web analytics
baidu_tongji:
  
comment:
  enable: false
  system: twikoo # 可选 gitalk、twikoo
  config:
    gitalk:
      clientId:
      clientSecret:
      repository: # 仓库名
      owner: # 仓库所有者
      createIssueManually: false # 如果当前页面没有相应的 isssue 且登录的用户属于 admin,则会自动创建 issue。如果设置为 true,则显示一个初始化页面,创建 issue 需要点击 init 按钮。
    twikoo:
      envId: #  腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
      region: # 环境地域,腾讯云传
      mark: # 一个twikoo服务端应用于多个内容时,可填写此项

# 底部链接
bottom_link:
  rss:
    url:
    text: RSS
  icp:
    url: # beian.miit.gov.cn
    text: # 沪ICP备 09007032号-1

# 底部显示来源信息
bottom_source:
  enable: true

# 脚注
footnote:
  enable: true # 是否开启脚注解析
  ignoreCodeBlock: false # 是否忽略代码块中的脚注

# 图片配置
image:
  lazyload_enable: true # 图片懒加载
  lazyload_placeholder: # 图片懒加载占位图
  photo_zoom: simple-lightbox # 可选 simple-lightbox、fancybox、false(禁用)
  
# cdn 配置
cdn:
  enable: false
  # CDN 提供者
  provider: jsdelivr # 可选 jsdelivr、unpkg、bootcdn

复现方法
复现该 Bug 的步骤:

访问之后,点击归档,只展示了10个文章

预期结果
该功能本来应该是怎么样的

展示全部

第二页的文章并没有生成归档

电脑(请填写以下信息):

  • 操作系统:macOS
  • 浏览器: Chrome
  • 版本:版本 123.0.6312.87(正式版本) (x86_64)

其他
如有其他内容,请提供

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.