Compare commits

...
36 Commits
Author SHA1 Message Date
Jimmy CaiandGitHub 5608f0a5e1 release: 3.12.0 2022-06-10 22:54:12 +00:00
Jimmy CaiandGitHub 165c96a8e0 fix(comments): Twikoo dark mode emoji selector background
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/583

credit: https://github.com/CaiJimmy/hugo-theme-stack/issues/583#issuecomment-1096270207 (@rmdhnreza)
2022-06-10 22:43:16 +00:00
lonzziandGitHub 7142de24cc fix(article): TOC link not working when the heading starts with digits (#603) 2022-06-11 00:39:16 +02:00
cubercslandGitHub 9aa6b4925b fix(style): toc counter is incorrect when there are <a> in heading (#601)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/495, https://github.com/CaiJimmy/hugo-theme-stack/issues/589
2022-06-11 00:34:19 +02:00
Sajjad ShirazyandGitHub 92a6d71ce5 feat(i18n): add Persian(Farsi) translation (#602) 2022-06-10 20:55:59 +02:00
Jimmy CaiandGitHub 01eb9a4b0e fix: check if DISQUS is loaded before accessing it (#626)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/571
2022-06-09 22:43:08 +02:00
Mehedi HasanandGitHub 49c0a2bc56 feat(i18n): add Bengali translation (#625) 2022-06-09 20:48:24 +02:00
luoboQAQandGitHub 9eec31f0b6 feat(comment): Update Waline to V2 version (#616)
*  feat(comment): 更新Waline至V2版本

* 保留placeholder属性
2022-06-08 18:30:52 +02:00
Simon GuestandGitHub 772b9e3ba8 fix(article): regression in article copyright link box-shadow (#611)
Somewhere between hugo 0.88.1 and 0.98.0, box-shadow got applied
to the article copyright, which is an ugly regression.
2022-06-08 18:21:28 +02:00
955bb8dd7f feat(shortcodes): add quote shortcode, and example (#414)
* Add quote shortcode, and example

* Use trim to improve whitespace

* Allow for quote with neither author nor source

* Format code and move quote.scss to article.scss

This style is only used on the article page, so it makes more sense to have it there.

Co-authored-by: Jimmy Cai <[email protected]>
2022-06-08 17:59:23 +02:00
Felix NiederwangerandGitHub 0a5cbea10f feat(i18n): add missing translation (it, nl) for categories (#614) 2022-06-05 19:01:31 +02:00
baptiste313andGitHub e8f1b8f7b7 chore: update dependencies (KaTeX, node-vibrant) (#477) 2022-06-05 18:50:27 +02:00
WeltolkandGitHub 06c68e2aa2 chore: update twikoo version to 1.5.11 (#613) 2022-06-05 18:48:01 +02:00
Jimmy CaiandGitHub 3a79e9856e fix: read imageProcessing.cover.enabled correctly (#621) 2022-06-05 18:21:08 +02:00
Zsombor UdvardyandGitHub add8f364e0 feat(i18n): add Hungarian translation (#584) 2022-06-05 18:00:05 +02:00
Spence ChurchillandGitHub 5e350b92e8 refactor: rename "Related contents" to "Related content" (#567) 2022-06-05 17:20:08 +02:00
Allen GuanandGitHub 58b1e0706a feat: add general.scss and change link hover style (#550) 2022-06-05 17:00:14 +02:00
Niko KöserandGitHub 14bb05c8db docs(i18n): add German translation for categories widget (#596) 2022-06-05 13:02:41 +02:00
ti777777andGitHub c1fcec95a6 chore(README): fix a typo (#543) 2022-03-20 12:42:28 +01:00
Jimmy CaiandGitHub 69ac21d0f7 release: 3.11.0 2022-03-19 23:56:29 +00:00
慕枫GoandGitHub 8c04e8362c fix(vssue): Vue version compatibility (#546) 2022-03-20 00:52:06 +01:00
c5eee559c2 fix(i18n/ar): update Reading Time localization for Arabic language (#527)
* update the localization based on Arabic syntax

readingTime variable updated to match the exact syntax for Arabic language

One variable in Arabic no need to add the count variable for 1 minute, there is a word to describe that specifically. 
Other variable localization updated to match Arabic grammar tenses.

* remove unnecessary leading space

Co-authored-by: Jimmy Cai <[email protected]>
2022-03-20 00:41:18 +01:00
Farrel FranqoisandGitHub 2726cf7549 feat(i18n/id): Add translation for Category Widget (#548) 2022-03-20 00:38:00 +01:00
Jimmy CaiandGitHub de952be116 fix(exampleSite): cn.md -> zh-cn.md 2022-03-19 23:16:58 +00:00
HugooandGitHub 1cfd39c627 feat(i18n): add Catalan translation (#557) 2022-03-20 00:14:26 +01:00
HugooandGitHub bf8868c8e7 feat(i18n/es): add translation for Category widget (#558) 2022-03-20 00:06:27 +01:00
KonnyakuandGitHub da6a50ddb5 feat(i18n): add Chinese(Hong Kong) translation (#560) 2022-03-20 00:05:12 +01:00
zhixuanandGitHub 2671f292fd fix(exampleSite): wrong zh-cn about page filename (#562) 2022-03-20 00:00:08 +01:00
Kacper BetańskiandGitHub 9d922272e4 feat(i18n/pl): Add translation for Category widget (#563) 2022-03-19 23:58:05 +01:00
Jimmy CaiandGitHub 5699510c36 refactor(article): remove article toolbar style 2022-03-19 22:41:37 +00:00
Jimmy CaiandGitHub 7d1713d407 refactor(i18n): use lowercase language codes
Related with this Hugo issue: https://github.com/gohugoio/hugo/issues/7344
2022-03-09 15:04:24 +00:00
Jimmy CaiandGitHub b5d0c5b37d fix(exampleSite): cn -> zh-CN 2022-03-09 14:59:36 +00:00
zhixuanandGitHub 0167edcbf2 feat(i18n): add missing ja & zh-CN translations (#538) 2022-03-07 21:33:04 +01:00
Jimmy CaiandGitHub 7a5dccdfd3 doc: add quickstart template 2022-03-06 11:17:03 +01:00
Jimmy CaiandGitHub de9756291b release: 3.10.0 2022-03-06 10:58:31 +01:00
Jimmy CaiandGitHub 07e1b856b0 feat: same container width on all pages (#534) 2022-03-06 10:58:02 +01:00
46 changed files with 578 additions and 139 deletions
+6 -1
View File
@@ -3,6 +3,10 @@
> Card-style Hugo theme designed for bloggers. > Card-style Hugo theme designed for bloggers.
## Quickstart
Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter)
## Demo ## Demo
[Example Site](https://demo.stack.jimmycai.com/) [Example Site](https://demo.stack.jimmycai.com/)
@@ -28,6 +32,7 @@ Stack is a simple card-style Hugo theme designed for bloggers, some of its featu
- Properly cropped thumbnails - Properly cropped thumbnails
- Subsection support - Subsection support
- Table of contents - Table of contents
- Multilingual mode and RTL support
## Requirements ## Requirements
@@ -35,7 +40,7 @@ It's necessary to use **Hugo Extended ≥ 0.87.0**.
## Installation ## Installation
* Route 1: Clone / Download this repository to `theme` folder * Route 1: Clone / Download this repository to `themes` folder
* Route 2: Turn your site into a hugo module and add this theme as a module dependency * Route 2: Turn your site into a hugo module and add this theme as a module dependency
Edit your site config following `exampleSite/config.yaml`. Edit your site config following `exampleSite/config.yaml`.
+31
View File
@@ -0,0 +1,31 @@
a {
text-decoration: none;
color: var(--accent-color);
&:hover {
color: var(--accent-color-darker);
}
&.link {
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
transition: all 0.3s ease;
&:hover {
box-shadow: 0px calc(-1rem * var(--article-line-height)) 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
}
}
}
.section-title {
text-transform: uppercase;
margin-top: 0;
margin-bottom: 10px;
display: block;
font-size: 1.6rem;
font-weight: bold;
color: var(--body-text-color);
a {
color: var(--body-text-color);
}
}
+16 -43
View File
@@ -72,52 +72,15 @@
a { a {
color: var(--body-text-color); color: var(--body-text-color);
} }
a.link {
box-shadow: unset;
}
} }
} }
} }
} }
#article-toolbar {
display: flex;
align-items: center;
margin: 20px 0;
@include respond(md) {
display: none;
}
.back-home {
background: var(--card-background);
border-radius: var(--tag-border-radius);
color: var(--card-text-color-tertiary);
margin-right: 30px;
display: inline-flex;
align-items: center;
font-size: 1.4rem;
text-transform: uppercase;
padding: 10px 20px 10px 15px;
transition: box-shadow 0.3s ease;
box-shadow: var(--shadow-l1);
&:hover {
box-shadow: var(--shadow-l2);
}
svg {
margin-right: 5px;
width: 20px;
height: 20px;
}
span {
font-weight: 500;
white-space: nowrap;
}
}
}
.widget--toc { .widget--toc {
background-color: var(--card-background); background-color: var(--card-background);
border-radius: var(--card-border-radius); border-radius: var(--card-border-radius);
@@ -145,7 +108,7 @@
list-style-type: none; list-style-type: none;
counter-reset: item; counter-reset: item;
li a::before { li a:first-of-type::before {
counter-increment: item; counter-increment: item;
content: counters(item, ".") ". "; content: counters(item, ".") ". ";
font-weight: bold; font-weight: bold;
@@ -207,7 +170,7 @@
} }
} }
.related-contents { .related-content {
overflow-x: auto; overflow-x: auto;
padding-bottom: 15px; padding-bottom: 15px;
@@ -272,6 +235,16 @@
border-inline-start: var(--blockquote-border-size) solid var(--card-separator-color); border-inline-start: var(--blockquote-border-size) solid var(--card-separator-color);
padding: 15px calc(var(--card-padding) - var(--blockquote-border-size)); padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
background-color: var(--blockquote-background-color); background-color: var(--blockquote-background-color);
.cite {
display: block;
text-align: right;
font-size: 0.75em;
a {
text-decoration: underline;
}
}
} }
hr { hr {
+1 -32
View File
@@ -24,36 +24,5 @@
@import "partials/layout/404.scss"; @import "partials/layout/404.scss";
@import "partials/layout/search.scss"; @import "partials/layout/search.scss";
@import "general.scss";
@import "custom.scss"; @import "custom.scss";
a {
text-decoration: none;
color: var(--accent-color);
&:hover {
color: var(--accent-color-darker);
}
&.link {
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
transition: all 0.3s ease;
&:hover {
box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
}
}
}
.section-title {
text-transform: uppercase;
margin-top: 0;
margin-bottom: 10px;
display: block;
font-size: 1.6rem;
font-weight: bold;
color: var(--body-text-color);
a {
color: var(--body-text-color);
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ function setupSmoothAnchors() {
let targetId = aElement.getAttribute("href").substring(1); let targetId = aElement.getAttribute("href").substring(1);
// The replace done on ':' is here for footnotes, as this character would otherwise interfere when used as a CSS selector. // The replace done on ':' is here for footnotes, as this character would otherwise interfere when used as a CSS selector.
let target = document.querySelector(`#${targetId.replace(":", "\\:")}`) as HTMLElement; let target = document.getElementById(targetId.replace(":", "\\:")) as HTMLElement;
window.history.pushState({}, "", aElement.getAttribute("href")); window.history.pushState({}, "", aElement.getAttribute("href"));
scrollTo({ top: target.offsetTop, behavior: "smooth" }); scrollTo({ top: target.offsetTop, behavior: "smooth" });
+10 -12
View File
@@ -1,6 +1,6 @@
Vibrant: Vibrant:
- src: https://cdn.jsdelivr.net/npm/[email protected].5/dist/vibrant.min.js - src: https://cdn.jsdelivr.net/npm/[email protected].6/dist/vibrant.min.js
integrity: sha256-5NovOZc4iwiAWTYIFiIM7DxKUXKWvpVEuMEPLzcm5/g= integrity: sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=
type: script type: script
PhotoSwipe: PhotoSwipe:
@@ -14,26 +14,24 @@ PhotoSwipe:
type: script type: script
defer: true defer: true
- src: https://cdn.jsdelivr.net/npm/[email protected]/dist/default-skin/default-skin.css - src: https://cdn.jsdelivr.net/npm/[email protected]/dist/default-skin/default-skin.min.css
integrity: sha256-c0uckgykQ9v5k+IqViZOZKc47Jn7KQil4/MP3ySA3F8=
type: style type: style
- src: https://cdn.jsdelivr.net/npm/[email protected]/dist/photoswipe.css - src: https://cdn.jsdelivr.net/npm/[email protected]/dist/photoswipe.min.css
integrity: sha256-SBLU4vv6CA6lHsZ1XyTdhyjJxCjPif/TRkjnsyGAGnE=
type: style type: style
KaTeX: KaTeX:
- src: https://cdn.jsdelivr.net/npm/[email protected]3.13/dist/katex.min.css - src: https://cdn.jsdelivr.net/npm/[email protected]5.6/dist/katex.min.css
integrity: sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn integrity: sha256-J+iAE0sgH8QSz9hpcDxXIftnj65JEZgNhGcgReTTK9s=
type: style type: style
- src: https://cdn.jsdelivr.net/npm/[email protected]3.13/dist/katex.min.js - src: https://cdn.jsdelivr.net/npm/[email protected]5.6/dist/katex.min.js
integrity: sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8 integrity: sha256-InsNdER1b2xUewP+pKCUJpkhiqwHgqiPXDlIk7GzBu4=
type: script type: script
defer: true defer: true
- src: https://cdn.jsdelivr.net/npm/[email protected]3.13/dist/contrib/auto-render.min.js - src: https://cdn.jsdelivr.net/npm/[email protected]5.6/dist/contrib/auto-render.min.js
integrity: sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl integrity: sha256-y39Mpg7V3D4lhBX4x6O0bUqTV4pSrfgwEfGKfxkOdgI=
type: script type: script
defer: true defer: true
+6 -7
View File
@@ -9,7 +9,7 @@ languages:
languageName: English languageName: English
title: Example Site title: Example Site
weight: 1 weight: 1
cn: zh-cn:
languageName: 中文 languageName: 中文
title: 演示站点 title: 演示站点
weight: 2 weight: 2
@@ -26,7 +26,7 @@ disqusShortname: hugo-theme-stack
googleAnalytics: googleAnalytics:
# Theme i18n support # Theme i18n support
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar # Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
DefaultContentLanguage: en DefaultContentLanguage: en
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko] # Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
@@ -97,21 +97,20 @@ params:
clientSecret: clientSecret:
autoCreateIssue: false autoCreateIssue: false
# Waline client configuration see: https://waline.js.org/en/reference/client.html # Waline client configuration see: https://waline.js.org/en/reference/component.html
waline: waline:
serverURL: serverURL:
lang: lang:
visitor: pageview:
avatar:
emoji: emoji:
- https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo - https://unpkg.com/@waline/emojis@1.0.1/weibo
requiredMeta: requiredMeta:
- name - name
- email - email
- url - url
placeholder:
locale: locale:
admin: Admin admin: Admin
placeholder:
twikoo: twikoo:
envId: envId:
@@ -1,5 +0,0 @@
---
title: 关于
---
This is a test page for i18n support.
@@ -0,0 +1,10 @@
---
title: 关于
menu:
main:
weight: -90
params:
icon: user
---
This is a test page for i18n support.
@@ -40,3 +40,24 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Gist Shortcode ## Gist Shortcode
{{< gist spf13 7896402 >}} {{< gist spf13 7896402 >}}
## Quote Shortcode
Stack adds a `quote` shortcode. For example:
{{< quote author="A famous person" source="The book they wrote" url="https://en.wikipedia.org/wiki/Book">}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{< /quote >}}
{{< quote source="Anonymous book" url="https://en.wikipedia.org/wiki/Book">}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{< /quote >}}
{{< quote source="Some book">}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{< /quote >}}
{{< quote author="Somebody">}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{< /quote >}}
+3 -3
View File
@@ -23,15 +23,15 @@ article:
tableOfContents: tableOfContents:
other: جدول المحتويات other: جدول المحتويات
relatedContents: relatedContent:
other: محتوى مشابهه other: محتوى مشابهه
lastUpdatedOn: lastUpdatedOn:
other: التعديل الاخير other: التعديل الاخير
readingTime: readingTime:
one: "قرائة {{ .Count }} دقيقة" one: "تُقرأ خلال دقيقة"
other: "قرائة {{ .Count }} دقائق" other: "تُقرأ خلال {{ .Count }} دقائق"
notFound: notFound:
title: title:
+73
View File
@@ -0,0 +1,73 @@
toggleMenu:
other: টগল মেনু
darkMode:
other: ডার্ক মোড
list:
page:
one: "{{ .Count }} পৃষ্ঠা"
other: "{{ .Count }} পৃষ্ঠা"
section:
other: অনুচ্ছেদ
subsection:
one: উপঅনুচ্ছেদ
other: উপঅনুচ্ছেদ
article:
back:
other: পেছনে যান
tableOfContents:
other: সূচিপত্র
relatedContent:
other: সম্পর্কিত বিষয়বস্তু
lastUpdatedOn:
other: শেষ হালনাগাদ করা হয়েছে
readingTime:
one: "{{ .Count }} মিনিটে পড়া যাবে"
other: "{{ .Count }} মিনিটে পড়া যাবে"
notFound:
title:
other: পাওয়া যায়নি
subtitle:
other: এই পৃষ্ঠাটি বিদ্যমান নেই
widget:
archives:
title:
other: আর্কাইভ
more:
other: আরও
tagCloud:
title:
other: ট্যাগ
categoriesCloud:
title:
other: বিভাগ
search:
title:
other: অনুসন্ধান
placeholder:
other: কিছু টাইপ করুন...
resultTitle:
other: "#PAGES_COUNT পৃষ্ঠা (#TIME_SECONDS সেকেন্ড)"
footer:
builtWith:
other: "{{ .Generator }} দিয়ে নির্মিত"
designedBy:
other: "থিম {{ .Theme }} ডিজাইন করেছেন {{ .DesignedBy }}"
+73
View File
@@ -0,0 +1,73 @@
toggleMenu:
other: Toggle Menu
darkMode:
other: Mode fosc
list:
page:
one: "{{ .Count }} pàgina"
other: "{{ .Count }} pàgines"
section:
other: Secció
subsection:
one: Subsecció
other: Subseccions
article:
back:
other: Tornar
tableOfContents:
other: Taula de contingut
relatedContent:
other: Continguts relacionats
lastUpdatedOn:
other: Última vegada actualitzat
readingTime:
one: "{{ .Count }} minut a llegir"
other: "{{ .Count }} minuts a llegir"
notFound:
title:
other: No Trobat
subtitle:
other: Aquesta pàgina no existeix
widget:
archives:
title:
other: Arxiu
more:
other: Més
tagCloud:
title:
other: Etiquetes
categoriesCloud:
title:
other: Categories
search:
title:
other: Cerca
placeholder:
other: Tecleja alguna cosa...
resultTitle:
other: "#PAGES_COUNT pàgines en (#TIME_SECONDS segons)"
footer:
builtWith:
other: Creat amb {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} dissenyat per {{ .DesignedBy }}
+5 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Inhaltsverzeichnis other: Inhaltsverzeichnis
relatedContents: relatedContent:
other: Verwandte Inhalte other: Verwandte Inhalte
lastUpdatedOn: lastUpdatedOn:
@@ -52,6 +52,10 @@ widget:
title: title:
other: Schlagwörter other: Schlagwörter
categoriesCloud:
title:
other: Kategorien
search: search:
title: title:
other: Suche other: Suche
+1 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Πινακας περιεχομενων other: Πινακας περιεχομενων
relatedContents: relatedContent:
other: Σχετικο περιεχομενο other: Σχετικο περιεχομενο
lastUpdatedOn: lastUpdatedOn:
+2 -2
View File
@@ -23,8 +23,8 @@ article:
tableOfContents: tableOfContents:
other: Table of contents other: Table of contents
relatedContents: relatedContent:
other: Related contents other: Related content
lastUpdatedOn: lastUpdatedOn:
other: Last updated on other: Last updated on
+4 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Tabla de contenido other: Tabla de contenido
relatedContents: relatedContent:
other: Contenidos relacionados other: Contenidos relacionados
lastUpdatedOn: lastUpdatedOn:
@@ -51,6 +51,9 @@ widget:
tagCloud: tagCloud:
title: title:
other: Etiquetas other: Etiquetas
categoriesCloud:
title:
other: Categorías
search: search:
title: title:
+73
View File
@@ -0,0 +1,73 @@
toggleMenu:
other: منو
darkMode:
other: حالت شب
list:
page:
one: "{{ .Count }} صفحه"
other: "{{ .Count }} صفحه"
section:
other: بخش
subsection:
one: زیربخش
other: زیربخش
article:
back:
other: قبلی
tableOfContents:
other: فهرست
relatedContent:
other: مطالب مرتبط
lastUpdatedOn:
other: آخرین بروزرسانی در
readingTime:
one: "مطالعه در {{ .Count }} دقیقه"
other: "مطالعه در {{ .Count }} دقیقه"
notFound:
title:
other: یافت نشد
subtitle:
other: این صحه وجود ندارد
widget:
archives:
title:
other: آرشیو
more:
other: بیشتر
tagCloud:
title:
other: تگ ها
categoriesCloud:
title:
other: دسته بندی
search:
title:
other: جستجو
placeholder:
other: تایپ کنید ...
resultTitle:
other: "#PAGES_COUNT صفحه (#TIME_SECONDS ثانیه)"
footer:
builtWith:
other: قدرت گرفته از {{ .Generator }}
designedBy:
other: قالب {{ .Theme }} ساخته شده توسط {{ .DesignedBy }}
+1 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Table des matières other: Table des matières
relatedContents: relatedContent:
other: Contenus liés other: Contenus liés
lastUpdatedOn: lastUpdatedOn:
+73
View File
@@ -0,0 +1,73 @@
toggleMenu:
other: Menü Kapcsolása
darkMode:
other: Sötét Mód
list:
page:
one: "{{ .Count }} oldal"
other: "{{ .Count }} oldalak"
section:
other: Szekció
subsection:
one: Alszekció
other: Alszekciók
article:
back:
other: Vissza
tableOfContents:
other: Tartalomjegyzék
relatedContent:
other: Kapcsolódó tartalom
lastUpdatedOn:
other: Utolsó frissítés időpontja
readingTime:
one: "{{ .Count }} percnyi olvasmány"
other: "{{ .Count }} percnyi olvasmány"
notFound:
title:
other: Nem található
subtitle:
other: Ez az oldal nem létezik
widget:
archives:
title:
other: Archívum
more:
other: Több
tagCloud:
title:
other: Cimkék
categoriesCloud:
title:
other: Kategóriák
search:
title:
other: Keresés
placeholder:
other: Írj valamit...
resultTitle:
other: "#PAGES_COUNT oldal (#TIME_SECONDS másodperc alatt)"
footer:
builtWith:
other: "{{ .Generator }} használatával készült"
designedBy:
other: A {{ .Theme }} dizájnt {{ .DesignedBy }} tervezte
+5 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Daftar Isi other: Daftar Isi
relatedContents: relatedContent:
other: Konten terkait other: Konten terkait
lastUpdatedOn: lastUpdatedOn:
@@ -51,6 +51,10 @@ widget:
title: title:
other: Tag other: Tag
categoriesCloud:
title:
other: Kategori
search: search:
title: title:
other: Cari other: Cari
+5 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Indice other: Indice
relatedContents: relatedContent:
other: Contenuti correlati other: Contenuti correlati
lastUpdatedOn: lastUpdatedOn:
@@ -51,6 +51,10 @@ widget:
title: title:
other: Tags other: Tags
categoriesCloud:
title:
other: Categorie
search: search:
title: title:
other: Cerca other: Cerca
+12 -1
View File
@@ -11,7 +11,7 @@ article:
tableOfContents: tableOfContents:
other: 目次 other: 目次
relatedContents: relatedContent:
other: 関連するコンテンツ other: 関連するコンテンツ
lastUpdatedOn: lastUpdatedOn:
@@ -38,6 +38,10 @@ widget:
title: title:
other: タグ other: タグ
categoriesCloud:
title:
other: カテゴリ
search: search:
title: title:
other: 検索 other: 検索
@@ -47,3 +51,10 @@ search:
resultTitle: resultTitle:
other: "#PAGES_COUNT 件 #TIME_SECONDS 秒)" other: "#PAGES_COUNT 件 #TIME_SECONDS 秒)"
footer:
builtWith:
other: Built with {{ .Generator }}
designedBy:
other: テーマ {{ .Theme }} は {{ .DesignedBy }} によって設計されています。
+1 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: 목차 other: 목차
relatedContents: relatedContent:
other: 관련 글 other: 관련 글
lastUpdatedOn: lastUpdatedOn:
+5 -1
View File
@@ -17,7 +17,7 @@ list:
other: Subsecties other: Subsecties
article: article:
relatedContents: relatedContent:
other: Gerelateerde inhoud other: Gerelateerde inhoud
lastUpdatedOn: lastUpdatedOn:
other: Laatst bijgewerkt op other: Laatst bijgewerkt op
@@ -38,6 +38,10 @@ widget:
title: title:
other: Tags other: Tags
categoriesCloud:
title:
other: Categorie
search: search:
title: title:
other: Zoeken other: Zoeken
+5 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Spis treści other: Spis treści
relatedContents: relatedContent:
other: Powiązane artykuły other: Powiązane artykuły
lastUpdatedOn: lastUpdatedOn:
@@ -51,6 +51,10 @@ widget:
title: title:
other: Tagi other: Tagi
categoriesCloud:
title:
other: Kategorie
search: search:
title: title:
other: Szukaj other: Szukaj
+1 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: Índice other: Índice
relatedContents: relatedContent:
other: Conteúdo relacionado other: Conteúdo relacionado
lastUpdatedOn: lastUpdatedOn:
+1 -1
View File
@@ -23,7 +23,7 @@ list:
article: article:
back: back:
other: Назад other: Назад
relatedContents: relatedContent:
other: Также рекомендуем other: Также рекомендуем
lastUpdatedOn: lastUpdatedOn:
other: Обновлено other: Обновлено
+1 -1
View File
@@ -23,7 +23,7 @@ article:
tableOfContents: tableOfContents:
other: สารบัญ other: สารบัญ
relatedContents: relatedContent:
other: เนื้อหาคล้ายคลึงกัน other: เนื้อหาคล้ายคลึงกัน
lastUpdatedOn: lastUpdatedOn:
+1 -1
View File
@@ -17,7 +17,7 @@ list:
other: Alt bölümler other: Alt bölümler
article: article:
relatedContents: relatedContent:
other: Alakalı içerikler other: Alakalı içerikler
lastUpdatedOn: lastUpdatedOn:
other: Son güncelleme other: Son güncelleme
+1 -1
View File
@@ -24,7 +24,7 @@ article:
tableOfContents: tableOfContents:
other: Зміст other: Зміст
relatedContents: relatedContent:
other: Схожі матеріали other: Схожі матеріали
lastUpdatedOn: lastUpdatedOn:
+12 -1
View File
@@ -11,7 +11,7 @@ article:
tableOfContents: tableOfContents:
other: 目录 other: 目录
relatedContents: relatedContent:
other: 相关文章 other: 相关文章
lastUpdatedOn: lastUpdatedOn:
@@ -38,6 +38,10 @@ widget:
title: title:
other: 标签云 other: 标签云
categoriesCloud:
title:
other: 分类
search: search:
title: title:
other: 搜索 other: 搜索
@@ -47,3 +51,10 @@ search:
resultTitle: resultTitle:
other: "#PAGES_COUNT 个结果 (用时 #TIME_SECONDS 秒)" other: "#PAGES_COUNT 个结果 (用时 #TIME_SECONDS 秒)"
footer:
builtWith:
other: Built with {{ .Generator }}
designedBy:
other: 主题 {{ .Theme }} 由 {{ .DesignedBy }} 设计
+73
View File
@@ -0,0 +1,73 @@
toggleMenu:
other: 切換選單
darkMode:
other: 深色模式
list:
page:
one: "第 {{ .Count }} 頁"
other: "第 {{ .Count }} 頁"
section:
other: Section
subsection:
one: Subsection
other: Subsections
article:
back:
other: 返回
tableOfContents:
other: 目錄
relatedContent:
other: 相關內容
lastUpdatedOn:
other: 上次改過於
readingTime:
one: "需要 {{ .Count }} 分鐘閱讀"
other: "需要 {{ .Count }} 分鐘閱讀"
notFound:
title:
other: Not Found
subtitle:
other: 頁面不存在
widget:
archives:
title:
other: Archives
more:
other: 更多
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categories
search:
title:
other: 搜尋
placeholder:
other: Type 關鍵字...
resultTitle:
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
footer:
builtWith:
other: Built with {{ .Generator }}
designedBy:
other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計
+1 -1
View File
@@ -11,7 +11,7 @@ article:
tableOfContents: tableOfContents:
other: 目錄 other: 目錄
relatedContents: relatedContent:
other: 相關文章 other: 相關文章
lastUpdatedOn: lastUpdatedOn:
+8 -1
View File
@@ -6,7 +6,14 @@
</head> </head>
<body class="{{ block `body-class` . }}{{ end }}"> <body class="{{ block `body-class` . }}{{ end }}">
{{- partial "head/colorScheme" . -}} {{- partial "head/colorScheme" . -}}
{{- $hasWidget := default (gt (len .Site.Params.widgets.homepage) 0) (.Scratch.Get "hasWidget") -}}
{{/* The container is wider when there's any activated widget */}}
{{- $hasWidget := false -}}
{{- range .Site.Params.widgets -}}
{{- if gt (len .) 0 -}}
{{- $hasWidget = true -}}
{{- end -}}
{{- end -}}
<div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}"> <div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
{{- block "left-sidebar" . -}} {{- block "left-sidebar" . -}}
{{ partial "sidebar/left.html" . }} {{ partial "sidebar/left.html" . }}
+1 -1
View File
@@ -30,7 +30,7 @@
{{ partial "article/components/links" . }} {{ partial "article/components/links" . }}
{{ end }} {{ end }}
{{ partial "article/components/related-contents" . }} {{ partial "article/components/related-content" . }}
{{ if not (eq .Params.comments false) }} {{ if not (eq .Params.comments false) }}
{{ partial "comments/include" . }} {{ partial "comments/include" . }}
+1 -1
View File
@@ -10,7 +10,7 @@
{{- $Width := $imageRaw.Width -}} {{- $Width := $imageRaw.Width -}}
{{- $Height := $imageRaw.Height -}} {{- $Height := $imageRaw.Height -}}
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}} {{- if .context.Site.Params.imageProcessing.cover.enabled -}}
{{- $thumbnail := $imageRaw.Fill .size -}} {{- $thumbnail := $imageRaw.Fill .size -}}
{{- $Permalink = $thumbnail.RelPermalink -}} {{- $Permalink = $thumbnail.RelPermalink -}}
{{- $Width = $thumbnail.Width -}} {{- $Width = $thumbnail.Width -}}
@@ -1,8 +1,8 @@
{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }} {{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
{{ with $related }} {{ with $related }}
<aside class="related-contents--wrapper"> <aside class="related-content--wrapper">
<h2 class="section-title">{{ T "article.relatedContents" }}</h2> <h2 class="section-title">{{ T "article.relatedContent" }}</h2>
<div class="related-contents"> <div class="related-content">
<div class="flex article-list--tile"> <div class="flex article-list--tile">
{{ range . }} {{ range . }}
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }} {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
@@ -13,7 +13,7 @@
<script> <script>
window.addEventListener('onColorSchemeChange', (e) => { window.addEventListener('onColorSchemeChange', (e) => {
if (DISQUS) { if (typeof DISQUS == 'object') {
DISQUS.reset({ DISQUS.reset({
reload: true reload: true
}); });
@@ -1,4 +1,4 @@
<script src="//cdn.jsdelivr.net/npm/twikoo@1.4.18/dist/twikoo.all.min.js"></script> <script src="//cdn.jsdelivr.net/npm/twikoo@1.5.11/dist/twikoo.all.min.js"></script>
<div id="tcomment"></div> <div id="tcomment"></div>
<style> <style>
.twikoo { .twikoo {
@@ -28,6 +28,10 @@
.twikoo .el-button{ .twikoo .el-button{
color: var(--twikoo-body-text-color)!important; color: var(--twikoo-body-text-color)!important;
} }
.OwO .OwO-body {
background-color: var(--body-background) !important;
color: var(--body-text-color) !important;
}
</style> </style>
{{- with .Site.Params.comments.twikoo -}} {{- with .Site.Params.comments.twikoo -}}
@@ -3,7 +3,7 @@
<div id="vssue"></div> <div id="vssue"></div>
<script src="https://unpkg.com/vue/dist/vue.runtime.min.js"></script> <script src="https://unpkg.com/vue@2/dist/vue.runtime.min.js"></script>
<script src="https://unpkg.com/vssue/dist/vssue.{{ .platform }}.min.js"></script> <script src="https://unpkg.com/vssue/dist/vssue.{{ .platform }}.min.js"></script>
<script> <script>
@@ -1,4 +1,5 @@
<script src='//cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js'></script> <script src='//unpkg.com/@waline/client@v2/dist/waline.js'></script>
<link href='//unpkg.com/@waline/client@v2/dist/waline.css' rel='stylesheet'/>
<div id="waline" class="waline-container"></div> <div id="waline" class="waline-container"></div>
<style> <style>
.waline-container { .waline-container {
@@ -6,15 +7,16 @@
border-radius: var(--card-border-radius); border-radius: var(--card-border-radius);
box-shadow: var(--shadow-l1); box-shadow: var(--shadow-l1);
padding: var(--card-padding); padding: var(--card-padding);
--waline-font-size: var(--article-font-size);
} }
.waline-container .vcount { .waline-container .wl-count {
color: var(--card-text-color-main); color: var(--card-text-color-main);
} }
</style> </style>
{{- with .Site.Params.comments.waline -}} {{- with .Site.Params.comments.waline -}}
{{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}} {{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}}
{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "avatarcdn" "avatarCDN" "avatarforce" "avatarForce" -}} {{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}}
{{- range $key, $val := . -}} {{- range $key, $val := . -}}
{{- if $val -}} {{- if $val -}}
@@ -27,6 +29,6 @@
<script> <script>
/// Waline client configuration see: https://waline.js.org/en/reference/client.html /// Waline client configuration see: https://waline.js.org/en/reference/client.html
new Waline({{ $config | jsonify | safeJS }}); Waline.init({{ $config | jsonify | safeJS }});
</script> </script>
{{- end -}} {{- end -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $ThemeVersion := "3.9.0" -}} {{- $ThemeVersion := "3.12.0" -}}
<footer class="site-footer"> <footer class="site-footer">
<section class="copyright"> <section class="copyright">
&copy; &copy;
+15
View File
@@ -0,0 +1,15 @@
<blockquote>
<p>{{ .Inner | markdownify }}</p>
{{- if or (.Get "author") (.Get "source") -}}
<span class="cite"><span></span>
{{- if .Get "author" -}}
<span>
{{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
</span>
{{- end -}}
{{- with .Get "url" -}}<a href="{{ . }}">{{- end -}}
<cite>{{ .Get "source" }}</cite>
{{- if .Get "url" -}}</a>{{- end -}}
</span>
{{- end -}}
</blockquote>