[fix] replace symbol
This commit is contained in:
parent
af9bc5342a
commit
1a71b79a45
22
_config.yml
22
_config.yml
|
@ -21,9 +21,9 @@ open_graph:
|
||||||
######## Sidebar ########
|
######## Sidebar ########
|
||||||
# 左上角显示的 logo 区域,包含图标、大标题、副标题
|
# 左上角显示的 logo 区域,包含图标、大标题、副标题
|
||||||
logo:
|
logo:
|
||||||
avatar: '[${config.avatar}](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)'
|
avatar: '[{config.avatar}](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)'
|
||||||
title: '[${config.title}](/)' # you can set html tag like: '[<img no-lazy height="32px" src="xxx"/>](/)'
|
title: '[{config.title}](/)' # you can set html tag like: '[<img no-lazy height="32px" src="xxx"/>](/)'
|
||||||
subtitle: '${config.subtitle}' # '文字1 | 文字2' (鼠标放上去会切换到文字2)
|
subtitle: '{config.subtitle}' # '文字1 | 文字2' (鼠标放上去会切换到文字2)
|
||||||
|
|
||||||
# 侧边栏主功能导航菜单
|
# 侧边栏主功能导航菜单
|
||||||
menubar:
|
menubar:
|
||||||
|
@ -282,7 +282,7 @@ footer:
|
||||||
# - '[关于本站](/)'
|
# - '[关于本站](/)'
|
||||||
# - '[GitHub](/)'
|
# - '[GitHub](/)'
|
||||||
content: | # 支持 Markdown 格式
|
content: | # 支持 Markdown 格式
|
||||||
本站由 [${author.name}](/) 使用 [${theme.name} ${theme.version}](${theme.tree}) 主题创建。
|
本站由 [{author.name}](/) 使用 [{theme.name} {theme.version}]({theme.tree}) 主题创建。
|
||||||
本博客所有文章除特别声明外,均采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议,转载请注明出处。
|
本博客所有文章除特别声明外,均采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议,转载请注明出处。
|
||||||
# 主题用户越多,开发者维护和更新的积极性就越高,如果您喜欢本主题,请在适当的位置显示主题信息和仓库链接以表支持。
|
# 主题用户越多,开发者维护和更新的积极性就越高,如果您喜欢本主题,请在适当的位置显示主题信息和仓库链接以表支持。
|
||||||
|
|
||||||
|
@ -307,12 +307,12 @@ tag_plugins:
|
||||||
prefix: ph:seal-question-fill
|
prefix: ph:seal-question-fill
|
||||||
# {% emoji %}
|
# {% emoji %}
|
||||||
emoji:
|
emoji:
|
||||||
default: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
|
default: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/{name}.gif
|
||||||
twemoji: https://gcore.jsdelivr.net/gh/twitter/twemoji/assets/svg/${name}.svg
|
twemoji: https://gcore.jsdelivr.net/gh/twitter/twemoji/assets/svg/{name}.svg
|
||||||
qq: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/${name}.gif
|
qq: https://gcore.jsdelivr.net/gh/cdn-x/emoji/qq/{name}.gif
|
||||||
aru: https://gcore.jsdelivr.net/gh/cdn-x/emoji/aru-l/${name}.gif
|
aru: https://gcore.jsdelivr.net/gh/cdn-x/emoji/aru-l/{name}.gif
|
||||||
tieba: https://gcore.jsdelivr.net/gh/cdn-x/emoji/tieba/${name}.png
|
tieba: https://gcore.jsdelivr.net/gh/cdn-x/emoji/tieba/{name}.png
|
||||||
blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/${name}.png
|
blobcat: https://gcore.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs/{name}.png
|
||||||
icon:
|
icon:
|
||||||
# 留空时,图标和文字颜色相同
|
# 留空时,图标和文字颜色相同
|
||||||
default_color: accent # theme, accent, red, orange, yellow, green, cyan, blue, purple
|
default_color: accent # theme, accent, red, orange, yellow, green, cyan, blue, purple
|
||||||
|
@ -377,7 +377,7 @@ data_services:
|
||||||
siteinfo:
|
siteinfo:
|
||||||
js: /js/services/siteinfo.js
|
js: /js/services/siteinfo.js
|
||||||
# 设置 api 可以自动提取网页标题、图标,服务部署方法:https://github.com/xaoxuu/site-info-api/
|
# 设置 api 可以自动提取网页标题、图标,服务部署方法:https://github.com/xaoxuu/site-info-api/
|
||||||
# 接口测试通过后,把按钮的 href 部分替换成 ${href} 之后填写到下方,例如:https://api.vlts.cc/site_info/v1?url=${href}
|
# 接口测试通过后,把按钮的 href 部分替换成 {href} 之后填写到下方,例如:https://api.vlts.cc/site_info/v1?url={href}
|
||||||
api:
|
api:
|
||||||
ghinfo:
|
ghinfo:
|
||||||
js: /js/services/ghinfo.js
|
js: /js/services/ghinfo.js
|
||||||
|
|
|
@ -64,7 +64,7 @@ function layoutDiv() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (author) {
|
if (author) {
|
||||||
license = license.replace('${author.name}', author.name).replace('${author.url}', author.url)
|
license = license.replace('{author.name}', author.name).replace('{author.url}', author.url)
|
||||||
}
|
}
|
||||||
el += `
|
el += `
|
||||||
<section id="license">
|
<section id="license">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<%
|
<%
|
||||||
const content = theme.footer.content?.replace('${author.name}', (config.author || 'Anonymity'))?.replace('${theme.name}', stellar_info('name'))?.replace('${theme.version}', stellar_info('version'))?.replace('${theme.tree}', stellar_info('tree'))
|
const content = theme.footer.content?.replace('{author.name}', (config.author || 'Anonymity'))?.replace('{theme.name}', stellar_info('name'))?.replace('{theme.version}', stellar_info('version'))?.replace('{theme.tree}', stellar_info('tree'))
|
||||||
function layoutDiv() {
|
function layoutDiv() {
|
||||||
var el = ''
|
var el = ''
|
||||||
el += `<footer class="page-footer${scrollreveal(' ')} footnote">`
|
el += `<footer class="page-footer${scrollreveal(' ')} footnote">`
|
||||||
|
|
|
@ -10,9 +10,9 @@ hexo.extend.helper.register('md_text', function(args) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
const { config } = hexo
|
const { config } = hexo
|
||||||
args = args.replace('${config.title}', config.title)
|
args = args.replace('{config.title}', config.title)
|
||||||
args = args.replace('${config.subtitle}', config.subtitle)
|
args = args.replace('{config.subtitle}', config.subtitle)
|
||||||
args = args.replace('${config.avatar}', config.avatar)
|
args = args.replace('{config.avatar}', config.avatar)
|
||||||
let tmp = args.split('](')
|
let tmp = args.split('](')
|
||||||
if (tmp.length > 1) {
|
if (tmp.length > 1) {
|
||||||
tmp = tmp[0]
|
tmp = tmp[0]
|
||||||
|
|
|
@ -27,7 +27,7 @@ module.exports = ctx => function(args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (config[args.source] && args.name) {
|
if (config[args.source] && args.name) {
|
||||||
let url = config[args.source].replace('${name}', args.name)
|
let url = config[args.source].replace('{name}', args.name)
|
||||||
el += '<img no-lazy="" class="inline"'
|
el += '<img no-lazy="" class="inline"'
|
||||||
el += ' src="' + url + '"'
|
el += ' src="' + url + '"'
|
||||||
if (args.height) {
|
if (args.height) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ module.exports = ctx => function(args) {
|
||||||
const url = full_url_for(args.url)
|
const url = full_url_for(args.url)
|
||||||
args.api = ctx.theme.config.data_services.siteinfo?.api
|
args.api = ctx.theme.config.data_services.siteinfo?.api
|
||||||
if (args.api) {
|
if (args.api) {
|
||||||
args.api = args.api.replace('${href}', url)
|
args.api = args.api.replace('{href}', url)
|
||||||
}
|
}
|
||||||
var autofill = []
|
var autofill = []
|
||||||
if (!args.title) {
|
if (!args.title) {
|
||||||
|
|
Loading…
Reference in New Issue