mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Merge branch 'master' into mathinline
This commit is contained in:
commit
e9ca7fa332
@ -92,16 +92,15 @@
|
|||||||
.article-time,
|
.article-time,
|
||||||
.article-translations {
|
.article-translations {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
color: var(--card-text-color-tertiary);
|
color: var(--card-text-color-tertiary);
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
stroke-width: 1.33;
|
stroke-width: 1.33;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
time,
|
time,
|
||||||
@ -117,6 +116,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article-time {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-translations {
|
||||||
|
& > div {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.article-category,
|
.article-category,
|
||||||
.article-tags {
|
.article-tags {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -264,6 +264,11 @@
|
|||||||
font-family: var(--code-font-family);
|
font-family: var(--code-font-family);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
code {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
.gallery {
|
.gallery {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -418,4 +423,14 @@
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
border: 1px solid var(--kbd-border-color);
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 0.9em;
|
||||||
|
line-height: 1;
|
||||||
|
padding: 2px 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,6 +79,7 @@
|
|||||||
|
|
||||||
@include respond(lg) {
|
@include respond(lg) {
|
||||||
padding-top: var(--main-top-padding);
|
padding-top: var(--main-top-padding);
|
||||||
|
padding-bottom: var(--main-top-padding);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
|
|||||||
--accent-color: #34495e;
|
--accent-color: #34495e;
|
||||||
--accent-color-darker: #2c3e50;
|
--accent-color-darker: #2c3e50;
|
||||||
--accent-color-text: #fff;
|
--accent-color-text: #fff;
|
||||||
--body-text-color: #bababa;
|
--body-text-color: #707070;
|
||||||
|
|
||||||
--tag-border-radius: 4px;
|
--tag-border-radius: 4px;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
|
|||||||
|
|
||||||
--card-text-color-main: #000;
|
--card-text-color-main: #000;
|
||||||
--card-text-color-secondary: #747474;
|
--card-text-color-secondary: #747474;
|
||||||
--card-text-color-tertiary: #bababa;
|
--card-text-color-tertiary: #767676;
|
||||||
--card-separator-color: rgba(218, 218, 218, 0.5);
|
--card-separator-color: rgba(218, 218, 218, 0.5);
|
||||||
|
|
||||||
--card-border-radius: 10px;
|
--card-border-radius: 10px;
|
||||||
@ -123,6 +123,8 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
|
|||||||
--table-border-color: #dadada;
|
--table-border-color: #dadada;
|
||||||
--tr-even-background-color: #efefee;
|
--tr-even-background-color: #efefee;
|
||||||
|
|
||||||
|
--kbd-border-color: #dadada;
|
||||||
|
|
||||||
&[data-scheme="dark"] {
|
&[data-scheme="dark"] {
|
||||||
--code-background-color: #272822;
|
--code-background-color: #272822;
|
||||||
--code-text-color: rgba(255, 255, 255, 0.9);
|
--code-text-color: rgba(255, 255, 255, 0.9);
|
||||||
|
@ -227,6 +227,7 @@ class Search {
|
|||||||
Search.updateQueryString(keywords, true);
|
Search.updateQueryString(keywords, true);
|
||||||
|
|
||||||
if (keywords === '') {
|
if (keywords === '') {
|
||||||
|
lastSearch = '';
|
||||||
return this.clear();
|
return this.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,24 +3,28 @@ languageCode: en-us
|
|||||||
theme: hugo-theme-stack
|
theme: hugo-theme-stack
|
||||||
paginate: 5
|
paginate: 5
|
||||||
title: Example Site
|
title: Example Site
|
||||||
|
copyright: Example Person
|
||||||
|
|
||||||
languages:
|
languages:
|
||||||
en:
|
en:
|
||||||
languageName: English
|
languageName: English
|
||||||
title: Example Site
|
title: Example Site
|
||||||
description: Example description
|
|
||||||
weight: 1
|
weight: 1
|
||||||
|
params:
|
||||||
|
description: Example description
|
||||||
zh-cn:
|
zh-cn:
|
||||||
languageName: 中文
|
languageName: 中文
|
||||||
title: 演示站点
|
title: 演示站点
|
||||||
description: 演示说明
|
|
||||||
weight: 2
|
weight: 2
|
||||||
|
params:
|
||||||
|
description: 演示说明
|
||||||
ar:
|
ar:
|
||||||
languageName: عربي
|
languageName: عربي
|
||||||
languagedirection: rtl
|
languagedirection: rtl
|
||||||
title: موقع تجريبي
|
title: موقع تجريبي
|
||||||
description: وصف تجريبي
|
|
||||||
weight: 3
|
weight: 3
|
||||||
|
params:
|
||||||
|
description: وصف تجريبي
|
||||||
|
|
||||||
# Change it to your Disqus shortname before using
|
# Change it to your Disqus shortname before using
|
||||||
disqusShortname: hugo-theme-stack
|
disqusShortname: hugo-theme-stack
|
||||||
@ -224,7 +228,7 @@ markup:
|
|||||||
goldmark:
|
goldmark:
|
||||||
renderer:
|
renderer:
|
||||||
## Set to true if you have HTML content inside Markdown
|
## Set to true if you have HTML content inside Markdown
|
||||||
unsafe: false
|
unsafe: true
|
||||||
tableOfContents:
|
tableOfContents:
|
||||||
endLevel: 4
|
endLevel: 4
|
||||||
ordered: true
|
ordered: true
|
||||||
|
@ -159,7 +159,7 @@ H<sub>2</sub>O
|
|||||||
|
|
||||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
||||||
|
|
||||||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
|
Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.
|
||||||
|
|
||||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
||||||
|
|
||||||
|
15
i18n/pl.yaml
15
i18n/pl.yaml
@ -7,6 +7,8 @@ darkMode:
|
|||||||
list:
|
list:
|
||||||
page:
|
page:
|
||||||
one: "{{ .Count }} strona"
|
one: "{{ .Count }} strona"
|
||||||
|
few: "{{ .Count }} strony"
|
||||||
|
many: "{{ .Count }} stron"
|
||||||
other: "{{ .Count }} stron"
|
other: "{{ .Count }} stron"
|
||||||
|
|
||||||
section:
|
section:
|
||||||
@ -14,7 +16,9 @@ list:
|
|||||||
|
|
||||||
subsection:
|
subsection:
|
||||||
one: Podsekcja
|
one: Podsekcja
|
||||||
other: Podsekcje
|
few: Podsekcje
|
||||||
|
many: Podsekcji
|
||||||
|
other: Podsekcji
|
||||||
|
|
||||||
article:
|
article:
|
||||||
back:
|
back:
|
||||||
@ -28,9 +32,11 @@ article:
|
|||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Ostatnio zaktualizowany
|
other: Ostatnio zaktualizowany
|
||||||
|
|
||||||
readingTime:
|
readingTime:
|
||||||
one: "Przeczytasz w {{ .Count }} minutę"
|
one: "Przeczytasz w {{ .Count }} minutę"
|
||||||
|
few: "Przeczytasz w {{ .Count }} minuty"
|
||||||
|
many: "Przeczytasz w {{ .Count }} minut"
|
||||||
other: "Przeczytasz w {{ .Count }} minut"
|
other: "Przeczytasz w {{ .Count }} minut"
|
||||||
|
|
||||||
notFound:
|
notFound:
|
||||||
@ -50,7 +56,7 @@ widget:
|
|||||||
tagCloud:
|
tagCloud:
|
||||||
title:
|
title:
|
||||||
other: Tagi
|
other: Tagi
|
||||||
|
|
||||||
categoriesCloud:
|
categoriesCloud:
|
||||||
title:
|
title:
|
||||||
other: Kategorie
|
other: Kategorie
|
||||||
@ -63,6 +69,9 @@ search:
|
|||||||
other: Wpisz coś...
|
other: Wpisz coś...
|
||||||
|
|
||||||
resultTitle:
|
resultTitle:
|
||||||
|
one: "#PAGES_COUNT strona (#TIME_SECONDS sekund)"
|
||||||
|
few: "#PAGES_COUNT strony (#TIME_SECONDS sekund)"
|
||||||
|
many: "#PAGES_COUNT stron (#TIME_SECONDS sekund)"
|
||||||
other: "#PAGES_COUNT stron (#TIME_SECONDS sekund)"
|
other: "#PAGES_COUNT stron (#TIME_SECONDS sekund)"
|
||||||
|
|
||||||
footer:
|
footer:
|
||||||
|
@ -4,6 +4,18 @@ toggleMenu:
|
|||||||
darkMode:
|
darkMode:
|
||||||
other: 夜晚模式
|
other: 夜晚模式
|
||||||
|
|
||||||
|
list:
|
||||||
|
page:
|
||||||
|
one: "第 {{ .Count }} 頁"
|
||||||
|
other: "第 {{ .Count }} 頁"
|
||||||
|
|
||||||
|
section:
|
||||||
|
other: 段落
|
||||||
|
|
||||||
|
subsection:
|
||||||
|
one: 小節
|
||||||
|
other: 小節
|
||||||
|
|
||||||
article:
|
article:
|
||||||
back:
|
back:
|
||||||
other: 返回
|
other: 返回
|
||||||
@ -18,11 +30,13 @@ article:
|
|||||||
other: 最後更新
|
other: 最後更新
|
||||||
|
|
||||||
readingTime:
|
readingTime:
|
||||||
|
one: "閱讀時間: {{ .Count }} 分鐘"
|
||||||
other: "閱讀時間: {{ .Count }} 分鐘"
|
other: "閱讀時間: {{ .Count }} 分鐘"
|
||||||
|
|
||||||
notFound:
|
notFound:
|
||||||
title:
|
title:
|
||||||
other: 404 錯誤
|
other: 404 錯誤
|
||||||
|
|
||||||
subtitle:
|
subtitle:
|
||||||
other: 頁面不存在
|
other: 頁面不存在
|
||||||
|
|
||||||
@ -37,6 +51,9 @@ widget:
|
|||||||
tagCloud:
|
tagCloud:
|
||||||
title:
|
title:
|
||||||
other: 標籤雲
|
other: 標籤雲
|
||||||
|
categoriesCloud:
|
||||||
|
title:
|
||||||
|
other: 分類
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{{ define "body-class" }}template-search{{ end }}
|
{{ define "body-class" }}template-search{{ end }}
|
||||||
{{ define "head" }}
|
{{ define "head" }}
|
||||||
{{- with .OutputFormats.Get "json" -}}
|
{{- with .OutputFormats.Get "json" -}}
|
||||||
<link rel="preload" href="{{ .Permalink }}" as="fetch" crossorigin="anonymous">
|
<link rel="preload" href="{{ .RelPermalink }}" as="fetch" crossorigin="anonymous">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<form action="{{ .Permalink }}" class="search-form"{{ with .OutputFormats.Get "json" -}} data-json="{{ .Permalink }}"{{- end }}>
|
<form action="{{ .RelPermalink }}" class="search-form"{{ with .OutputFormats.Get "json" -}} data-json="{{ .RelPermalink }}"{{- end }}>
|
||||||
<p>
|
<p>
|
||||||
<label>{{ T "search.title" }}</label>
|
<label>{{ T "search.title" }}</label>
|
||||||
<input name="keyword" placeholder="{{ T `search.placeholder` }}" />
|
<input name="keyword" placeholder="{{ T `search.placeholder` }}" />
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
show_email_subscription: {{ default true .show_email_subscription }}
|
show_email_subscription: {{ default true .show_email_subscription }}
|
||||||
};
|
};
|
||||||
|
|
||||||
function(e, n) {
|
!function(e, n) {
|
||||||
for (var o = 0; o < e.length; o++) {
|
for (var o = 0; o < e.length; o++) {
|
||||||
var r = n.createElement('script'),
|
var r = n.createElement('script'),
|
||||||
c = '.js',
|
c = '.js',
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<script src="//cdn.jsdelivr.net/npm/twikoo@1.5.11/dist/twikoo.all.min.js"></script>
|
<script src="//cdn.jsdelivr.net/npm/twikoo@1.6.11/dist/twikoo.all.min.js"></script>
|
||||||
<div id="tcomment"></div>
|
<div id="tcomment"></div>
|
||||||
<style>
|
<style>
|
||||||
.twikoo {
|
.twikoo {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{{- $ThemeVersion := "3.16.0" -}}
|
{{- $ThemeVersion := "3.18.0" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">
|
<section class="copyright">
|
||||||
©
|
©
|
||||||
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
|
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
|
||||||
{{ .Site.Params.footer.since }} -
|
{{ .Site.Params.footer.since }} -
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ now.Format "2006" }} {{ .Site.Title }}
|
{{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="powerby">
|
<section class="powerby">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
publish = "exampleSite/public"
|
publish = "exampleSite/public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.100.2"
|
HUGO_VERSION = "0.117.0"
|
||||||
HUGO_THEME = "repo"
|
HUGO_THEME = "repo"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
|
Loading…
Reference in New Issue
Block a user