Code Monkey home page Code Monkey logo

hexo-theme-yilia-plus's Introduction

hexo-theme-yilia-plus

star fork GitHub Last Commit issues Author Hexo Version 博客搭建交流群 LICENSE

    此项目是根据hexo-theme-yilia主题做了一些优化和改动,写这个项目的初衷就是深入学习Hexo。使用yilia主题可以快速迁移到yilia-plus

欢迎使用和Star支持,如使用过程中碰到问题,可以提出Issue,我会尽力完善

同时也欢迎相同爱好者加入一起维护此项目

关于hexo-theme-yilia-plus主题在原基础上做了以下功能升级

  1. 手机端头像添加主页跳转链接
  2. 集成不蒜子访问量统计功能
  3. 网易云音乐插件
  4. 页面点击小红心效果
  5. 增加了多个SubNav导航图标展示
  6. 添加GitHub Ribbons(Fork me)
  7. 页脚 Litten自定义(弃用)
  8. 添加版权声明
  9. 添加百度站长平台主动推送
  10. 集成 gitment 评论 ➡️ https://github.com/JoeyBling/yilia-plus-demo
  11. 集成码云评论 ➡️ https://gitee.com/zhousiwei/yilia-plus-demo
  12. 添加网站成立年份
  13. 页面加载进度条
  14. 添加苹果图标
  15. 标签页标题切换功能
  16. 添加字数统计功能
  17. 添加文字输入特效
  18. 友情链接优化展示
  19. 左侧边栏动态图效果、左侧导航栏支持滚动
  20. 添加悬停预览图片效果
  21. 其他样式轻微调优、社交图标优化
  22. 优化配置是否在新窗口打开链接
  23. fix bugs
  24. 添加看板娘动态模型插件
  25. 添加飘雪特效
  26. 自定义文章版权声明文本

如果有小伙伴有新功能的意见或者改进欢迎给我提意见和建议~

介绍

yilia-plus 是为 hexo 2.4+制作的主题。 崇尚简约优雅,以及极致的性能。 你可以点击 我的博客 查看效果。

如果想体验手机浏览效果,可以扫一下二维码:


鼓励

    如果觉得本主题还不错,您的支持和鼓励才是后续更新最大的动力,== 欢迎 Star ==

Stargazers over time

关于主题:

  1. 崇尚简约
  2. 追求移动端体验
  3. 希望把加载速度做到极致(努力中)
  4. 让大家把注意力放到内容上。这是本主题设计初衷
  5. 主题不支持IE6,7,8。以后也不会

一、外观

常规

常规

二、开发者

    为了性能和开发工程化考虑,yilia-plus 需要使用webpack进行构建生成。 如果您对主题有一些定制化的需求,请参考wiki《yilia-plus源码目录结构及构建须知》

评论支持

三、开始使用

1、安装

cd ./themes/
git clone --depth=1 https://github.com/JoeyBling/hexo-theme-yilia-plus.git ./yilia-plus

2、配置

修改hexo根目录下的 _config.yml ➡️ theme: yilia-plus

3、更新

cd themes/yilia-plus
git pull

四、配置

    主题配置文件在主目录下的_config.yml,请根据自己需要修改使用。

完整配置Demo例子,可以参考yilia-plus博客备份

# Header-菜单
menu:
  主页: /
  技术笔记: https://zhousiwei.gitee.io/ibooks/
  随笔: /tags/随笔/

# subNav-子导航
subNav:
  github: "#"
  gitee: "#" # 码云
  jianshu: "#" #简书
  cnblog: "#"
  #blog: "#"
  #csdn: "#"
  #rss: "#"
  #zhihu: "#"
  #qq: "img/2434387555.jpg"
  #weixin: "img/weixin_.png"
  #weibo: "#"
  #douban: "#"
  #segmentfault: "#"
  #bilibili: "#"
  #acfun: "#"
  #mail: "mailto:[email protected]"
  #facebook: "#"
  #google: "#"
  #twitter: "#"
  #linkedin: "#"

# 悬停预览图片效果
hover_effect:
  ## `global` 0: Set separately, 1: Enable global 2: Close global
  ## `global` 0: 分开设置, 1: 全局启用, 2: 全局关闭
  global: 2
  # SubNav-导航
  subNav: true

