Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
5ac8f520
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5ac8f520
编写于
7月 18, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: Change the word break of link in post
上级
935ada30
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
41 addition
and
0 deletion
+41
-0
docs/zh-CN/advanced/theme-config.md
docs/zh-CN/advanced/theme-config.md
+27
-0
source/css/_common/main.styl
source/css/_common/main.styl
+14
-0
未找到文件。
docs/zh-CN/advanced/theme-config.md
浏览文件 @
5ac8f520
...
...
@@ -789,3 +789,30 @@ tag_cloud:
如果你想修改主题的样式,强烈推荐将样式代码写在 `source/css/_custom` 目录下的 `index.styl` 文件中。这样,当主题更新时,不会覆盖你已经修改了的样式代码。
当然,你也可以进行模块化分类:在该目录下新建样式文件,然后通过 `@import xxx` 语句在同目录下的 `index.styl` 文件中引入你新建的样式文件即可。
### 添加 Emoji 支持
如果想要使用 Emoji,你可以直接在[这里](http://emojihomepage.com/)复制粘贴使用。如果你更喜欢使用 Emoji 代码,例如:`:sparkles:` 将会显示为 :sparkles:, 那么你需要安装插件 [hexo-filter-github-emojis](https://github.com/crimx/hexo-filter-github-emojis) 来支持这种语法。
安装这个插件,请在 hexo 根目录下,执行指令:
```
bash
$ npm install hexo-filter-github-emojis --save
```
如果你不喜欢 `::` 的语法,你可以使用下面这种方法代替:
```
text
{% github_emoji sparkles %}
```
如果你需要某个 markdown 文件不解析这种语法,可以在 markdown 文件里的 `front-matter` 中,设置 `no-emoji: true`。这样 `::` 会保持原来的样子。
```
yaml
---
title
:
Hello World
no-emoji
:
true
---
```
有关该插件的更详尽的用法,请自行查阅其[文档](https://github.com/crimx/hexo-filter-github-emojis)。查看所有支持的 Emoji 请访问:[Github Emojis API](https://api.github.com/emojis) 或者 [Emoji Cheat Sheet](http://www.webpagefx.com/tools/emoji-cheat-sheet/)。
source/css/_common/main.styl
浏览文件 @
5ac8f520
...
...
@@ -20,6 +20,20 @@ if (hexo-config('sidebar.enable'))
$content-position
float: left
if (hexo-config('word_wrap.link'))
$link-word-wrap
white-space: normal
word-break: break-all
else
$link-word-wrap
white-space: normal
word-break: normal
.home-content,
.main-content,
.main-content-layout
@extend $link-word-wrap
.home-content
font-size: $font-main-base
@extend $content-position
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录