Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13568d8ff0 | ||
|
|
2fb534f9a6 | ||
|
|
58559c5b3f | ||
|
|
0bc942bb12 | ||
|
|
a88fe3f5a7 | ||
|
|
1bd4dcd415 | ||
|
|
aae9cf67db | ||
|
|
cb42d2041f | ||
|
|
4272da7ee4 | ||
|
|
d382ca993d | ||
|
|
3ff06fe033 | ||
|
|
ff7a56a7ac | ||
|
|
196116f20d | ||
|
|
b03390d237 | ||
|
|
8a597a5c9c |
@@ -12,7 +12,7 @@ Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJim
|
|||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
* Stater template demo: [demo.stack.jimmycai.com](https://demo.stack.jimmycai.com)
|
* Starter template demo: [demo.stack.jimmycai.com](https://demo.stack.jimmycai.com)
|
||||||
* Dev build: [dev.stack.jimmycai.com](https://dev.stack.jimmycai.com)
|
* Dev build: [dev.stack.jimmycai.com](https://dev.stack.jimmycai.com)
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ function setupSmoothAnchors() {
|
|||||||
aElement.addEventListener("click", clickEvent => {
|
aElement.addEventListener("click", clickEvent => {
|
||||||
clickEvent.preventDefault();
|
clickEvent.preventDefault();
|
||||||
|
|
||||||
const targetId = aElement.getAttribute("href").substring(1),
|
const targetId = decodeURI(aElement.getAttribute("href").substring(1)),
|
||||||
target = document.getElementById(targetId) as HTMLElement,
|
target = document.getElementById(targetId) as HTMLElement,
|
||||||
offset = target.getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top;
|
offset = target.getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top;
|
||||||
|
|
||||||
|
|||||||
+10
-1
@@ -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:
|
||||||
@@ -31,6 +35,8 @@ article:
|
|||||||
|
|
||||||
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:
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -0,0 +1,74 @@
|
|||||||
|
toggleMenu:
|
||||||
|
other: Hiển thị Menu
|
||||||
|
|
||||||
|
darkMode:
|
||||||
|
other: Chế độ nền tối
|
||||||
|
|
||||||
|
list:
|
||||||
|
page:
|
||||||
|
one: "{{ .Count }} trang"
|
||||||
|
other: "{{ .Count }} trang"
|
||||||
|
|
||||||
|
section:
|
||||||
|
other: Section
|
||||||
|
|
||||||
|
subsection:
|
||||||
|
one: Subsection
|
||||||
|
other: Subsections
|
||||||
|
|
||||||
|
article:
|
||||||
|
back:
|
||||||
|
other: Trở lại
|
||||||
|
|
||||||
|
tableOfContents:
|
||||||
|
other: Mục lục
|
||||||
|
|
||||||
|
relatedContent:
|
||||||
|
other: Bài viết liên quan
|
||||||
|
|
||||||
|
lastUpdatedOn:
|
||||||
|
other: Cập nhật lần cuối
|
||||||
|
|
||||||
|
readingTime:
|
||||||
|
one: "{{ .Count }} phút đọc"
|
||||||
|
other: "{{ .Count }} phút đọc"
|
||||||
|
|
||||||
|
notFound:
|
||||||
|
title:
|
||||||
|
other: Không tìm thấy
|
||||||
|
|
||||||
|
subtitle:
|
||||||
|
other: Trang này không tồn tại
|
||||||
|
|
||||||
|
widget:
|
||||||
|
archives:
|
||||||
|
title:
|
||||||
|
other: Lưu trữ
|
||||||
|
|
||||||
|
more:
|
||||||
|
other: Còn nữa
|
||||||
|
|
||||||
|
tagCloud:
|
||||||
|
title:
|
||||||
|
other: Nhãn dán
|
||||||
|
|
||||||
|
categoriesCloud:
|
||||||
|
title:
|
||||||
|
other: Chuỗi bài
|
||||||
|
|
||||||
|
search:
|
||||||
|
title:
|
||||||
|
other: Tìm kiếm
|
||||||
|
|
||||||
|
placeholder:
|
||||||
|
other: Nhập từ khoá ...
|
||||||
|
|
||||||
|
resultTitle:
|
||||||
|
other: "#PAGES_COUNT trang (#TIME_SECONDS giây)"
|
||||||
|
|
||||||
|
footer:
|
||||||
|
builtWith:
|
||||||
|
other: Built with {{ .Generator }}
|
||||||
|
|
||||||
|
designedBy:
|
||||||
|
other: Theme {{ .Theme }} thiết kế bởi {{ .DesignedBy }}
|
||||||
@@ -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:
|
||||||
@@ -47,3 +64,10 @@ search:
|
|||||||
|
|
||||||
resultTitle:
|
resultTitle:
|
||||||
other: "#PAGES_COUNT 個結果 (用時 #TIME_SECONDS 秒)"
|
other: "#PAGES_COUNT 個結果 (用時 #TIME_SECONDS 秒)"
|
||||||
|
|
||||||
|
footer:
|
||||||
|
builtWith:
|
||||||
|
other: 使用 {{ .Generator }} 建立
|
||||||
|
|
||||||
|
designedBy:
|
||||||
|
other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
{ left: "$", right: "$", display: false },
|
{ left: "$", right: "$", display: false },
|
||||||
{ left: "\\(", right: "\\)", display: false },
|
{ left: "\\(", right: "\\)", display: false },
|
||||||
{ left: "\\[", right: "\\]", display: true }
|
{ left: "\\[", right: "\\]", display: true }
|
||||||
]
|
],
|
||||||
|
ignoredClasses: ["gist"]
|
||||||
});})
|
});})
|
||||||
</script>
|
</script>
|
||||||
@@ -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 {
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
let utterancesLoaded = false;
|
||||||
|
|
||||||
function setUtterancesTheme(theme) {
|
function setUtterancesTheme(theme) {
|
||||||
let utterances = document.querySelector('.utterances iframe');
|
let utterances = document.querySelector('.utterances iframe');
|
||||||
if (utterances) {
|
if (utterances) {
|
||||||
@@ -31,10 +33,14 @@
|
|||||||
|
|
||||||
addEventListener('message', event => {
|
addEventListener('message', event => {
|
||||||
if (event.origin !== 'https://utteranc.es') return;
|
if (event.origin !== 'https://utteranc.es') return;
|
||||||
|
|
||||||
|
/// Called when Utterances is ready
|
||||||
|
utterancesLoaded = true;
|
||||||
setUtterancesTheme(document.documentElement.dataset.scheme)
|
setUtterancesTheme(document.documentElement.dataset.scheme)
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('onColorSchemeChange', (e) => {
|
window.addEventListener('onColorSchemeChange', (e) => {
|
||||||
|
if (!utterancesLoaded) return;
|
||||||
setUtterancesTheme(e.detail)
|
setUtterancesTheme(e.detail)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- $ThemeVersion := "3.16.0" -}}
|
{{- $ThemeVersion := "3.17.0" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">
|
<section class="copyright">
|
||||||
©
|
©
|
||||||
|
|||||||
@@ -61,9 +61,8 @@
|
|||||||
{{ $currentPage := . }}
|
{{ $currentPage := . }}
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
{{ $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 | relLangURL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
|
<a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
|
||||||
{{ $icon := default .Pre .Params.Icon }}
|
{{ $icon := default .Pre .Params.Icon }}
|
||||||
{{ if .Pre }}
|
{{ if .Pre }}
|
||||||
{{ warnf "Menu item [%s] is using [pre] field to set icon, please use [params.icon] instead.\nMore information: https://docs.stack.jimmycai.com/configuration/custom-menu.html" .URL }}
|
{{ warnf "Menu item [%s] is using [pre] field to set icon, please use [params.icon] instead.\nMore information: https://docs.stack.jimmycai.com/configuration/custom-menu.html" .URL }}
|
||||||
|
|||||||
Reference in New Issue
Block a user