# RSS订阅(关于如何配置启用:https://www.jianshu.com/p/2aaac7a19736)
rss: /atom.xml

# 是否需要修改 root 路径
# 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,
# 请将您的 url 设为 http://yoursite.com/blog 并把 / 设为 /blog/。
root: /

# Content

# 文章太长,截断按钮文字(在需要截断的行增加此标记:<!--more-->)
excerpt_link: more
# 文章卡片右下角常驻链接,不需要请设置为false
show_all_link: '展开全文'
# 数学公式
mathjax: false

# Open link in a new tab | 是否在新窗口打开链接
open_in_new:
  article: true  # 文章链接
  menu: true   # 导航菜单
  subNav: true  # 子菜单

# 打赏
# 打赏type设定:0-关闭打赏; 1-文章对应的md文件里有reward:true属性,才有打赏; 2-所有文章均有打赏
reward_type: 2
# 打赏wording
reward_wording: '谢谢你请我吃糖果'
# 支付宝二维码图片地址,跟你设置头像的方式一样。比如:/assets/img/alipay.jpg
alipay: /img/alipay.jpg
# 微信二维码图片地址
weixin: /img/weixin.png

# 目录
# 目录设定:0-不显示目录; 1-文章对应的md文件里有toc:true属性,才有目录; 2-所有文章均显示目录
toc: 1
# 根据自己的习惯来设置,如果你的目录标题习惯有标号,置为true即可隐藏hexo重复的序号;否则置为false
toc_hide_index: true
# 目录为空时的提示
toc_empty_wording: '目录,不存在的…'

# 是否有快速回到顶部的按钮
top: true

# Miscellaneous
# 百度统计
baidu_analytics: ''
google_analytics: ''

# 网站图标
favicon: /favicon.ico

# 你的头像url
avatar: /img/head.jpg

# 是否开启分享
share_jia: true

# 评论:1、畅言;2、Disqus;3、Gitment;4、Giteement
# 不需要使用某项,直接设置值为false,或注释掉
# 具体请参考wiki:https://github.com/JoeyBling/hexo-theme-yilia-plus/wiki

# 1、畅言
changyan_appid: false
changyan_conf: false

# 2、Disqus 在hexo根目录的config里也有disqus_shortname字段,优先使用yilia-plus的
disqus: false

# 3、Gitment----基于GitHub的评论系统(关闭请设置gitment_owner为false)
# 关于如何集成:https://www.jianshu.com/p/ac7658cc912f
gitment_owner: false      #你的 GitHub ID
# 是否使用官方js(false可以提升访问速度,本地修改过一部分的js,官方js可能会出现服务器不稳定,不太建议使用)
gitment_remote: false
gitment_repo: ''          #存储评论的 repo name(需要在Github创建)
gitment_oauth:
  client_id: ''           #client ID
  client_secret: ''       #client secret

# 4、Giteement----【国内用户建议使用这个,相对比较快】
# 关于如何集成:https://www.jianshu.com/p/f5c4633524c7
# 基于码云的评论系统(https://gitee.com/zhousiwei/giteement)
giteement:
  enable: false  # 是否启用码云评论系统
  # 是否使用官方js(false可以提升访问速度)
  remote: false
  redirect_uri: ''   # 应用回调地址(请和配置的第三方应用保持一致)
  # 不能更改(网上开源项目`https://github.com/Rob--W/cors-anywhere`作者提供的专门用来跨域服务器的配置)
  oauth_uri: https://cors-anywhere.herokuapp.com/https://gitee.com/oauth/token
  giteeID: ''  # 你的码云账号英文名
  # 存储评论的 repo name(需要在码云仓库创建公开仓库)
  repo: ''
  gitment_oauth:
    client_id: ''           #client ID
    client_secret: ''       #client secret

# 访问量统计功能(不蒜子)
busuanzi:
  enable: true
  site_visit: true  # 站点访问量显示
  article_visit: true  # 文章访问量显示

# 网易云音乐插件
music:
  enable: false
  # 播放器尺寸类型(1:长尺寸、2:短尺寸)
  type: 2
  #id: 1332647902  # 网易云分享的音乐ID(更换音乐请更改此配置项)
  autoPlay: true  # 是否开启自动播放
  # 提示文本(关闭请设置为false)
  text: '这似乎是首纯音乐,请尽情的欣赏它吧!'

