hexo-theme-ace配置

Posted by アライさん on 2019年10月21日

hexo-theme-ace主题 _config.yml

头像图片位置: themes/ace/source/img/avatar/logo.png
回到顶部图片位置:themes/ace/source/css/images/ironman.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
highlight_theme: normal
#header decoration
slideshow: false
ribban_bg: false
particle_bg: true

bootstrapJS_CDN: https://cdn.staticfile.org/twitter-bootstrap/3.4.1/js/bootstrap.min.js
bootstrapCSS_CDN: https://cdn.staticfile.org/twitter-bootstrap/3.4.1/css/bootstrap.min.css
jquery_CDN: https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js

sidebar: true # whether or not using Sidebar.
sidebar-about-description: "アライさん なのだ"
sidebar-avatar: /img/avatar/logo.png # use absolute URL, seeing it's used in both `/` and `/about/`
widgets:
- short-about
- featured-tags
- recent-posts


archives-img: /img/header_img/archives-widget.jpg
archive_type: 'monthly'
show_count: true
featured-tags: true # whether or not using Feature-Tags
featured-condition-size: 0 # A tag will be featured if the size of it is more than this condition value


navmenu: [
{
title: "Tags",
url: https://araisann.github.io/tags/,
}
]
sticky_tag: "Sticky"

ba_track_id:
ga_track_id: # Format: UA-xxxxxx-xx
ga_domain:


share: false
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`



enable_valine: false
leancloud_appid: ''
leancloud_appkey: ''
enable_leancounter: true

正文笔记双滚轮导致滚动不畅顺的解决办法

经查看源码,是正文底下的tags导致的。
顶部已经有tags,底部可以不需要。
themes/ace/layout/post.ejs中,删除Sidebar Container有关代码

解决首页,笔记略缩内容,有一串数字超过到右侧的问题

经查看源码,是代码块自动填充行号。
略缩内容,是去掉html标签后的文本。
导致取出一串行号,div标签显示时,行号不自动换行。
themes/ace/layout/index.ejs中,找到2处
<div class="post-content-preview">
添加样式
style="word-break: break-all;word-wrap: break-word;"