fix new theme config
This commit is contained in:
parent
3e2694a95a
commit
331df6a874
41
config.yaml
41
config.yaml
@ -134,25 +134,24 @@ params:
|
|||||||
id:
|
id:
|
||||||
|
|
||||||
widgets:
|
widgets:
|
||||||
enabled:
|
homepage:
|
||||||
- categories
|
- type: search
|
||||||
- search
|
- type: archives
|
||||||
- tag-cloud
|
params:
|
||||||
- archives
|
limit: 5
|
||||||
- status
|
- type: categories
|
||||||
|
params:
|
||||||
|
limit: 10
|
||||||
|
- type: tag-cloud
|
||||||
|
params:
|
||||||
|
limit: 10
|
||||||
|
- type: status
|
||||||
|
params:
|
||||||
|
start: 2018-08-04
|
||||||
|
format: yyyy 年 MM 月 dd 日
|
||||||
|
|
||||||
categoriesCloud:
|
page:
|
||||||
limit: 20
|
- type: toc
|
||||||
|
|
||||||
archives:
|
|
||||||
limit: 5
|
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
limit: 10
|
|
||||||
|
|
||||||
status:
|
|
||||||
start: 2018-08-04
|
|
||||||
format: yyyy 年 MM 月 dd 日
|
|
||||||
|
|
||||||
opengraph:
|
opengraph:
|
||||||
twitter:
|
twitter:
|
||||||
@ -249,5 +248,11 @@ markup:
|
|||||||
startLevel: 2
|
startLevel: 2
|
||||||
highlight:
|
highlight:
|
||||||
noClasses: false
|
noClasses: false
|
||||||
|
codeFences: true
|
||||||
|
guessSyntax: true
|
||||||
|
lineNoStart: 1
|
||||||
|
lineNos: true
|
||||||
|
lineNumbersInTable: true
|
||||||
|
tabWidth: 4
|
||||||
|
|
||||||
disqusShortname: taurusxin
|
disqusShortname: taurusxin
|
||||||
|
@ -6,5 +6,5 @@ widget:
|
|||||||
status:
|
status:
|
||||||
title: 状态
|
title: 状态
|
||||||
postCount: 文章数量
|
postCount: 文章数量
|
||||||
start: 博客起始
|
start: 博客始于
|
||||||
time: 稳定运行
|
time: 稳定运行
|
@ -1,14 +0,0 @@
|
|||||||
<section class="widget tagCloud">
|
|
||||||
<div class="widget-icon">
|
|
||||||
{{ partial "helper/icon" "categories" }}
|
|
||||||
</div>
|
|
||||||
<h2 class="widget-title section-title">{{ T "widget.categoriesCloud.title" }}</h2>
|
|
||||||
|
|
||||||
<div class="tagCloud-tags">
|
|
||||||
{{ range first .Site.Params.widgets.categoriesCloud.limit .Site.Taxonomies.categories.ByCount }}
|
|
||||||
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
|
|
||||||
{{ .Page.Title }}
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
@ -1,7 +1,7 @@
|
|||||||
{{/*-- post count */}} {{ $posts := (where .Site.RegularPages "Section" "==" "post") }} {{
|
{{/*-- post count */}} {{ $posts := (where .Context.Site.Pages "Section" "==" "post") }}
|
||||||
$postCount := len $posts }}
|
{{ $postCount := len $posts }}
|
||||||
|
|
||||||
<section class="widget archives">
|
<section class="widget archives" style="padding-bottom: 45px;">
|
||||||
<div class="widget-icon">{{ partial "helper/icon" "status" }}</div>
|
<div class="widget-icon">{{ partial "helper/icon" "status" }}</div>
|
||||||
<h2 class="widget-title section-title">{{ T "widget.status.title" }}</h2>
|
<h2 class="widget-title section-title">{{ T "widget.status.title" }}</h2>
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ $postCount := len $posts }}
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let start = new Date({{ .Site.Params.widgets.status.start }})
|
let start = new Date({{ .Params.start }})
|
||||||
let startFormated = start.format({{ .Site.Params.widgets.status.format }})
|
let startFormated = start.format({{ .Params.format }})
|
||||||
document.querySelector('#start').innerHTML = startFormated
|
document.querySelector('#start').innerHTML = startFormated
|
||||||
start.setMonth(start.getMonth() - 1)
|
start.setMonth(start.getMonth() - 1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user