# 页面点击小红心
clickLove:
  # (关闭请设置为false)
  enable: true

# GitHub Ribbons(https://github.blog/2008-12-19-github-ribbons/)
github:
  # (关闭请设置为false)
  url: https://github.com/JoeyBling/hexo-theme-yilia-plus

# 页脚 Litten(此配置项已弃用)
# 帮助我们让更多人可以更方便使用Hexo,请尽量不要修改此主题配置
pageFooter:
  litten: GitHub:<a href="https://github.com/JoeyBling/hexo-theme-yilia-plus" target="_blank">hexo-theme-yilia-plus</a>

# 开启百度站长平台自动推送(https://ziyuan.baidu.com/linksubmit/index)
baidu_push: false

# 版权声明
# 版权声明type设定:0-关闭版权声明; 1-文章对应的md文件里有copyright: true属性,才有版权声明; 2-所有文章均有版权声明
copyright_type: 2

# 网站成立年份(默认为 2018,若填入年份小于当前年份,则显示为 2018-2019 类似的格式)
since: 2018

# Progress Bar | 页面加载进度条
# Demo: http://github.hubspot.com/pace/docs/welcome/
# type: barber-shop|big-counter|bounce|center-atom|center-circle|
#       center-radar|center-simple|corner-indicator|flash|flat-top|
#       loading-bar|mac-osx|minimal
# color: black|blue|green|orange|pink|purple|red|silver|white|yellow|
progressBar:
  enable: false
  type: 'minimal'  # Keep Quotes | 保留引号避免出错(某些type会导致样式重叠排版错误)
  color: blue

# Apple Touch icon 苹果图标(关闭请设置为false)
apple_touch_icon: '/apple-touch-icon-180x180.png'

# Tab Title Change | 标签页标题切换
tab_title_change:
  enable: true
  left_tab_title: '(つェ⊂) 我藏好了哦~ '
  return_tab_title: '(*´∇`*) 被你发现啦~ '

# https://github.com/willin/hexo-wordcount
# 是否开启字数统计(关闭请设置enable为false)
# 也可以单独在md文件里Front-matter设置`no_word_count: true`属性,来自定义关闭字数统计
word_count:
  enable: true
  # 只在文章详情显示(不在首页显示)
  only_article_visit: true

# 文字输入特效
# https://github.com/disjukr/activate-power-mode
activate_power_mode:
  enable: true
  # 使输入模式丰富多彩
  colorful: true
  # 是否开启摇动
  shake: false

# 飘雪特效
# https://github.com/MlgmXyysd/snow.js
snow: false

# 看板娘动态模型插件
## https://github.com/JoeyBling/live2d-widget.js
live2d:
  # (关闭请设置为false)
  enable: false
  # 模型名称(取值请参考:https://github.com/JoeyBling/hexo-theme-yilia-plus/wiki/live2d%E6%A8%A1%E5%9E%8B%E5%8C%85%E5%B1%95%E7%A4%BA)
  model: hibiki
  display:
    position: right # 显示位置:left/right(default: 'right')
    width: 145  # 模型的长度(default: 150)
    height: 315 # 模型的高度(default: 300)
    hOffset: 50 # 水平偏移(default: 0)
    #vOffset: -20 # 垂直偏移(default: -20)
  mobile:
    show: false # 是否在移动设备上显示(default: true)
    scale: 0.6 # 移动设备上的缩放(default: 0.5)
  react:
    opacity: 0.8 # 模型透明度(default: 0.7)

# 样式定制 - 一般不需要修改,除非有很强的定制欲望…
style:
  # 头像上面的背景颜色
  # header: '#D3D1DC'
  header: '#4d4d4d'
  gif:
    # 是否启用左侧边栏动态图效果
    enable: false
    # 自定义背景图路径(默认可以不设置,提供默认背景图)
    # path: /img/biubiubiu.gif
  # 右滑板块背景
  slider: 'linear-gradient(200deg,#a0cfe4,#e8c37e)'

# slider的设置
slider:
  # 是否默认展开tags板块
  showTags: false

