mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13:31 +08:00
Merge branch 'master' into feat/update-i18n-pt-BR
This commit is contained in:
commit
83bfc396c5
147
config.yaml
Normal file
147
config.yaml
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
module:
|
||||||
|
hugoVersion:
|
||||||
|
extended: true
|
||||||
|
min: "0.87.0"
|
||||||
|
|
||||||
|
params:
|
||||||
|
mainSections:
|
||||||
|
- post
|
||||||
|
featuredImageField: image
|
||||||
|
rssFullContent: true
|
||||||
|
favicon:
|
||||||
|
|
||||||
|
footer:
|
||||||
|
since:
|
||||||
|
customText:
|
||||||
|
|
||||||
|
dateFormat:
|
||||||
|
published: Jan 02, 2006
|
||||||
|
lastUpdated: Jan 02, 2006 15:04 MST
|
||||||
|
|
||||||
|
sidebar:
|
||||||
|
emoji:
|
||||||
|
subtitle:
|
||||||
|
avatar:
|
||||||
|
enabled: true
|
||||||
|
local: true
|
||||||
|
src: img/avatar.png
|
||||||
|
|
||||||
|
article:
|
||||||
|
math: false
|
||||||
|
toc: true
|
||||||
|
readingTime: true
|
||||||
|
license:
|
||||||
|
enabled: false
|
||||||
|
default: Licensed under CC BY-NC-SA 4.0
|
||||||
|
|
||||||
|
comments:
|
||||||
|
enabled: false
|
||||||
|
provider: disqus
|
||||||
|
|
||||||
|
disqusjs:
|
||||||
|
shortname:
|
||||||
|
apiUrl:
|
||||||
|
apiKey:
|
||||||
|
admin:
|
||||||
|
adminLabel:
|
||||||
|
|
||||||
|
utterances:
|
||||||
|
repo:
|
||||||
|
issueTerm: pathname
|
||||||
|
label:
|
||||||
|
|
||||||
|
remark42:
|
||||||
|
host:
|
||||||
|
site:
|
||||||
|
locale:
|
||||||
|
|
||||||
|
vssue:
|
||||||
|
platform:
|
||||||
|
owner:
|
||||||
|
repo:
|
||||||
|
clientId:
|
||||||
|
clientSecret:
|
||||||
|
autoCreateIssue: false
|
||||||
|
|
||||||
|
# Waline client configuration see: https://waline.js.org/en/reference/client.html
|
||||||
|
waline:
|
||||||
|
serverURL:
|
||||||
|
lang:
|
||||||
|
visitor:
|
||||||
|
avatar:
|
||||||
|
emoji:
|
||||||
|
- https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo
|
||||||
|
requiredMeta:
|
||||||
|
- name
|
||||||
|
- email
|
||||||
|
- url
|
||||||
|
placeholder:
|
||||||
|
locale:
|
||||||
|
admin: Admin
|
||||||
|
|
||||||
|
twikoo:
|
||||||
|
envId:
|
||||||
|
region:
|
||||||
|
path:
|
||||||
|
lang:
|
||||||
|
|
||||||
|
giscus:
|
||||||
|
repo:
|
||||||
|
repoID:
|
||||||
|
category:
|
||||||
|
categoryID:
|
||||||
|
mapping:
|
||||||
|
lightTheme:
|
||||||
|
darkTheme:
|
||||||
|
reactionsEnabled: 1
|
||||||
|
emitMetadata: 0
|
||||||
|
|
||||||
|
gitalk:
|
||||||
|
owner:
|
||||||
|
admin:
|
||||||
|
repo:
|
||||||
|
clientID:
|
||||||
|
clientSecret:
|
||||||
|
|
||||||
|
cusdis:
|
||||||
|
host:
|
||||||
|
id:
|
||||||
|
|
||||||
|
widgets:
|
||||||
|
enabled:
|
||||||
|
- search
|
||||||
|
- archives
|
||||||
|
- tag-cloud
|
||||||
|
|
||||||
|
archives:
|
||||||
|
limit: 5
|
||||||
|
|
||||||
|
tagCloud:
|
||||||
|
limit: 10
|
||||||
|
|
||||||
|
opengraph:
|
||||||
|
twitter:
|
||||||
|
# Your Twitter username
|
||||||
|
site:
|
||||||
|
|
||||||
|
# Available values: summary, summary_large_image
|
||||||
|
card: summary_large_image
|
||||||
|
|
||||||
|
defaultImage:
|
||||||
|
opengraph:
|
||||||
|
enabled: false
|
||||||
|
local: false
|
||||||
|
src:
|
||||||
|
|
||||||
|
colorScheme:
|
||||||
|
# Display toggle
|
||||||
|
toggle: true
|
||||||
|
|
||||||
|
# Available values: auto, light, dark
|
||||||
|
default: auto
|
||||||
|
|
||||||
|
imageProcessing:
|
||||||
|
cover:
|
||||||
|
enabled: true
|
||||||
|
content:
|
||||||
|
enabled: true
|
@ -29,7 +29,7 @@
|
|||||||
{{ define "left-sidebar" }}
|
{{ define "left-sidebar" }}
|
||||||
{{ if (.Scratch.Get "hasTOC") }}
|
{{ if (.Scratch.Get "hasTOC") }}
|
||||||
<div id="article-toolbar">
|
<div id="article-toolbar">
|
||||||
<a href="{{ .Site.BaseURL }}" class="back-home">
|
<a href="{{ .Site.BaseURL | relLangURL }}" class="back-home">
|
||||||
{{ (resources.Get "icons/back.svg").Content | safeHTML }}
|
{{ (resources.Get "icons/back.svg").Content | safeHTML }}
|
||||||
<span>{{ T "article.back" }}</span>
|
<span>{{ T "article.back" }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1 class="site-name"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
<h1 class="site-name"><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a></h1>
|
||||||
<h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
|
<h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -39,7 +39,7 @@
|
|||||||
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
|
{{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
|
||||||
|
|
||||||
<li {{ if $active }} class='current' {{ end }}>
|
<li {{ if $active }} class='current' {{ end }}>
|
||||||
<a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
|
<a href='{{ .URL | relLangURL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
|
||||||
{{ if .Pre }}
|
{{ if .Pre }}
|
||||||
{{ partial "helper/icon" .Pre }}
|
{{ partial "helper/icon" .Pre }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -20,7 +20,7 @@ features = [
|
|||||||
"search",
|
"search",
|
||||||
]
|
]
|
||||||
|
|
||||||
min_version = "0.78.0"
|
min_version = "0.87.0"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Jimmy Cai"
|
name = "Jimmy Cai"
|
||||||
|
Loading…
Reference in New Issue
Block a user