doc: add kramed setting in main configuration

This commit is contained in:
Leon Xu committed 2022-03-09 11:42:31 -08:00
1 parent 9464934678
commit 0f77e07a90
1 file changed
+29 -27
+29 -27
View File
@@ -4,14 +4,14 @@
# Site
title: Leon的技术阁
subtitle: '一个专注于分享科技和技术的博客'
description: '保持与时俱进。不断学习!'
subtitle: "一个专注于分享科技和技术的博客"
description: "保持与时俱进。不断学习!"
keywords: Leon成为软件工程师的道路
author: Leon Xu
language:
- zh-CN
- en
timezone: 'America/Los_Angeles'
language:
- zh-CN
- en
timezone: "America/Los_Angeles"
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
@@ -20,21 +20,21 @@ permalink: posts/:abbrlink/
permalink_defaults:
permalink_pinyin:
enable: true
separator: ''
separator: ""
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
abbrlink:
alg: crc32 #support crc16(default) and crc32
rep: hex #support dec(default) and hex
drafts: false #(true)Process draft,(false)Do not process draft. false(default)
alg: crc32 #support crc16(default) and crc32
rep: hex #support dec(default) and hex
drafts: false #(true)Process draft,(false)Do not process draft. false(default)
# Generate categories from directory-tree
# depth: the max_depth of directory-tree you want to generate, should > 0
auto_category:
enable: true #true(default)
depth: #3(default)
over_write: false
enable: true #true(default)
depth: #3(default)
over_write: false
auto_title: false #enable auto title, it can auto fill the title by path
auto_date: false #enable auto date, it can auto fill the date by time today
force: false #enable force mode,in this mode, the plugin will ignore the cache, and calc the abbrlink for every post even it already had abbrlink.
@@ -56,7 +56,7 @@ titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
exclude: ""
filename_case: 0
render_drafts: false
post_asset_folder: true
@@ -66,21 +66,21 @@ highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
tab_replace: ""
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
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: ''
path: ""
per_page: 10
order_by: -date
@@ -100,7 +100,7 @@ meta_generator: true
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'date'
updated_option: "date"
# Pagination
## Set per_page to 0 to disable pagination
@@ -121,7 +121,7 @@ theme: butterfly
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
- type: 'sftp'
- type: "sftp"
host: server281.web-hosting.com
user: angumrdk
pass: ***REMOVED-OLD-SFTP-PASSWORD***
@@ -140,13 +140,15 @@ tag_plugins:
issues: https://cdn.jsdelivr.net/npm/hexo-theme-volantis@latest/source/js/issues.min.js #issues标签依赖
iconfont: https://at.alicdn.com/t/font_2032782_8d5kxvn09md.js #参看https://akilar.top/posts/d2ebecef/
markdown:
plugins:
- plugin:
name: '@neilsustc/markdown-it-katex'
options:
strict: false
kramed:
gfm: true
pedantic: false
sanitize: false
tables: true
breaks: true
smartLists: true
smartyants: true
# Envelope Comment
envelope_comment:
enable: true #开关
@@ -183,4 +185,4 @@ baidu_url_submit:
count: 100
host: https://www.angulareportfolio.pw
token: 2oCc5GExCyIadjyK
path: baidu_urls.txt
path: baidu_urls.txt