# 智能菜单
# 如不需要,将该对应项置为false
# 比如
#smart_menu:
#  friends: false
smart_menu:
  innerArchive: '所有文章'
  friends: '友链'
  aboutme: '关于我'

# 友情链接
friends:
  技术笔记:  #网站名称
    #网站地址
    url: https://zhousiwei.gitee.io/ibooks/
    #网站图片(可忽略不写)
    img: https://zhousiwei.gitee.io/ibooks/favicon.ico
    #网站简介(可忽略不写)
    description: 记录工作和学习过程中的笔记:Java、前端开发、Hexo博客、聚合支付、Linux笔记、ElasticSearch、ELK日志分析
  GitHub:
    url: https://github.com/JoeyBling
  码云:
    url: https://gitee.com/zhousiwei
  简书:
    url: https://www.jianshu.com/u/02cbf31a043a
  CSDN:
    url: https://blog.csdn.net/qq_30930805

# 关于我
aboutme: 主要涉及技术:<br>Java后端开发、聚合支付、<br>公众号开发、开源爱好者、Linux<br><br>联系QQ:2434387555<br><br>很惭愧<br><br>只做了一点微小的工作<br>谢谢大家

其它项目支持

捐赠

    如果感觉对您有帮助,请作者喝杯咖啡吧,请注明您的名字或者昵称,方便作者感谢o( ̄︶ ̄)o

微信 支付宝

Hexo博客优化

License

LICENSE

hexo-theme-yilia-plus's People

Contributors

joeybling avatar mlgmxyysd 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

hexo-theme-yilia-plus's Issues

反馈一个关于作者博客的问题

发现一个问题,博主你的博客刚刚打开的时候,上下滚动有很明显的掉帧的感觉,但是过一会再滑动就没有这种感觉了,大概就是头像上面的画画完以后。应该不是错觉,重复实验了好几次都是这样,也肯定不是电脑配置太低

https://zhousiwei.gitee.io/

主页没有对文章进行裁剪

❓问题

主页显示的内容应该是经过裁剪的,以“显示更多”的形式查看全文,我看到你的博客也是这样的。
但是我在使用了你的主题之后,发现主页的内容并没有按照预期的进行裁剪,排查了很久也没发现原因。

请参考:我的博客

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

请问如何设置背景图片,我想要设置一个背景图片,左面跟右面都想设置自定义图片

❓问题

我想要设置一个背景图片,如何设置啊,可以自定义设置

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

这个模板添加不了分类栏

新建一个分类的page后 在所有的文章上加上分类的标签 在主题下面的配置文件下菜单上也加上分类

结构分类页面还是空的 这个是怎么回事啊

iPad 左侧排版问题

使用iPad打开时,看不到下面的导航栏,是否可以优化下支持滚动条或者其他方式
~ 5OXXS7Q$4%UEMUF1X3$WU

复制代码块的功能

Feature Request

初级版

支持复制代码块的功能,如下图(截自csdn):
image

个人觉得这个功能还是挺重要的。

加强版

如果文章中有原创版权声明,复制时,会携带相关信息。

🙋Others

我自己也去查了下,找到的好像都是next主题的,没有yilia主题的,但是不太会转化……

参考链接

文章在首页无法折叠

❓问题

你好,想请教一下怎么样让文章在首页只显示一部分?我已经在_config里面开启了相应的功能,但是还是不行。

🐥环境 & 设置

node.js v12.16.1
Npm 6.13.4

截屏2020-04-08 上午1 07 23

hexo g打印太多yilia-plus的插件,原yilia没有,可以去掉吗?太刺眼

❓问题

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

添加标签页面无效

❓问题

添加标签页面hexo new page tags无效,网上很多都说这样就可以直接生成有标签的页面,而我的却不行;我不知道是不是我在配置的时候删除了什么文件造成的?想问下有没有人遇到过同样的问题?

🤔结果 & 预期

结果

在执行hexo g后生成的\public\tags\index.html文件中却没有标签的相关内容(注:已有文章中存在有tag属性),所以显示的压根就只是一个空白页(如下图):
image

和tags页面一样,categories页面也显示不出来。


而对于归档: /archives页面好像只需要在配置文件中开启设置就可以了(这个功能好像内置了),查看了下source目录是没有/archives目录,而public\archives\index.html里面却是有归档内容,所以归档页面可以显示归档信息。

预期

标签页面能够正常显示,就和归档页面一样。
image
Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

$ node -v
v10.16.0

$ npm -v
6.9.0

Your theme _config.yml (Optional)

添加标签页面hexo new page tags,会在生成\source\tags\index.md文件,编辑的内容为:

---
title: tags
date: 2019-07-30 10:11:45
type: tags
comments: false
---

同时在配置文件\themes\yilia\_config.yml中设置:

menu:
  主页: /
  #随笔: /tags/随笔/
  分类: /categories
  归档: /archives
  相册: /photos
  标签: /tags

🙋Others

将hexo的math引擎换成mathjax后,编译报错

按照网上的教程将hexo的引擎换成mathjax后,编译报错。

教程如下:https://www.jianshu.com/p/e8d433a2c5b7

🤔结果 & 预期

引擎换成mathjax(kramed替换marked,改变两条转义规则)后,hexo -s g报错:
SyntaxError: Invalid or unexpected token in "/Users/用户名/hexo/themes/yilia-plus/layout/layout.ejs"
at new Function ()
at exports.compile (/Users/用户名/hexo/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:242:14)
at Object.exports.render (/Users/用户名/hexo/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:284:66)
at Hexo. (/Users/用户名/hexo/node_modules/hexo-renderer-mathjax/index.js:14:24)
at Hexo.tryCatcher (/Users/用户名/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.ret (eval at makeNodePromisifiedEval (/usr/local/lib/node_modules/用户名/node_modules/bluebird/js/release/promisify.js:184:12), :13:39)

ps:换成别的主题没什么问题,可以正常编译和生成,显示数学公式。望解决一下,感谢!!!

🐥环境 & 设置

Node.js & npm version

node.js V12.8.1
[email protected]

Fork me的链接在哪个文件或配置?

❓问题

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

文章如何显示部分内容

❓问题

我在 Hexo 博客中应用该主题后,文章列表中,文章过长,没有收缩。地址:h ttps://warmfrog.github.io. 主题配置中的 excerpt_link: more 好像没起作用

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

返回顶部的图标不显示

❓问题

返回顶部的图标不显示

你好,今天使用了这个theme,但是发现返回顶部的图标无法显示,请问这个什么原因呢?

🤔结果 & 预期

还望楼主能够看看,帮助我解决下

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

文章内分页

是否可以考虑加一个文章内分页的功能呢?
当文章很长的时候,页面加载会变慢(尤其是公式很多的时候),而且也不方便其他人保存阅读进度。
比如文章有十章,可以每一章分一个页面(在文章底部有页面选项),比如可以以<!-- page -->作为页面分隔。(不知道能不能实现,我猜想的。)

请问代码块背景颜色是在哪改?

❓问题

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

Gitee 显示Error: 404 Project Not Found

❓问题

我的gitee配置好了之后在上方显示Error: 404 Project Not Found,请问是不是有什么地方配置除了问题?登录是可以登陆的,但是无法评论,点击Issue Page 是显示Github 的Page not found

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

建议添加的功能

Feature Request

  1. 各种类型的代码块语法高亮,手机端设置超长代码不超出屏幕(即超出可以显示向右滑动框)。
  2. 优化“代码块的行数在屏幕变小时会发生错乱(如手机端)”问题。
  3. 能否优化文中超链接的样式?

🙋Others

新功能:文章禁止复制

提一个功能需求:新增一个禁止文章复制的功能,类似于知乎的一些回答,连续复制不能超过15个字好像

文章的分类和标签创建后不会归类

❓问题

创建了categories 和tags然后其下面的index.md也做了相应设置,发表的文章添加了不同的标签和分类,点击分类或标签页面是空的

🤔结果 & 预期

分类下应该会统计有几个分类,标签下应该会显示几个标签

🙋Others

categories/index.md
---
title: 分类
date: 2019-08-22 21:24:05
type: "categories"
layout: "categories"
---

post文章
---
title: reat入门
tags: 
- react 
categories: 
- react
---
react文章

修改建议:为“版权声明”添加背景,以区分正文

Feature Request

为“版权声明”添加样式,,可参考这个样式:

yilia/source/main.0cf68a.css 添加如下代码:

.declare {
  background-color: #eaeaea;
  margin-top: 2em;
  border-left: 3px solid #ff1700;
  padding: .5em 1em; }

效果图参考:

效果图

🙋Others

上一页和下一页的问题

❓问题

分页的按钮,总是渲染不出来大概是这样子
image

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

npm -v 6.11.3
Node.js -v v12.12.0.

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

添加了内容如何重新编译项目

❓问题

首先很抱歉, 因为我希望按自己的想法定制一下主题, 所以被迫需要修改大佬的代码里的source-src/js/main.js文件, 请问题修改了文件后怎么才能生效?

因为我想在blog中添加 有分类层次结构, 所以引入了hexo-plugin-hierarchy-category 插件。
因此需要在项目中的source-src/js/main.js 文件添加如下代码:

import getHCateHelpers from "hexo-plugin-hierarchy-category";
const util = getHCateHelpers(hexo);

🤔结果 & 预期

希望分类页能展示分类层次结构

🐥环境 & 设置

Node.js & npm version

$ npm -v
6.14.4
$ node -v
v13.14.0

Your OSes (Optional)

macos 15

yilia_plus_full_url 对 https未处理

❓问题

.config.yml 里 url 的schema如果是https,yilia_plus_full_url 生成的结果是错的。
假如url里配置的是: https://aaa.github.io
最后生成的是: https:/aaa.github.io/

具体原因是 scripts/helpers/yilia-plus-vendors.js 里的这段代码,在最后替换的时候并未将https考虑进去

  let fullUrl = (blogUrl + url).replace(/(\\|\/){2,}/g, '/')
    .replace(/((ht|f)tp\:(\\|\/)+)/ig, 'http://');

🤔结果 & 预期

预期生成结果是: https://aaa.github.io/

Process failed: layout/_partial/post/date.ejs

❓问题

hexo -s css格式错误

at Theme._View.View.View._precompile (D:\blog\node_modules\hexo\lib\theme\view.js:119:29)
at Theme._View.View.View (D:\blog\node_modules\hexo\lib\theme\view.js:13:8)
at new Theme._View.View (D:\blog\node_modules\hexo\lib\theme\index.js:37:10)
at Theme.setView (D:\blog\node_modules\hexo\lib\theme\index.js:71:20)
at D:\blog\node_modules\hexo\lib\theme\processors\view.js:14:14
at tryCatcher (D:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\blog\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\blog\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\blog\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\blog\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\blog\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (D:\blog\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (D:\blog\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (D:\blog\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\blog\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\blog\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\blog\node_modules\bluebird\js\release\promise.js:638:18)
at D:\blog\node_modules\bluebird\js\release\nodeback.js:42:21
at D:\blog\node_modules\graceful-fs\graceful-fs.js:78:16

ERROR Process failed: layout/_partial/tools.ejs
SyntaxError: Invalid or unexpected token in "D:\blog\themes\yilia-plus\layout\_partial\tools.ejs"
at new Function ()
at Object.exports.compile (D:\blog\node_modules\ejs\lib\ejs.js:242:14)
at Function.ejsRenderer.compile (D:\blog\node_modules\hexo-renderer-ejs\lib\renderer.js:11:14)
at Theme._View.View.View._precompile (D:\blog\node_modules\hexo\lib\theme\view.js:119:29)
at Theme._View.View.View (D:\blog\node_modules\hexo\lib\theme\view.js:13:8)
at new Theme._View.View (D:\blog\node_modules\hexo\lib\theme\index.js:37:10)
at Theme.setView (D:\blog\node_modules\hexo\lib\theme\index.js:71:20)
at D:\blog\node_modules\hexo\lib\theme\processors\view.js:14:14
at tryCatcher (D:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\blog\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\blog\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\blog\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\blog\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\blog\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (D:\blog\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (D:\blog\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (D:\blog\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\blog\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\blog\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\blog\node_modules\bluebird\js\release\promise.js:638:18)
at D:\blog\node_modules\bluebird\js\release\nodeback.js:42:21
at D:\blog\node_modules\graceful-fs\graceful-fs.js:78:16
ERROR Process failed: layout/_partial/post/date.ejs
SyntaxError: Invalid or unexpected token in "D:\blog\themes\yilia-plus\layout\_partial\post\date.ejs"
at new Function ()
at Object.exports.compile (D:\blog\node_modules\ejs\lib\ejs.js:242:14)
at Function.ejsRenderer.compile (D:\blog\node_modules\hexo-renderer-ejs\lib\renderer.js:11:14)
at Theme._View.View.View._precompile (D:\blog\node_modules\hexo\lib\theme\view.js:119:29)
at Theme._View.View.View (D:\blog\node_modules\hexo\lib\theme\view.js:13:8)
at new Theme._View.View (D:\blog\node_modules\hexo\lib\theme\index.js:37:10)
at Theme.setView (D:\blog\node_modules\hexo\lib\theme\index.js:71:20)
at D:\blog\node_modules\hexo\lib\theme\processors\view.js:14:14
at tryCatcher (D:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\blog\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\blog\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\blog\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\blog\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\blog\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (D:\blog\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (D:\blog\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (D:\blog\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\blog\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\blog\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (D:\blog\node_modules\bluebird\js\release\promise.js:638:18)
at D:\blog\node_modules\bluebird\js\release\nodeback.js:42:21
at D:\blog\node_modules\graceful-fs\graceful-fs.js:78:16
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)

🐥环境 & 设置

Node.js & npm version

Your site _config.yml (Optional)

Your theme _config.yml (Optional)

Your browsers (Optional)

The browser you use

Your OSes (Optional)

what platforms (operating systems and devices) are affected?

🙋Others

修改建议:“9.添加百度站长平台主动推送”

🙋Others

  1. 你这里的百度推送方式应该是“自动推送”,不是主动推送,具体可参考:https://ziyuan.baidu.com/college/articleinfo?id=1504

  2. 百度推送的四种方式:
    muPev4.jpg

  3. 推荐

(1)主动推送:使用hexo-baidu-url-submit插件,github: https://github.com/huiwang/hexo-baidu-url-submit

(2)sitemap:使用 hexo generator-baidu-sitemap插件,github:https://github.com/coneycode/hexo-generator-baidu-sitemap

你好,请问为什么邮箱不能打开呢

❓问题

你好,我在使用这个主题的时候,在subNav中去掉了email的#,其他什么也没有动。然后我hexo clean,hexo g,hexo s
本地访问4000端口,点击了邮箱的图标,
结果却提示Cannot GET /mailto:[email protected]

🤔结果 & 预期

Please describe what you expected to see.(请描述一下你希望看到什么)
我希望能正常的打开邮箱的软件

🐥环境 & 设置

Node.js & npm version
$ node -v
v10.16.0

```$ bash --version
bash --version
GNU bash, version 4.4.19(2)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


**Your browsers** (Optional)

> The browser you use
ie edge
chrome

自定义copyright

Feature Request

yilia原来的declare_type字段没了,换成的写死的Apache协议,希望添加回来

关于童鞋反映的问题、配置如何解决及原因

Hexo及主题相关问题

推荐使用Hexo版本:3.9.0

关于菜单及其他按钮点击会弹出新的窗口 #35

    • 是否在新版本已修复

解决办法如下(原因:hexo版本过高,降低版本):博客根目录执行

npm uninstall hexo --save
npm install [email protected] --save

降低版本后需注释或删除博客根目录_config.yml文件的includeexcludeignore配置

  • 一定要全部注释,不然会出现网站无法访问
    image

用git管理博客的本地文件自后仓库出现dependence alerts

❓问题

你好,我在用git管理博客的本地文件之后,github的仓库出现alerts。我的具体做法是:

  1. 在repository里面创建一个新的branch并设置为default,然后clone到本地;
  2. 删除除 .git 文件以外的所有文件,并把原来博客本地文件夹里面的东西全部复制过来,提交commit之后出现alters,theme文件里面的.git文件在合并之前已删除。
  3. alerts指向 .../yilia-plus/package-lock.json

截屏2020-06-07 上午11 01 41

🐥环境 & 设置

Node.js & npm version

node: v12.16.1
npm 6.13.4

🙋Others

我用 npm ls minimist 查看了一下 minimist的依赖关系,发现有好几层,不知该怎么操作?
截屏2020-06-07 上午11 07 03

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.