Compare commits

..

124 Commits

Author SHA1 Message Date
Jimmy Cai
9e6b7b22a9 release: 3.30.0 2025-01-23 22:55:27 +01:00
Jimmy
f1ab6c6aba
fix(giscus): no longer use $.Language.LanguageCode for the language of Giscus (#1118)
fix(giscus): rollback https://github.com/CaiJimmy/hugo-theme-stack/pull/1075

User can still customize the language used for Giscus using `.Site.Params.comments.giscus.lang` parameter.
2025-01-23 22:54:37 +01:00
Hamza
087989e427
chore(i18n): fix a tiny typo in the footer (#1099) 2024-12-22 14:53:10 +01:00
fsj2009yx
0991f61d49
fix(comment/waline): cannot read property ‘insertBefore’ of null (#1103)
* fix: resolve issue with comments not displaying due to KaTeX and Waline render order

* Fix the problem that comment data couldn't be pulled successfully and raise Error "Cannot read property ‘insertBefore’ of null""
2024-12-22 12:44:13 +01:00
Jimmy Cai
839fbd0ecb release: 3.29.0 2024-10-20 08:05:45 +00:00
Jimmy Cai
5175ac5ae3
fix(giscus): fallback to en if no language code is set (#1084) 2024-10-20 10:04:59 +02:00
Jimmy Cai
37f1541c20
feat: search box in 404 page (#1081) 2024-10-20 00:26:59 +02:00
Jimmy Cai
f4eb5d3e99 release: 3.28.0 2024-10-19 21:32:49 +00:00
xiaoxiyao
788dd497b3
feat: add fingerprints to the JS file URL to utilize HTTP caching (#1076) 2024-10-19 21:14:35 +02:00
xiaoxiyao
8a7fb33163
feat(giscus): use current language as fallback for lang param and add loading param (#1075)
fix: giscus use current lang as default, and add missing `loading` params
2024-10-19 20:46:27 +02:00
onavas33
2a18a92901
fix(i18n): missing translation for title of categories widget in fr.yaml (#1059) 2024-10-06 19:33:20 +02:00
PukNgae Cryolitia
245b0f2810
fix(colorScheme): systemPreferScheme not initialized on start up (#1061) 2024-10-06 19:32:13 +02:00
Jimmy Cai
0fb25c808b
fix: show different subtitle for each i18n variant in exampleSite (#1068) 2024-10-06 19:17:40 +02:00
Jimmy Cai
048a000f17 release: 3.27.0 2024-09-07 18:57:23 +02:00
Jimmy Cai
5f157478aa
fix(exampleSite): site config key paginate was deprecated (#1057)
fix: site config key paginate was deprecated
2024-09-07 18:51:18 +02:00
Jimmy Cai
8556681b7c
doc: add markup.goldmark.extensions.passthrough in exampleSite (#1056)
Related: https://github.com/CaiJimmy/hugo-theme-stack/issues/1019
2024-09-07 18:47:15 +02:00
powerfullz
fa760d70cb
fix: use css.Sass instead of deprecated resources.ToCSS (#1054) 2024-09-07 18:42:07 +02:00
Syafa Adena
bdcab89d86
chore: bump Twikoo front-end to latest released version 1.6.39 (#1021) 2024-09-07 18:14:57 +02:00
saikadaramakaisosjupita
b3907acdae
doc: add backslash to baseURL in exampleSite (#1009) 2024-09-07 17:59:59 +02:00
Vladimir Vitkov
23ff70d41a
feat(i18n): add Bulgarian translations (#1007) 2024-09-07 17:56:17 +02:00
ensag-dev
41a3e5ee13
feat(i18n): add Occitan translations (#1034) 2024-09-07 17:52:40 +02:00
DashJay
0558108e30
feat(comments): add support to Gitalk proxy parameter (#1012)
Co-authored-by: Jimmy Cai <hi@jimmycai.com>
2024-09-07 17:18:03 +02:00
Anthony Simmon
12f31dfd8a
fix: use Hugo's default RSS template value source for lastBuildDate (#1006)
Use Hugo's default RSS template value source for lastBuildDate
2024-09-07 14:22:17 +02:00
weeix
374b25a60f
fix(i18n): fix unlocalized article publish/lastUpdated date (#1050)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/1040
2024-09-07 13:48:09 +02:00
Jimmy Cai
fcd56dd21c
fix: article category overflow (#1055)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/1045
2024-09-07 13:25:26 +02:00
Jimmy Cai
fddab05362 release: 3.26.0 2024-05-02 23:28:01 +02:00
Jimmy Cai
f3783856ad
feat: add article.headingAnchor parameter and use CSS pseudo-element to display # symbol of heading anchor (#1016)
* feat: add `article.headingAnchor` parameter

* feat: use CSS pseudo-element to display `#` symbol of heading anchor

This prevents RSS feed readers and screen readers from seeing an extra `#`.

* Deactivate `article.headingAnchor` by default
2024-05-02 23:27:17 +02:00
Jimmy Cai
130e2f6607
feat: display header anchor on hover (#999) 2024-03-30 23:22:18 +01:00
Jimmy Cai
ce798a32a9 release: 3.25.0 2024-03-27 17:01:23 +01:00
Jimmy Cai
609d43b088
fix: make KaTeX render all math inside document.body (#994)
Since it only accepts one element, I cannot pass `.article-content` and `#TableOfContent` to it. The official documentation uses `document.body` directly, so I guess that's fine.

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/882
2024-03-27 16:38:30 +01:00
Jimmy Cai
797949b37f
fix: rename .social-menu to .menu-social to avoid being blocked by ad blockers (#993)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/924
2024-03-27 16:24:03 +01:00
Jimmy Cai
539c39d69a
feat: add anchor link to markdown heading (#992)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/935
2024-03-27 16:08:19 +01:00
Jimmy Cai
f8466d94d2
fix(i18n): wrap footer.builtWith with double quotes in Japanese translation (#991) 2024-03-27 16:01:43 +01:00
Shun Sakai
43e074364c
feat(i18n): update translations for ja (#984)
* feat(i18n): update translations for `ja`

* Apply review suggestions
2024-03-27 11:21:32 +01:00
andrewmoise
b2157bdf78
docs: update some invalid documentation links (#983)
Update some documentation links (some were dead links)
2024-03-27 11:09:17 +01:00
Jimmy Cai
23607527e4
fix: use page resource permalink in link image (#990)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/982
2024-03-27 10:58:22 +01:00
Jimmy Cai
54a8ace564 release 3.24.2 2024-03-17 20:41:27 +01:00
Andreas Deininger
b3fbe78ca5
fix: deprecation warning for .Site.Author (#979)
Fix deprecation warning for .Site.Author, deprecated in Hugo 0.124.0
2024-03-17 20:40:56 +01:00
Jimmy Cai
2cb5ba683b
fix: remove \n character from meta description (#980) 2024-03-17 20:39:16 +01:00
Jimmy Cai
5a8607e4a8 release: 3.24.1 2024-03-12 14:52:03 +01:00
Andrew Doering
eafcf894c8
fix: favicon does not load if baseurl includes a subfolder (#972)
Use relURL https://gohugo.io/functions/urls/relurl/
2024-03-12 14:50:49 +01:00
Jimmy Cai
0b9f6c36ad
fix(head): prevent Go template from escaping HTML entities in meta description (#973) 2024-03-12 14:45:59 +01:00
Jimmy Cai
04bf1956b9 release: 3.24.0 2024-03-10 22:57:26 +01:00
Jiahao Li
6c7d42d45a
fix(sidebar): menu-bottom-section not showing in mobile (#966)
* fix(sidebar): Bottom section not showing in mobile

* fix(sidebar): Align bottom section to bottom

* fix(sidebar): Gap missing in bottom section

* refactor(sidebar): Simplify styles

* refactor(sidebar): Remove useless padding-left

* refactor(sidebar): Remove useless margin-top

* refactor(sidebar): Combine duplicate flex-direction

* refactor(sidebar): Remove redundant width
2024-03-10 22:56:30 +01:00
Andreas Deininger
2cda779706
feat: bump KaTeX to latest released version 0.16.9 (#969)
Bump KaTeX to latest released version 0.16.9
2024-03-10 22:24:21 +01:00
Andreas Deininger
4948a3723e
fix: .Site.LastChange deprecation (#968)
Fix the deprecation warning emitted from Hugo, and fix the typo in ` exampleSite/content/page/about/index.md`
2024-03-10 19:57:03 +01:00
Jimmy Cai
43224bd39a
feat: update Hugo version and minimum version requirement to 0.123.0 (#970) 2024-03-10 19:54:09 +01:00
Zeyu Huang
4e7865c185
fix(i18n): add missing zh-cn translations (#964) 2024-03-06 09:37:31 +01:00
Jimmy Cai
2f9306502d release: 3.23.0 2024-03-02 23:49:21 +01:00
Jiahao Li
5b0d6fdf7d
fix(sidebar): improve accessibility of sidebar bottom menu (#925)
* fix(menu): <ol> containing other than <li>, <script> or <template> elements

* fix(menu): add title to language select menu
2024-03-02 23:48:34 +01:00
L-Super
65cd7f586f
fix(comment): moved waline placeholder parameter to locale.placeholder (#914)
fix waline parameter
2024-03-02 23:39:43 +01:00
Jiarong Hong
f398fb9dd1
feat(comments): add support for Beaudar(表达)comment system (#931)
https://beaudar.lipk.org/
2024-03-02 23:33:11 +01:00
James McMurry
9bb3165ff0
fix(sidebar): translation selector - avoid cast per PR #950 (#961)
avoid cast per PR #950
2024-03-02 23:16:27 +01:00
Jimmy Cai
405e84291a release: 3.22.0 2024-02-26 12:44:11 +01:00
James McMurry
800f815988
fix(sidebar): hide translations selector if only one translation available (#950)
hide translations menu if only one translation available
2024-02-26 12:43:14 +01:00
kragleh
255abd5c88
feat(i18n): add Slovak translation (#930) 2024-02-23 23:58:07 +01:00
flexxgaad
f53fc128bd
fix(config): site.DisqusShortname and site.GoogleAnalytics are deprecated (#952)
Remove deprecations. Fixes #895
2024-02-23 23:16:24 +01:00
WaterLemons2k
188e49ef41
fix(widgets): ensure params is not nil (#943)
* fix(partials): ensure params always exist

If the `params` key is not defined in the config file, accessing `params` results in a `nil pointer evaluating interface {}` error because `params` does not exist.

This can be fixed by ensuring that params is always a map.

* style(widgets): `default` no pipes required
2024-02-23 23:00:39 +01:00
Gleb A
76dc61f0d5
feat(i18n): add Belarusian translation (#937)
* feat(i18n): add Belarusian translation

* Removed .gitignore changes
2024-02-23 00:03:55 +01:00
Jimmy Cai
03ee3369e1
fix: title does not show pagination data (#945)
* fix: title does not show pagination data

This is caused by partialCached. It turns out that the `.RelPermalink` is the same for all pages generated by the paginator, so they will show the same title as the first page.

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/941

* doc(exampleSite): set paginate to 3 to force pagination
2024-02-19 10:54:02 +01:00
Aman Rawat
21da06e448
feat(i18n): add Hindi translation (#889) 2023-10-28 23:59:27 +02:00
Jarao
20bf719411
fix(comments): twikoo icon & count text color not visible on dark theme (#890)
* fix(comments): twikoo icon & count text color

* fix(comments): twikoo prompt color
2023-10-28 23:51:05 +02:00
Jimmy Cai
bdb9e7fc00 release: 3.21.0 2023-10-11 20:53:09 +00:00
潇潇雨歇
5c98a38a80
chore(comments): update twikoo to 1.6.21 (#877) 2023-10-07 13:08:02 +02:00
Fabian Alvarez
bda734fb23
i18n(es): minor grammatical changes (#873)
* Update es.yaml

Minus grammatically corrections

* Update es.yaml

Fix grammar mistakes
2023-09-18 23:24:52 +02:00
Jimmy Cai
70bcf9cbe0 doc: added a note that exampleSite should not be used as a starter template 2023-09-07 21:30:32 +02:00
Jimmy Cai
6f1d676948 release: 3.20.0 2023-09-03 16:17:25 +02:00
Brandon Szeto
d84d0a8522
fix(menu): consistent svg coloring in menu (#837)
* Consistent svg coloring in menu

* fix: use `currentColor` to avoid breaking style of active element

---------

Co-authored-by: Jimmy Cai <hi@jimmycai.com>
2023-09-03 16:15:51 +02:00
sand3rk
418d5677b1
feat(i18n): add readtime translation in Dutch (#801)
* Update nl.yaml

Added readtime translation in Dutch

* style(i18n/nl): remove duplicated translation

---------

Co-authored-by: Jimmy Cai <hi@jimmycai.com>
2023-09-03 16:10:23 +02:00
Jacob Zhong
be4fd55095
feat(article): font enhancement (#767)
Change font settings
2023-09-03 15:32:44 +02:00
SimbaFs
d3682b3567
fix(article): margin collapsing in code block (firefox) (#833)
fix margin collasping in codeblock
2023-09-03 13:03:17 +02:00
Jimmy Cai
ce0a252bfa release: 3.19.0 2023-08-27 18:49:37 +02:00
Alex Hua
d11923f32b
fix: a waline config param with false value will be ignored (#812)
Co-authored-by: Jimmy Cai <hi@jimmycai.com>
2023-08-27 18:06:00 +02:00
Lukáš Trkan
40712eb781
feat(i18n): add Czech support (#793) 2023-08-27 18:03:26 +02:00
Alex Hua
d197d9b249
fix: invalid params used in requiredMeta of waline (#811)
Fix the invalid parameters used in waline requiredMeta
2023-08-27 13:48:42 +02:00
Jimmy Cai
c6d1d73dd2
chore: update issue report template to include minimal reproducible example (#864) 2023-08-17 11:15:07 +02:00
Brandon Szeto
5d90624441
doc: Inline math example previously not working as intended (#834)
Inline math example previously not working as intended
2023-08-16 14:21:23 +02:00
Jimmy Cai
5edd4afaf3 release: 3.18.0 2023-08-15 13:17:22 +02:00
Jimmy Cai
41c3033d1a
feat(article): add style to <kbd> tag (#862)
* fix: set `unsafe` to true for exampleSite

To display `<kbd>` tag correctly

* feat(article): add style to `kbd` tag

* feat: improve `<kbd>` style
2023-08-15 13:15:32 +02:00
Jimmy Cai
4e2e90da4c
fix: page translation links overflow (#861)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/788
2023-08-15 12:46:29 +02:00
Jimmy Cai
eefa686661
fix: add word-break: break-word; to <a> and <code> (#860)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/746
2023-08-15 11:47:48 +02:00
Jimmy Cai
1668ebc3e4
feat: use .RelPermalink for search JSON (#859)
Avoids CORS problem when the user inputs `baseurl` incorrectly.
2023-08-15 11:40:43 +02:00
Jimmy Cai
f7e442cabb
fix(search): reset lastSearch variable if keywords are empty (#858)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/832
2023-08-12 13:03:45 +02:00
Jimmy Cai
cabaf06ef2
fix: custom params on the language top level is deprecated (#857)
* fix: custom params on the language top level is deprecated

New with Hugo 0.112.0

closes #853

* ci: upgrade Netlify CI Hugo version to 0.117.0
2023-08-12 12:20:19 +02:00
Mehedi Hasan
26d2859f70
fix: very poor color contrast for default text (#845)
Resolves #754

Co-authored-by: Nick Kocharhook <nick@kocharhook.com>
2023-08-12 11:57:02 +02:00
Rich
51e0ec7f99
feat: allow footer copyright to be different to the site title (#839)
* Allow copyright to be different to the site title

* Add copyright to exampleSite
2023-08-12 11:29:56 +02:00
Jimmy Cai
13568d8ff0 release: 3.17.0 2023-07-18 00:07:02 +00:00
SimbaFs
2fb534f9a6
feat(i18n): update translations for zh-tw (#786)
* sync with latest

* translate zh-tw
2023-07-15 10:13:16 +08:00
Piotr Halama
58559c5b3f
feat(i18n): add missing plural forms for the Polish language (#818)
Add missing plural forms for the Polish language
2023-07-15 09:35:09 +08:00
Tsung-Yu Chan
0bc942bb12
fix: remark42 comment system won't show (#799) 2023-07-12 09:37:39 +08:00
Weltolk
a88fe3f5a7
chore: update twikoo version (#783) 2023-07-12 09:20:25 +08:00
Jacob Zhong
1bd4dcd415
fix(sidebar): add padding-bottom to the right sidebar (#765)
Add bottom padding to the right sidebar
2023-07-12 09:12:58 +08:00
Jimmy Cai
aae9cf67db
fix: typo in README: stater -> starter
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/764
2023-02-16 20:07:43 +01:00
Nagakawa Yuno
cb42d2041f
fix: KaTeX may render contents in gist under certain conditions (#755)
add gist to katex's ignoredClasses
2023-02-16 20:03:32 +01:00
ttheng3810
4272da7ee4
feat(i18n): add footer translation for ZH-TW (#748) 2022-12-29 21:18:14 +01:00
Parasomnia
d382ca993d
fix(comment/utterances): the target origin mismatch recipient window's origin (#735) 2022-12-06 14:55:40 +01:00
rock G
3ff06fe033
fix: anchor link need decode (#719) 2022-12-05 21:21:37 +01:00
Anh Nhat Tran
ff7a56a7ac
feat(i18n): add vietnamese translation (#717) 2022-12-03 13:27:55 +01:00
Jimmy Cai
196116f20d
fix: incorrect menu URL when baseURL is a subpath (#713) 2022-10-29 17:28:47 +02:00
Jimmy Cai
b03390d237
Revert "Merge branch 'canary' into master" (#712)
Revert "Merge branch 'canary' into master (#711)"

This reverts commit 8a597a5c9c.
2022-10-29 17:14:19 +02:00
Jimmy Cai
8a597a5c9c
Merge branch 'canary' into master (#711)
* refactor(i18n): simplify the structure of the translation file

* chore: prepare repository for v4.0.0-alpha

* chore: modify go.mod to v4

* refactor: migrate theme configuration to TOML

* fix: exampleSite not using correct theme

* feat: add favicon from assets folder

* refactor: drop linear grandient background feature

remove node-vibrant from dependencies

* feat: use Hugo's code block render hook to implement code copy button

Now it can have i18n support

* refactor: delete color.ts

* refactor: delete Emoji support post from example site

* refactor: drop support for `hidden` field in front matter

* feat: upgrade to PhotoSwipe v5

* chore: bump the required hugo version to 0.100.0

* refactor: remove PhotoSwipe from external.yaml

* fix: extra margin in search result

* fix: incorrect markdown heading level in example site

* refactor: remove some usages of `default` in template

No longer needed thanks to Hugo's configuration merge

* fix: one line codeblock style in firefox

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/564

* feat: add style to new codeblock

* feat: i18n support for codeblock copy text

* fix(menu): jitter when closing menu

It's caused by flexbox gap property, which can't animate

* fix(search): long text overflows under the Search icon

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/515
2022-10-29 17:02:24 +02:00
Jimmy Cai
d60083e055 release: 3.16.0 2022-10-29 14:46:07 +00:00
Jimmy Cai
5d34c3de44
fix(article): frontmatter field .ReadingTime should overwrite global configuration (#710) 2022-10-29 14:50:15 +02:00
MartinAramayo
30e033c660
feat(article): make long KaTeX equations scrollable in the x-axis (#706)
* Make long KaTeX equations scrollable in the x-axis

Suggested from: https://katex.org/docs/issues.html, I have tested it adding a long equation and activating a phone user agent.

* refactor: move KaTeX style to article.scss
2022-10-29 14:38:44 +02:00
Jimmy Cai
86314608e3 style: fix indent 2022-10-29 12:19:09 +00:00
Tom Morris
8611363549
feat: add rel=me to social links (#707)
Adds rel-me to social links

[rel="me"] is a commonly used way to show that that two websites or
social
media accounts are the same, and is used for authentication and proving
site ownership in a variety of ways.

[rel="me"]: https://indieweb.org/rel-me
2022-10-29 14:04:21 +02:00
Jimmy Cai
73437f24ea release: 3.15.0 2022-10-22 10:17:46 +00:00
gursi26
9b464bd9fc
feat(page): add keywords front matter field for better SEO (#664)
* added keywords metadata tag for google SEO

* fix: avoid empty keywords meta tag

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2022-10-22 12:13:24 +02:00
FarisZR
70f431ea18
feat: add a separate configuration field for site description (#672)
* Add an optional site description option

* Add site description to the example site (Chinese Auto-translated)
2022-10-22 11:56:38 +02:00
Ahmad Helaly
30fdd000f9
feat(article): add readingTime front matter field to overwrite global configuration (#701)
* add DisableReadTime for articles

* change frontmatter disableReadingTime to readingTime
2022-10-22 11:48:00 +02:00
星の光
ae497c4789
refactor(grid): avoid sidebar layout shift when main content loads slowly (#677)
Co-authored-by: Luguoba <80254980+luguoba@users.noreply.github.com>
2022-10-21 13:06:06 +02:00
Celso Miranda
299b80c5f8
feat(i18n): add european portuguese translation (#699)
Very subtle changes from the Brazilian Portuguese translation
2022-10-21 12:56:00 +02:00
Jimmy Cai
414a9915e5 release: 3.14.0 2022-10-02 09:59:23 +00:00
TsaiRongFu
378370f6db
docs: update the notes about favicon in the configuration file (#670)
* Update the notes about favicon in the configuration theme

* Update note about favicon

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2022-10-02 11:56:56 +02:00
Allen Guan
e1a85aa5cd
refactor(highlight): extract common parts of styles and keep line number visible when scrolling (#681)
* merge highlight.scss

* show line number when scroll
2022-10-02 11:38:42 +02:00
FarisZR
b1e8472bcf
feat(i18n): add categories cloud translation for Arabic (#673)
Add categories cloud translation
2022-09-29 16:30:47 +02:00
Mehedi Hasan
22d8a396ab
feat(i18n): update Bengali translation (#665) 2022-09-29 16:28:58 +02:00
Daniel Pessoa
94a1f4ade0
feat(i18n): add missing pt-BR translations (#680)
* feat(i18n): Add categoriesCloud for pt-BR
2022-09-29 16:25:58 +02:00
Dmitry Verkhoturov
8826674b1f
fix(comments): update Remark42 source code (#683)
update remark42 source code

Updated frontend code taken from https://remark42.com/docs/configuration/frontend/
2022-09-29 16:22:01 +02:00
Jimmy Cai
efd6f1de37
chore: simplify README.md 2022-09-17 15:38:44 +02:00
Wontory
72c5f4ea24
feat(i18n): added missing korean translation (categories cloud widget) (#653) 2022-08-03 20:49:10 +02:00
Jimmy Cai
5869a7ab83 release: 3.13.0 2022-07-31 10:55:27 +00:00
辛巳流火
d00dbc17bc
feat(comment): add strict and input-position to Giscus config (#648)
* 添加giscus设置选项

根据giscus官方文档,添加了data-strict和data-input-position设置选项

* feat: add strict and inputPosition to giscus config section

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2022-07-31 12:39:20 +02:00
Jimmy Cai
655b5102c4 fix(article): footnote reference does not work
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/632
2022-07-28 16:48:37 +00:00
109 changed files with 3413 additions and 1823 deletions

View File

@ -1,17 +1,15 @@
name: Bug Report name: Bug Report
description: File a bug report description: File a bug report
title: "[Bug]: "
labels: ["bug"]
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://docs.stack.jimmycai.com/). Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://stack.jimmycai.com/guide/).
- type: textarea - type: textarea
id: what-happened id: what-happened
attributes: attributes:
label: What happened? label: What happened?
description: Also tell us, what did you expect to happen? Please be as detailed as possible, include screenshots and any other information that might help us reproduce the problem. description: Also tell us, what did you expect to happen? Please be as detailed as possible, including screenshots and any other information that might help us reproduce the problem.
placeholder: Tell us what you see! placeholder: Tell us what you see!
validations: validations:
required: true required: true
@ -55,21 +53,13 @@ body:
label: Relevant log output label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell render: shell
- type: markdown
attributes:
value: |
If the issue is not present on the [demo site](https://demo.stack.jimmycai.com), in order to better understand the problem, please provide the link to the source code of your website (not the generated HTML).
Or link to a minimal reproduction of the problem if there are sensible data.
- type: input - type: input
id: bug-url id: minimal-reproduction-url
attributes: attributes:
label: Link to the page with bug label: Link to Minimal Reproducible Example
placeholder: https://demo.stack.jimmycai.com description: |
value: https://demo.stack.jimmycai.com Use [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter) to create a minimal reproduction of the problem.
A minimal reproduction is required so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed.
placeholder: https://github.com/username/your-repository
validations: validations:
required: true required: true
- type: input
id: source-repo
attributes:
label: Link to the source repository
placeholder: https://github.com/CaiJimmy/hugo-theme-stack

View File

@ -1,7 +1,10 @@
![Stack](https://i.imgur.com/cCiHOGS.jpg) ![image](https://user-images.githubusercontent.com/5889006/190859441-141b5f81-8483-40d2-bd96-ebf85616a46d.png)
# Hugo Theme Stack # Hugo Theme Stack
> Card-style Hugo theme designed for bloggers. <img align="right" width="150" alt="logo" src="https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png">
Card-style Hugo theme designed for bloggers.
## Quickstart ## Quickstart
@ -9,45 +12,12 @@ Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJim
## Demo ## Demo
[Example Site](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)
[![Netlify Status](https://api.netlify.com/api/v1/badges/a2d2807a-a905-4bcb-97da-8da8d847da3d/deploy-status)](https://app.netlify.com/sites/hugo-theme-stack/deploys)
## Documentation ## Documentation
[Documentation](https://docs.stack.jimmycai.com/) | [中文文档](https://docs.stack.jimmycai.com/zh/) Visit [stack.jimmycai.com](https://stack.jimmycai.com)
## Introduction
Stack is a simple card-style Hugo theme designed for bloggers, some of its features are:
- Responsive images support
- Lazy load images
- Dark mode
- Local search
- [PhotoSwipe](https://photoswipe.com/) integration
- Archive page template
- Full native JavaScript, no jQuery or any other frameworks are used
- No CSS framework, keep it simple and minimal
- Properly cropped thumbnails
- Subsection support
- Table of contents
- Multilingual mode and RTL support
## Requirements
It's necessary to use **Hugo Extended ≥ 0.87.0**.
## Installation
* 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
Edit your site config following `exampleSite/config.yaml`.
*Note: Remove `config.toml` if there is one in the site folder.*
Check [documentation](https://docs.stack.jimmycai.com/) for more details.
## Copyright ## Copyright
@ -56,33 +26,3 @@ Check [documentation](https://docs.stack.jimmycai.com/) for more details.
Please do not remove the "*Theme Stack designed by Jimmy*" text and link. Please do not remove the "*Theme Stack designed by Jimmy*" text and link.
If you want to port this theme to another blogging platform, please let me know🙏. If you want to port this theme to another blogging platform, please let me know🙏.
## Sponsoring
If you like this theme, give it a star, and consider supporting its development:
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/C0C530AXX)
Your support is greatly appreciated :)
## Thanks to
| Project | Description | Licence |
| ------- | ----------- | ------- |
| [PhotoSwipe](https://photoswipe.com/) | For the lightbox effect | [MIT](https://github.com/dimsemenov/PhotoSwipe/blob/master/LICENSE) |
| [Normalize.css](https://github.com/necolas/normalize.css) | - | [MIT](https://github.com/necolas/normalize.css/blob/master/LICENSE.md) |
| [Node Vibrant](https://github.com/Vibrant-Colors/node-vibrant) | To extract the color from images | [MIT](https://github.com/Vibrant-Colors/node-vibrant/blob/master/LICENSE.md)
| [Tabler icons](https://github.com/tabler/tabler-icons) | Default menu icons | [MIT](https://github.com/tabler/tabler-icons/blob/master/LICENSE) |
| [jonsuh/hamburgers](https://github.com/jonsuh/hamburgers) | Hamburger icon of menu | [MIT](https://github.com/jonsuh/hamburgers/blob/master/LICENSE) |
| [lepture/yue.css](https://github.com/lepture/yue.css) | Part of it is used for styling article content | MIT |
| [Typlog](https://typlog.com/) | Where the markdown gallery syntax is borrowed from | The author gave me the permission |
| [Pure CSS implementation of Google Photos / 500px image layout](https://github.com/xieranmaya/blog/issues/6) | Used for image gallery | - |
### References
Some references that I took while building this theme:
| Project | Licence|
| ------- | ------|
| [artchen/hexo-theme-element](https://github.com/artchen/hexo-theme-element) | [MIT](https://github.com/artchen/hexo-theme-element/blob/master/LICENSE) |
| [MunifTanjim/minimo](https://github.com/MunifTanjim/minimo) | [MIT](https://github.com/MunifTanjim/minimo/blob/master/LICENSE) |

View File

@ -5,6 +5,7 @@ date: {{ .Date }}
image: image:
math: math:
license: license:
hidden: false
comments: true comments: true
draft: true draft: true
--- ---

View File

@ -3,10 +3,12 @@
margin-right: auto; margin-right: auto;
.left-sidebar { .left-sidebar {
order: -3;
max-width: var(--left-sidebar-max-width); max-width: var(--left-sidebar-max-width);
} }
.right-sidebar { .right-sidebar {
order: -1;
max-width: var(--right-sidebar-max-width); max-width: var(--right-sidebar-max-width);
/// Display right sidebar when min-width: lg /// Display right sidebar when min-width: lg
@ -73,6 +75,7 @@
} }
main.main { main.main {
order: -2;
min-width: 0; min-width: 0;
max-width: 100%; max-width: 100%;
flex-grow: 1; flex-grow: 1;

View File

@ -54,6 +54,7 @@
} }
.article-title { .article-title {
font-family: var(--article-font-family);
font-weight: 600; font-weight: 600;
margin: 0; margin: 0;
color: var(--card-text-color-main); color: var(--card-text-color-main);
@ -92,16 +93,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,10 +117,21 @@
} }
} }
.article-time {
flex-wrap: wrap;
}
.article-translations {
& > div {
flex-wrap: wrap;
}
}
.article-category, .article-category,
.article-tags { .article-tags {
display: flex; display: flex;
gap: 10px; gap: 10px;
flex-wrap: wrap;
a { a {
color: var(--accent-color-text); color: var(--accent-color-text);
@ -192,6 +203,7 @@
.article-preview { .article-preview {
font-size: 1.4rem; font-size: 1.4rem;
color: var(--card-text-color-tertiary); color: var(--card-text-color-tertiary);
margin-top: 10px;
line-height: 1.5; line-height: 1.5;
} }
} }

View File

@ -0,0 +1,428 @@
/* Background */
.chroma {
color: $color;
background-color: $background-color;
}
/* Other */
.chroma .x {
}
/* Error */
.chroma .err {
color: $error-color;
}
/* LineTableTD */
.chroma .lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
/* LineTable */
.chroma .lntable {
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
width: 100%;
display: block;
> tbody {
display: block;
width: 100%;
> tr {
display: flex;
width: 100%;
> td:last-child {
overflow-x: auto;
}
}
}
}
/* LineHighlight */
.chroma .hl {
display: block;
width: 100%;
background-color: #ffffcc;
}
/* LineNumbersTable */
.chroma .lnt {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
color: #7f7f7f;
display: block;
}
/* LineNumbers */
.chroma .ln {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
color: #7f7f7f;
}
/* Keyword */
.chroma .k {
color: $keyword-color;
}
/* KeywordConstant */
.chroma .kc {
color: $keyword-color;
}
/* KeywordDeclaration */
.chroma .kd {
color: $keyword-color;
}
/* KeywordNamespace */
.chroma .kn {
color: #f92672;
}
/* KeywordPseudo */
.chroma .kp {
color: $keyword-color;
}
/* KeywordReserved */
.chroma .kr {
color: $keyword-color;
}
/* KeywordType */
.chroma .kt {
color: $keyword-color;
}
/* Name */
.chroma .n {
color: $text-color;
}
/* NameAttribute */
.chroma .na {
color: $name-color;
}
/* NameBuiltin */
.chroma .nb {
color: $text-color;
}
/* NameBuiltinPseudo */
.chroma .bp {
color: $text-color;
}
/* NameClass */
.chroma .nc {
color: $name-color;
}
/* NameConstant */
.chroma .no {
color: $keyword-color;
}
/* NameDecorator */
.chroma .nd {
color: $name-color;
}
/* NameEntity */
.chroma .ni {
color: $text-color;
}
/* NameException */
.chroma .ne {
color: $name-color;
}
/* NameFunction */
.chroma .nf {
color: $name-color;
}
/* NameFunctionMagic */
.chroma .fm {
color: $text-color;
}
/* NameLabel */
.chroma .nl {
color: $text-color;
}
/* NameNamespace */
.chroma .nn {
color: $text-color;
}
/* NameOther */
.chroma .nx {
color: $name-color;
}
/* NameProperty */
.chroma .py {
color: $text-color;
}
/* NameTag */
.chroma .nt {
color: #f92672;
}
/* NameVariable */
.chroma .nv {
color: $text-color;
}
/* NameVariableClass */
.chroma .vc {
color: $text-color;
}
/* NameVariableGlobal */
.chroma .vg {
color: $text-color;
}
/* NameVariableInstance */
.chroma .vi {
color: $text-color;
}
/* NameVariableMagic */
.chroma .vm {
color: $text-color;
}
/* Literal */
.chroma .l {
color: #ae81ff;
}
/* LiteralDate */
.chroma .ld {
color: $literal-color;
}
/* LiteralString */
.chroma .s {
color: $literal-color;
}
/* LiteralStringAffix */
.chroma .sa {
color: $literal-color;
}
/* LiteralStringBacktick */
.chroma .sb {
color: $literal-color;
}
/* LiteralStringChar */
.chroma .sc {
color: $literal-color;
}
/* LiteralStringDelimiter */
.chroma .dl {
color: $literal-color;
}
/* LiteralStringDoc */
.chroma .sd {
color: $literal-color;
}
/* LiteralStringDouble */
.chroma .s2 {
color: $literal-color;
}
/* LiteralStringEscape */
.chroma .se {
color: #ae81ff;
}
/* LiteralStringHeredoc */
.chroma .sh {
color: $literal-color;
}
/* LiteralStringInterpol */
.chroma .si {
color: $literal-color;
}
/* LiteralStringOther */
.chroma .sx {
color: $literal-color;
}
/* LiteralStringRegex */
.chroma .sr {
color: $literal-color;
}
/* LiteralStringSingle */
.chroma .s1 {
color: $literal-color;
}
/* LiteralStringSymbol */
.chroma .ss {
color: $literal-color;
}
/* LiteralNumber */
.chroma .m {
color: #ae81ff;
}
/* LiteralNumberBin */
.chroma .mb {
color: #ae81ff;
}
/* LiteralNumberFloat */
.chroma .mf {
color: #ae81ff;
}
/* LiteralNumberHex */
.chroma .mh {
color: #ae81ff;
}
/* LiteralNumberInteger */
.chroma .mi {
color: #ae81ff;
}
/* LiteralNumberIntegerLong */
.chroma .il {
color: #ae81ff;
}
/* LiteralNumberOct */
.chroma .mo {
color: #ae81ff;
}
/* Operator */
.chroma .o {
color: #f92672;
}
/* OperatorWord */
.chroma .ow {
color: #f92672;
}
/* Punctuation */
.chroma .p {
color: $text-color;
}
/* Comment */
.chroma .c {
color: #75715e;
}
/* CommentHashbang */
.chroma .ch {
color: #75715e;
}
/* CommentMultiline */
.chroma .cm {
color: #75715e;
}
/* CommentSingle */
.chroma .c1 {
color: #75715e;
}
/* CommentSpecial */
.chroma .cs {
color: #75715e;
}
/* CommentPreproc */
.chroma .cp {
color: #75715e;
}
/* CommentPreprocFile */
.chroma .cpf {
color: #75715e;
}
/* Generic */
.chroma .g {
}
/* GenericDeleted */
.chroma .gd {
color: #f92672;
}
/* GenericEmph */
.chroma .ge {
font-style: italic;
}
/* GenericError */
.chroma .gr {
}
/* GenericHeading */
.chroma .gh {
}
/* GenericInserted */
.chroma .gi {
color: $name-color;
}
/* GenericOutput */
.chroma .go {
}
/* GenericPrompt */
.chroma .gp {
}
/* GenericStrong */
.chroma .gs {
font-weight: bold;
}
/* GenericSubheading */
.chroma .gu {
color: #75715e;
}
/* GenericTraceback */
.chroma .gt {
}
/* GenericUnderline */
.chroma .gl {
}
/* TextWhitespace */
.chroma .w {
}

View File

@ -3,382 +3,12 @@
* https://xyproto.github.io/splash/docs/monokai.html * https://xyproto.github.io/splash/docs/monokai.html
*/ */
/* Background */ $color: #f8f8f2;
.chroma { $background-color: #272822;
color: #f8f8f2; $error-color: #bb0064;
background-color: #272822 $keyword-color: #66d9ef;
} $text-color: $color;
$name-color: #a6e22e;
/* Other */ $literal-color: #e6db74;
.chroma .x {}
@import "common.scss";
/* Error */
.chroma .err {
color: #bb0064;
}
/* LineTableTD */
.chroma .lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
/* LineTable */
.chroma .lntable {
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
width: auto;
overflow: auto;
display: block;
}
/* LineHighlight */
.chroma .hl {
display: block;
width: 100%;
background-color: #ffffcc
}
/* LineNumbersTable */
.chroma .lnt {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
color: #7f7f7f
}
/* LineNumbers */
.chroma .ln {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
color: #7f7f7f
}
/* Keyword */
.chroma .k {
color: #66d9ef
}
/* KeywordConstant */
.chroma .kc {
color: #66d9ef
}
/* KeywordDeclaration */
.chroma .kd {
color: #66d9ef
}
/* KeywordNamespace */
.chroma .kn {
color: #f92672
}
/* KeywordPseudo */
.chroma .kp {
color: #66d9ef
}
/* KeywordReserved */
.chroma .kr {
color: #66d9ef
}
/* KeywordType */
.chroma .kt {
color: #66d9ef
}
/* Name */
.chroma .n {}
/* NameAttribute */
.chroma .na {
color: #a6e22e
}
/* NameBuiltin */
.chroma .nb {}
/* NameBuiltinPseudo */
.chroma .bp {}
/* NameClass */
.chroma .nc {
color: #a6e22e
}
/* NameConstant */
.chroma .no {
color: #66d9ef
}
/* NameDecorator */
.chroma .nd {
color: #a6e22e
}
/* NameEntity */
.chroma .ni {}
/* NameException */
.chroma .ne {
color: #a6e22e
}
/* NameFunction */
.chroma .nf {
color: #a6e22e
}
/* NameFunctionMagic */
.chroma .fm {}
/* NameLabel */
.chroma .nl {}
/* NameNamespace */
.chroma .nn {}
/* NameOther */
.chroma .nx {
color: #a6e22e
}
/* NameProperty */
.chroma .py {}
/* NameTag */
.chroma .nt {
color: #f92672
}
/* NameVariable */
.chroma .nv {}
/* NameVariableClass */
.chroma .vc {}
/* NameVariableGlobal */
.chroma .vg {}
/* NameVariableInstance */
.chroma .vi {}
/* NameVariableMagic */
.chroma .vm {}
/* Literal */
.chroma .l {
color: #ae81ff
}
/* LiteralDate */
.chroma .ld {
color: #e6db74
}
/* LiteralString */
.chroma .s {
color: #e6db74
}
/* LiteralStringAffix */
.chroma .sa {
color: #e6db74
}
/* LiteralStringBacktick */
.chroma .sb {
color: #e6db74
}
/* LiteralStringChar */
.chroma .sc {
color: #e6db74
}
/* LiteralStringDelimiter */
.chroma .dl {
color: #e6db74
}
/* LiteralStringDoc */
.chroma .sd {
color: #e6db74
}
/* LiteralStringDouble */
.chroma .s2 {
color: #e6db74
}
/* LiteralStringEscape */
.chroma .se {
color: #ae81ff
}
/* LiteralStringHeredoc */
.chroma .sh {
color: #e6db74
}
/* LiteralStringInterpol */
.chroma .si {
color: #e6db74
}
/* LiteralStringOther */
.chroma .sx {
color: #e6db74
}
/* LiteralStringRegex */
.chroma .sr {
color: #e6db74
}
/* LiteralStringSingle */
.chroma .s1 {
color: #e6db74
}
/* LiteralStringSymbol */
.chroma .ss {
color: #e6db74
}
/* LiteralNumber */
.chroma .m {
color: #ae81ff
}
/* LiteralNumberBin */
.chroma .mb {
color: #ae81ff
}
/* LiteralNumberFloat */
.chroma .mf {
color: #ae81ff
}
/* LiteralNumberHex */
.chroma .mh {
color: #ae81ff
}
/* LiteralNumberInteger */
.chroma .mi {
color: #ae81ff
}
/* LiteralNumberIntegerLong */
.chroma .il {
color: #ae81ff
}
/* LiteralNumberOct */
.chroma .mo {
color: #ae81ff
}
/* Operator */
.chroma .o {
color: #f92672
}
/* OperatorWord */
.chroma .ow {
color: #f92672
}
/* Punctuation */
.chroma .p {}
/* Comment */
.chroma .c {
color: #75715e
}
/* CommentHashbang */
.chroma .ch {
color: #75715e
}
/* CommentMultiline */
.chroma .cm {
color: #75715e
}
/* CommentSingle */
.chroma .c1 {
color: #75715e
}
/* CommentSpecial */
.chroma .cs {
color: #75715e
}
/* CommentPreproc */
.chroma .cp {
color: #75715e
}
/* CommentPreprocFile */
.chroma .cpf {
color: #75715e
}
/* Generic */
.chroma .g {}
/* GenericDeleted */
.chroma .gd {
color: #f92672
}
/* GenericEmph */
.chroma .ge {
font-style: italic
}
/* GenericError */
.chroma .gr {}
/* GenericHeading */
.chroma .gh {}
/* GenericInserted */
.chroma .gi {
color: #a6e22e
}
/* GenericOutput */
.chroma .go {}
/* GenericPrompt */
.chroma .gp {}
/* GenericStrong */
.chroma .gs {
font-weight: bold
}
/* GenericSubheading */
.chroma .gu {
color: #75715e
}
/* GenericTraceback */
.chroma .gt {}
/* GenericUnderline */
.chroma .gl {}
/* TextWhitespace */
.chroma .w {}

View File

@ -3,407 +3,12 @@
* https://xyproto.github.io/splash/docs/monokailight.html * https://xyproto.github.io/splash/docs/monokailight.html
*/ */
/* Background */ $color: #272822;
.chroma { $background-color: #fafafa;
color: #272822; $error-color: #960050;
background-color: #fafafa; $keyword-color: #00a8c8;
} $text-color: #111111;
$name-color: #75af00;
/* Other */ $literal-color: #d88200;
.chroma .x {
} @import "common.scss";
/* Error */
.chroma .err {
color: #960050;
}
/* LineTableTD */
.chroma .lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
/* LineTable */
.chroma .lntable {
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
width: auto;
overflow: auto;
display: block;
}
/* LineHighlight */
.chroma .hl {
display: block;
width: 100%;
background-color: #ffffcc;
}
/* LineNumbersTable */
.chroma .lnt {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
color: #7f7f7f;
}
/* LineNumbers */
.chroma .ln {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
color: #7f7f7f;
}
/* Keyword */
.chroma .k {
color: #00a8c8;
}
/* KeywordConstant */
.chroma .kc {
color: #00a8c8;
}
/* KeywordDeclaration */
.chroma .kd {
color: #00a8c8;
}
/* KeywordNamespace */
.chroma .kn {
color: #f92672;
}
/* KeywordPseudo */
.chroma .kp {
color: #00a8c8;
}
/* KeywordReserved */
.chroma .kr {
color: #00a8c8;
}
/* KeywordType */
.chroma .kt {
color: #00a8c8;
}
/* Name */
.chroma .n {
color: #111111;
}
/* NameAttribute */
.chroma .na {
color: #75af00;
}
/* NameBuiltin */
.chroma .nb {
color: #111111;
}
/* NameBuiltinPseudo */
.chroma .bp {
color: #111111;
}
/* NameClass */
.chroma .nc {
color: #75af00;
}
/* NameConstant */
.chroma .no {
color: #00a8c8;
}
/* NameDecorator */
.chroma .nd {
color: #75af00;
}
/* NameEntity */
.chroma .ni {
color: #111111;
}
/* NameException */
.chroma .ne {
color: #75af00;
}
/* NameFunction */
.chroma .nf {
color: #75af00;
}
/* NameFunctionMagic */
.chroma .fm {
color: #111111;
}
/* NameLabel */
.chroma .nl {
color: #111111;
}
/* NameNamespace */
.chroma .nn {
color: #111111;
}
/* NameOther */
.chroma .nx {
color: #75af00;
}
/* NameProperty */
.chroma .py {
color: #111111;
}
/* NameTag */
.chroma .nt {
color: #f92672;
}
/* NameVariable */
.chroma .nv {
color: #111111;
}
/* NameVariableClass */
.chroma .vc {
color: #111111;
}
/* NameVariableGlobal */
.chroma .vg {
color: #111111;
}
/* NameVariableInstance */
.chroma .vi {
color: #111111;
}
/* NameVariableMagic */
.chroma .vm {
color: #111111;
}
/* Literal */
.chroma .l {
color: #ae81ff;
}
/* LiteralDate */
.chroma .ld {
color: #d88200;
}
/* LiteralString */
.chroma .s {
color: #d88200;
}
/* LiteralStringAffix */
.chroma .sa {
color: #d88200;
}
/* LiteralStringBacktick */
.chroma .sb {
color: #d88200;
}
/* LiteralStringChar */
.chroma .sc {
color: #d88200;
}
/* LiteralStringDelimiter */
.chroma .dl {
color: #d88200;
}
/* LiteralStringDoc */
.chroma .sd {
color: #d88200;
}
/* LiteralStringDouble */
.chroma .s2 {
color: #d88200;
}
/* LiteralStringEscape */
.chroma .se {
color: #8045ff;
}
/* LiteralStringHeredoc */
.chroma .sh {
color: #d88200;
}
/* LiteralStringInterpol */
.chroma .si {
color: #d88200;
}
/* LiteralStringOther */
.chroma .sx {
color: #d88200;
}
/* LiteralStringRegex */
.chroma .sr {
color: #d88200;
}
/* LiteralStringSingle */
.chroma .s1 {
color: #d88200;
}
/* LiteralStringSymbol */
.chroma .ss {
color: #d88200;
}
/* LiteralNumber */
.chroma .m {
color: #ae81ff;
}
/* LiteralNumberBin */
.chroma .mb {
color: #ae81ff;
}
/* LiteralNumberFloat */
.chroma .mf {
color: #ae81ff;
}
/* LiteralNumberHex */
.chroma .mh {
color: #ae81ff;
}
/* LiteralNumberInteger */
.chroma .mi {
color: #ae81ff;
}
/* LiteralNumberIntegerLong */
.chroma .il {
color: #ae81ff;
}
/* LiteralNumberOct */
.chroma .mo {
color: #ae81ff;
}
/* Operator */
.chroma .o {
color: #f92672;
}
/* OperatorWord */
.chroma .ow {
color: #f92672;
}
/* Punctuation */
.chroma .p {
color: #111111;
}
/* Comment */
.chroma .c {
color: #75715e;
}
/* CommentHashbang */
.chroma .ch {
color: #75715e;
}
/* CommentMultiline */
.chroma .cm {
color: #75715e;
}
/* CommentSingle */
.chroma .c1 {
color: #75715e;
}
/* CommentSpecial */
.chroma .cs {
color: #75715e;
}
/* CommentPreproc */
.chroma .cp {
color: #75715e;
}
/* CommentPreprocFile */
.chroma .cpf {
color: #75715e;
}
/* Generic */
.chroma .g {
}
/* GenericDeleted */
.chroma .gd {
color: #f92672;
}
/* GenericEmph */
.chroma .ge {
font-style: italic;
}
/* GenericError */
.chroma .gr {
}
/* GenericHeading */
.chroma .gh {
}
/* GenericInserted */
.chroma .gi {
color: #7ca727;
}
/* GenericOutput */
.chroma .go {
}
/* GenericPrompt */
.chroma .gp {
}
/* GenericStrong */
.chroma .gs {
font-weight: bold;
}
/* GenericSubheading */
.chroma .gu {
color: #75715e;
}
/* GenericTraceback */
.chroma .gt {
}
/* GenericUnderline */
.chroma .gl {
}
/* TextWhitespace */
.chroma .w {
}

View File

@ -33,6 +33,10 @@
margin: var(--card-padding) 0; margin: var(--card-padding) 0;
color: var(--card-text-color-main); color: var(--card-text-color-main);
.footnotes {
font-family: var(--base-font-family);
}
img { img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
@ -63,7 +67,6 @@
} }
.article-tags { .article-tags {
flex-wrap: wrap;
text-transform: unset; text-transform: unset;
} }
@ -218,6 +221,28 @@
margin-inline-start: calc((var(--card-padding)) * -1); margin-inline-start: calc((var(--card-padding)) * -1);
padding-inline-start: calc(var(--card-padding) - var(--heading-border-size)); padding-inline-start: calc(var(--card-padding) - var(--heading-border-size));
border-inline-start: var(--heading-border-size) solid var(--accent-color); border-inline-start: var(--heading-border-size) solid var(--accent-color);
position: relative;
a.header-anchor {
transition: opacity 0.3s ease;
opacity: 0;
position: absolute;
left: 0;
width: var(--card-padding);
text-align: center;
color: var(--accent-color);
&:before {
content: "#";
}
}
&:hover,
&:focus {
a.header-anchor {
opacity: 1;
}
}
} }
figure { figure {
@ -264,6 +289,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;
@ -412,4 +442,20 @@
margin-right: calc((var(--card-padding)) * -1); margin-right: calc((var(--card-padding)) * -1);
width: calc(100% + var(--card-padding) * 2); width: calc(100% + var(--card-padding) * 2);
} }
/// Make long KaTeX equations scrollable in the x-axis
.katex-display > .katex {
overflow-x: auto;
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;
}
} }

View File

@ -78,4 +78,5 @@
height: 20px; height: 20px;
} }
} }
}
}

View File

@ -127,10 +127,8 @@
} }
/* Menu style */ /* Menu style */
.menu { #main-menu {
padding-left: 0;
list-style: none; list-style: none;
flex-direction: column;
overflow-y: auto; overflow-y: auto;
flex-grow: 1; flex-grow: 1;
font-size: 1.4rem; font-size: 1.4rem;
@ -141,13 +139,15 @@
margin: 0 calc(var(--container-padding) * -1); margin: 0 calc(var(--container-padding) * -1);
padding: 30px 30px; padding: 30px 30px;
@include respond(xl) { @include respond(xl) {
padding: 15px 0; padding: 15px 0;
} }
&, &, .menu-bottom-section ol {
.menu-bottom-section { flex-direction: column;
gap: 30px; gap: 30px;
@include respond(xl) { @include respond(xl) {
gap: 25px; gap: 25px;
} }
@ -176,8 +176,8 @@
} }
svg { svg {
stroke: currentColor;
stroke-width: 1.33; stroke-width: 1.33;
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
@ -200,17 +200,19 @@
font-weight: bold; font-weight: bold;
} }
} }
}
.menu-bottom-section { &.menu-bottom-section {
margin-top: auto; margin-top: auto;
display: flex;
flex-direction: column; ol {
width: 100%; display: flex;
padding-left: 0;
}
}
} }
} }
.social-menu { .menu-social {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;

View File

@ -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);
} }
} }

View File

@ -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;
@ -44,7 +44,7 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
--zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei"; --zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
--base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif; --base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif;
--code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace; --code-font-family: Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family), monospace;
} }
/* /*
@ -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);

View File

@ -1,28 +0,0 @@
/**
* Copy button for code blocks
*/
export default () => {
const copyButtons = document.querySelectorAll('.codeblock-copy');
copyButtons.forEach(button => {
const codeblockID = button.getAttribute('data-id'),
copyText = button.textContent,
copiedText = button.getAttribute('data-copied-text');
if (!codeblockID) return;
button.addEventListener('click', (e) => {
e.preventDefault();
const codeblock = document.getElementById(codeblockID) as HTMLElement;
if (!codeblockID) return;
navigator.clipboard.writeText(codeblock.textContent)
.then(() => {
button.textContent = copiedText;
setTimeout(() => {
button.textContent = copyText;
}, 1000);
})
.catch(err => {
alert(err)
console.log('Something went wrong', err);
});
}, false);
});
}

63
assets/ts/color.ts Normal file
View File

@ -0,0 +1,63 @@
interface colorScheme {
hash: string, /// Regenerate color scheme when the image hash is changed
DarkMuted: {
hex: string,
rgb: Number[],
bodyTextColor: string
},
Vibrant: {
hex: string,
rgb: Number[],
bodyTextColor: string
}
}
let colorsCache: { [key: string]: colorScheme } = {};
if (localStorage.hasOwnProperty('StackColorsCache')) {
try {
colorsCache = JSON.parse(localStorage.getItem('StackColorsCache'));
}
catch (e) {
colorsCache = {};
}
}
async function getColor(key: string, hash: string, imageURL: string) {
if (!key) {
/**
* If no key is provided, do not cache the result
*/
return await Vibrant.from(imageURL).getPalette();
}
if (!colorsCache.hasOwnProperty(key) || colorsCache[key].hash !== hash) {
/**
* If key is provided, but not found in cache, or the hash mismatches => Regenerate color scheme
*/
const palette = await Vibrant.from(imageURL).getPalette();
colorsCache[key] = {
hash: hash,
Vibrant: {
hex: palette.Vibrant.hex,
rgb: palette.Vibrant.rgb,
bodyTextColor: palette.Vibrant.bodyTextColor
},
DarkMuted: {
hex: palette.DarkMuted.hex,
rgb: palette.DarkMuted.rgb,
bodyTextColor: palette.DarkMuted.bodyTextColor
}
}
/* Save the result in localStorage */
localStorage.setItem('StackColorsCache', JSON.stringify(colorsCache));
}
return colorsCache[key];
}
export {
getColor
}

View File

@ -8,6 +8,10 @@ class StackColorScheme {
constructor(toggleEl: HTMLElement) { constructor(toggleEl: HTMLElement) {
this.bindMatchMedia(); this.bindMatchMedia();
this.currentScheme = this.getSavedScheme(); this.currentScheme = this.getSavedScheme();
if (window.matchMedia('(prefers-color-scheme: dark)').matches === true)
this.systemPreferScheme = 'dark'
else
this.systemPreferScheme = 'light';
this.dispatchEvent(document.documentElement.dataset.scheme as colorScheme); this.dispatchEvent(document.documentElement.dataset.scheme as colorScheme);

View File

@ -1,92 +1,186 @@
const wrap = (figures: HTMLElement[]) => { declare global {
const galleryContainer = document.createElement('div'); interface Window {
galleryContainer.className = 'gallery'; PhotoSwipe: any;
PhotoSwipeUI_Default: any
const parentNode = figures[0].parentNode,
first = figures[0];
parentNode.insertBefore(galleryContainer, first)
for (const figure of figures) {
galleryContainer.appendChild(figure);
} }
} }
export default (container: HTMLElement) => { interface PhotoSwipeItem {
/// The process of wrapping image with figure tag is done using JavaScript instead of only Hugo markdown render hook w: number;
/// because it can not detect whether image is being wrapped by a link or not h: number;
/// and it lead to a invalid HTML construction (<a><figure><img></figure></a>) src: string;
const images = container.querySelectorAll('img.gallery-image') as NodeListOf<HTMLImageElement>; msrc: string;
for (const img of Array.from(images)) { title?: string;
/// Images are wrapped with figure tag if the paragraph has only images without texts el: HTMLElement;
/// This is done to allow inline images within paragraphs }
const paragraph = img.closest('p');
if (!paragraph || !container.contains(paragraph)) continue; class StackGallery {
private galleryUID: number;
private items: PhotoSwipeItem[] = [];
if (paragraph.textContent.trim() == '') { constructor(container: HTMLElement, galleryUID = 1) {
/// Once we insert figcaption, this check no longer works if (window.PhotoSwipe == undefined || window.PhotoSwipeUI_Default == undefined) {
/// So we add a class to paragraph to mark it console.error("PhotoSwipe lib not loaded.");
paragraph.classList.add('no-text'); return;
} }
let isNewLineImage = paragraph.classList.contains('no-text'); this.galleryUID = galleryUID;
if (!isNewLineImage) continue;
const hasLink = img.parentElement.tagName == 'A'; StackGallery.createGallery(container);
this.loadItems(container);
this.bindClick();
}
let el: HTMLElement = img; private loadItems(container: HTMLElement) {
/// Wrap image with figure tag, with flex-grow and flex-basis values extracted from img's data attributes this.items = [];
const figure = document.createElement('figure');
figure.style.setProperty('flex-grow', img.getAttribute('data-flex-grow') || '1');
figure.style.setProperty('flex-basis', img.getAttribute('data-flex-basis') || '0');
if (hasLink) {
/// Wrap <a> if it exists
el = img.parentElement;
}
el.parentElement.insertBefore(figure, el);
figure.appendChild(el);
/// Add figcaption if it exists const figures = container.querySelectorAll('figure.gallery-image');
if (img.hasAttribute('alt')) {
const figcaption = document.createElement('figcaption');
figcaption.innerText = img.getAttribute('alt');
figure.appendChild(figcaption);
}
/// Wrap img tag with <a> tag if image was not wrapped by <a> tag for (const el of figures) {
if (!hasLink) { const figcaption = el.querySelector('figcaption'),
figure.className = 'gallery-image'; img = el.querySelector('img');
const a = document.createElement('a'); let aux: PhotoSwipeItem = {
a.href = img.src; w: parseInt(img.getAttribute('width')),
a.setAttribute('target', '_blank'); h: parseInt(img.getAttribute('height')),
a.setAttribute('data-pswp-width', img.width.toString()); src: img.src,
a.setAttribute('data-pswp-height', img.height.toString()); msrc: img.getAttribute('data-thumb') || img.src,
img.parentNode.insertBefore(a, img); el: el
a.appendChild(img); }
if (figcaption) {
aux.title = figcaption.innerHTML;
}
this.items.push(aux);
} }
} }
const figuresEl = container.querySelectorAll('figure.gallery-image') as NodeListOf<HTMLElement>; public static createGallery(container: HTMLElement) {
let currentGallery = []; /// The process of wrapping image with figure tag is done using JavaScript instead of only Hugo markdown render hook
for (const figure of Array.from(figuresEl)) { /// because it can not detect whether image is being wrapped by a link or not
if (!currentGallery.length) { /// and it lead to a invalid HTML construction (<a><figure><img></figure></a>)
/// First iteration
currentGallery = [figure]; const images = container.querySelectorAll('img.gallery-image');
for (const img of Array.from(images)) {
/// Images are wrapped with figure tag if the paragraph has only images without texts
/// This is done to allow inline images within paragraphs
const paragraph = img.closest('p');
if (!paragraph || !container.contains(paragraph)) continue;
if (paragraph.textContent.trim() == '') {
/// Once we insert figcaption, this check no longer works
/// So we add a class to paragraph to mark it
paragraph.classList.add('no-text');
}
let isNewLineImage = paragraph.classList.contains('no-text');
if (!isNewLineImage) continue;
const hasLink = img.parentElement.tagName == 'A';
let el: HTMLElement = img;
/// Wrap image with figure tag, with flex-grow and flex-basis values extracted from img's data attributes
const figure = document.createElement('figure');
figure.style.setProperty('flex-grow', img.getAttribute('data-flex-grow') || '1');
figure.style.setProperty('flex-basis', img.getAttribute('data-flex-basis') || '0');
if (hasLink) {
/// Wrap <a> if it exists
el = img.parentElement;
}
el.parentElement.insertBefore(figure, el);
figure.appendChild(el);
/// Add figcaption if it exists
if (img.hasAttribute('alt')) {
const figcaption = document.createElement('figcaption');
figcaption.innerText = img.getAttribute('alt');
figure.appendChild(figcaption);
}
/// Wrap img tag with <a> tag if image was not wrapped by <a> tag
if (!hasLink) {
figure.className = 'gallery-image';
const a = document.createElement('a');
a.href = img.src;
a.setAttribute('target', '_blank');
img.parentNode.insertBefore(a, img);
a.appendChild(img);
}
} }
else if (figure.previousElementSibling === currentGallery[currentGallery.length - 1]) {
/// Adjacent figures const figuresEl = container.querySelectorAll('figure.gallery-image');
currentGallery.push(figure);
let currentGallery = [];
for (const figure of figuresEl) {
if (!currentGallery.length) {
/// First iteration
currentGallery = [figure];
}
else if (figure.previousElementSibling === currentGallery[currentGallery.length - 1]) {
/// Adjacent figures
currentGallery.push(figure);
}
else if (currentGallery.length) {
/// End gallery
StackGallery.wrap(currentGallery);
currentGallery = [figure];
}
} }
else if (currentGallery.length) {
/// End gallery if (currentGallery.length > 0) {
wrap(currentGallery); StackGallery.wrap(currentGallery);
currentGallery = [figure];
} }
} }
if (currentGallery.length > 0) { /**
wrap(currentGallery); * Wrap adjacent figure tags with div.gallery
* @param figures
*/
public static wrap(figures: HTMLElement[]) {
const galleryContainer = document.createElement('div');
galleryContainer.className = 'gallery';
const parentNode = figures[0].parentNode,
first = figures[0];
parentNode.insertBefore(galleryContainer, first)
for (const figure of figures) {
galleryContainer.appendChild(figure);
}
} }
};
public open(index: number) {
const pswp = document.querySelector('.pswp') as HTMLDivElement;
const ps = new window.PhotoSwipe(pswp, window.PhotoSwipeUI_Default, this.items, {
index: index,
galleryUID: this.galleryUID,
getThumbBoundsFn: (index) => {
const thumbnail = this.items[index].el.getElementsByTagName('img')[0],
pageYScroll = window.pageYOffset || document.documentElement.scrollTop,
rect = thumbnail.getBoundingClientRect();
return { x: rect.left, y: rect.top + pageYScroll, w: rect.width };
}
});
ps.init();
}
private bindClick() {
for (const [index, item] of this.items.entries()) {
const a = item.el.querySelector('a');
a.addEventListener('click', (e) => {
e.preventDefault();
this.open(index);
})
}
}
}
export default StackGallery;

View File

@ -5,7 +5,8 @@
* @website: https://jimmycai.com * @website: https://jimmycai.com
* @link: https://github.com/CaiJimmy/hugo-theme-stack * @link: https://github.com/CaiJimmy/hugo-theme-stack
*/ */
import StackCodeBlock from "ts/codeblock"; import StackGallery from "ts/gallery";
import { getColor } from 'ts/color';
import menu from 'ts/menu'; import menu from 'ts/menu';
import createElement from 'ts/createElement'; import createElement from 'ts/createElement';
import StackColorScheme from 'ts/colorScheme'; import StackColorScheme from 'ts/colorScheme';
@ -21,12 +22,76 @@ let Stack = {
const articleContent = document.querySelector('.article-content') as HTMLElement; const articleContent = document.querySelector('.article-content') as HTMLElement;
if (articleContent) { if (articleContent) {
new StackGallery(articleContent);
setupSmoothAnchors(); setupSmoothAnchors();
setupScrollspy(); setupScrollspy();
} }
/**
* Add linear gradient background to tile style article
*/
const articleTile = document.querySelector('.article-list--tile');
if (articleTile) {
let observer = new IntersectionObserver(async (entries, observer) => {
entries.forEach(entry => {
if (!entry.isIntersecting) return;
observer.unobserve(entry.target);
const articles = entry.target.querySelectorAll('article.has-image');
articles.forEach(async articles => {
const image = articles.querySelector('img'),
imageURL = image.src,
key = image.getAttribute('data-key'),
hash = image.getAttribute('data-hash'),
articleDetails: HTMLDivElement = articles.querySelector('.article-details');
const colors = await getColor(key, hash, imageURL);
articleDetails.style.background = `
linear-gradient(0deg,
rgba(${colors.DarkMuted.rgb[0]}, ${colors.DarkMuted.rgb[1]}, ${colors.DarkMuted.rgb[2]}, 0.5) 0%,
rgba(${colors.Vibrant.rgb[0]}, ${colors.Vibrant.rgb[1]}, ${colors.Vibrant.rgb[2]}, 0.75) 100%)`;
})
})
});
observer.observe(articleTile)
}
/**
* Add copy button to code block
*/
const highlights = document.querySelectorAll('.article-content div.highlight');
const copyText = `Copy`,
copiedText = `Copied!`;
highlights.forEach(highlight => {
const copyButton = document.createElement('button');
copyButton.innerHTML = copyText;
copyButton.classList.add('copyCodeButton');
highlight.appendChild(copyButton);
const codeBlock = highlight.querySelector('code[data-lang]');
if (!codeBlock) return;
copyButton.addEventListener('click', () => {
navigator.clipboard.writeText(codeBlock.textContent)
.then(() => {
copyButton.textContent = copiedText;
setTimeout(() => {
copyButton.textContent = copyText;
}, 1000);
})
.catch(err => {
alert(err)
console.log('Something went wrong', err);
});
});
});
new StackColorScheme(document.getElementById('dark-mode-toggle')); new StackColorScheme(document.getElementById('dark-mode-toggle'));
StackCodeBlock();
} }
} }

View File

@ -53,7 +53,14 @@ class Search {
this.resultTitle = resultTitle; this.resultTitle = resultTitle;
this.resultTitleTemplate = resultTitleTemplate; this.resultTitleTemplate = resultTitleTemplate;
this.handleQueryString(); /// Check if there's already value in the search input
if (this.input.value.trim() !== '') {
this.doSearch(this.input.value.split(' '));
}
else {
this.handleQueryString();
}
this.bindQueryStringChange(); this.bindQueryStringChange();
this.bindSearchForm(); this.bindSearchForm();
} }
@ -227,6 +234,7 @@ class Search {
Search.updateQueryString(keywords, true); Search.updateQueryString(keywords, true);
if (keywords === '') { if (keywords === '') {
lastSearch = '';
return this.clear(); return this.clear();
} }

View File

@ -21,12 +21,15 @@ function setupSmoothAnchors() {
aElement.addEventListener("click", clickEvent => { aElement.addEventListener("click", clickEvent => {
clickEvent.preventDefault(); clickEvent.preventDefault();
let targetId = aElement.getAttribute("href").substring(1); const targetId = decodeURI(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. target = document.getElementById(targetId) as HTMLElement,
let target = document.getElementById(targetId.replace(":", "\\:")) as HTMLElement; offset = target.getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top;
window.history.pushState({}, "", aElement.getAttribute("href")); window.history.pushState({}, "", aElement.getAttribute("href"));
scrollTo({ top: target.offsetTop, behavior: "smooth" }); scrollTo({
top: offset,
behavior: "smooth"
});
}); });
}); });
} }

149
config.yaml Normal file
View File

@ -0,0 +1,149 @@
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:
compact: false
emoji:
subtitle:
avatar:
enabled: true
local: true
src: img/avatar.png
article:
headingAnchor: false
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:
beaudar:
repo:
issueTerm: pathname
label:
theme:
remark42:
host:
site:
locale:
vssue:
platform:
owner:
repo:
clientId:
clientSecret:
autoCreateIssue: false
# Waline client configuration see: https://waline.js.org/en/reference/client/props.html
waline:
serverURL:
lang:
visitor:
avatar:
emoji:
- https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo
requiredMeta:
- nick
- mail
locale:
admin: Admin
placeholder:
twikoo:
envId:
region:
path:
lang:
giscus:
repo:
repoID:
category:
categoryID:
mapping:
strict:
lightTheme:
darkTheme:
reactionsEnabled: 1
emitMetadata: 0
inputPosition:
lang:
gitalk:
owner:
admin:
repo:
clientID:
clientSecret:
cusdis:
host:
id:
widgets:
homepage: []
page: []
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

View File

@ -1,3 +0,0 @@
[hugoVersion]
extended = true
min = "0.100.0"

View File

@ -1,52 +0,0 @@
# Theme's default configuration
mainSections = ["post"]
featuredImageField = "image"
rssFullContent = true
[footer]
[dateFormat]
published = "Jan 02, 2006"
lastUpdated = "Jan 02, 2006 15:04 MST"
[sidebar]
compact = false
[sidebar.avatar]
enabled = true
local = true
src = "img/avatar.png"
[article]
math = false
toc = true
readingTime = true
[article.license]
enabled = false
default = "Licensed under CC BY-NC-SA 4.0"
[comments]
enabled = false
provider = "disqus"
[widgets]
homepage = []
page = []
[opengraph.twitter]
card = "summary_large_image"
[defaultImage.opengraph]
enabled = false
local = false
[colorScheme]
toggle = true
default = "auto"
[imageProcessing.cover]
enabled = true
[imageProcessing.content]
enabled = true

View File

@ -1,15 +1,37 @@
KaTeX: Vibrant:
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/katex.min.css - src: https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js
integrity: sha256-J+iAE0sgH8QSz9hpcDxXIftnj65JEZgNhGcgReTTK9s= integrity: sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=
type: style type: script
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/katex.min.js PhotoSwipe:
integrity: sha256-InsNdER1b2xUewP+pKCUJpkhiqwHgqiPXDlIk7GzBu4= - src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js
integrity: sha256-ePwmChbbvXbsO02lbM3HoHbSHTHFAeChekF1xKJdleo=
type: script type: script
defer: true defer: true
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/contrib/auto-render.min.js - src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js
integrity: sha256-y39Mpg7V3D4lhBX4x6O0bUqTV4pSrfgwEfGKfxkOdgI= integrity: sha256-UKkzOn/w1mBxRmLLGrSeyB4e1xbrp4xylgAWb3M42pU=
type: script
defer: true
- src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css
type: style
- src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css
type: style
KaTeX:
- src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css
integrity: sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV
type: style
- src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js
integrity: sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8
type: script
defer: true
- src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js
integrity: sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05
type: script type: script
defer: true defer: true

3
exampleSite/README.md Normal file
View File

@ -0,0 +1,3 @@
This is an example site used for solely for testing purposes. **It is not meant to be used as a template for your site**.
To create a new site, please use the starter template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter/)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

View File

@ -1,20 +0,0 @@
# Change baseurl before deploy
baseurl = "https://demo.stack.jimmycai.com"
languageCode = "en-us"
paginate = 5
title = "Hugo Theme Stack Starter"
theme = "hugo-theme-stack"
# Theme i18n support
# 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"
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
# This will make .Summary and .WordCount behave correctly for CJK languages.
hasCJKLanguage = false
# Change it to your Disqus shortname before using
disqusShortname = "hugo-theme-stack"
# GA Tracking ID
googleAnalytics = ""

View File

@ -1,16 +0,0 @@
# Enable multilanguage site support
[en]
languageName = "English"
title = "Hugo Theme Stack Example Site"
weight = 1
[zh-cn]
languageName = "中文"
title = "Hugo 主题 Stack 演示站点"
weight = 2
[ar]
languageName = "عربي"
languagedirection = "rtl"
title = "موقع تجريبي"
weight = 3

View File

@ -1,18 +0,0 @@
# Markdown renderer configuration
[goldmark.renderer]
# Set it to true if you have HTML content inside Markdown
unsafe = false
[tableOfContents]
endLevel = 4
ordered = true
startLevel = 2
[highlight]
noClasses = false
codeFences = true
guessSyntax = true
lineNoStart = 1
lineNos = true
lineNumbersInTable = true
tabWidth = 4

View File

@ -1,20 +0,0 @@
### Custom menu
### See https://docs.stack.jimmycai.com/configuration/custom-menu.html
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
main = []
[[social]]
identifier = "github"
name = "GitHub"
url = "https://github.com/CaiJimmy/hugo-theme-stack"
[social.params]
icon = "brand-github"
[[social]]
identifier = "twitter"
name = "Twitter"
url = "https://twitter.com"
[social.params]
icon = "brand-twitter"

View File

@ -1,106 +0,0 @@
mainSections = ["post"]
featuredImageField = "image"
rssFullContent = true
favicon = "img/favicon.png"
[footer]
since = 2020
[dateFormat]
published = "Jan 02, 2006"
lastUpdated = "Jan 02, 2006 15:04 MST"
[sidebar]
emoji = "🍥"
subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
[sidebar.avatar]
enabled = true
local = true
src = "img/logo.jpg"
[article]
math = false
toc = true
readingTime = true
[article.license]
enabled = true
default = "Licensed under CC BY-NC-SA 4.0"
[comments]
enabled = true
provider = "disqus"
[comments.disqusjs]
[comments.utterances]
issueTerm = "pathname"
[comments.remark42]
[comments.vssue]
autoCreateIssue = false
[comments.waline]
emoji = ["https://unpkg.com/@waline/emojis@1.0.1/weibo"]
requiredMeta = ["name", "email", "url"]
[comments.waline.locale]
admin = "Admin"
[comments.twikoo]
[comments.cactus]
defaultHomeserverUrl = "https://matrix.cactus.chat:8448"
serverName = "cactus.chat"
siteName = ""
[comments.giscus]
reactionsEnabled = 1
emitMetadata = 0
[comments.gitalk]
[comments.cusdis]
[[widgets.homepage]]
type = "search"
[[widgets.homepage]]
type = "archives"
[widgets.homepage.params]
limit = 5
[[widgets.homepage]]
type = "categories"
[widgets.homepage.params]
limit = 10
[[widgets.homepage]]
type = "tag-cloud"
[widgets.homepage.params]
limit = 10
[[widgets.page]]
type = "toc"
[opengraph.twitter]
card = "summary_large_image"
[defaultImage.opengraph]
enabled = false
local = false
[colorScheme]
toggle = true
default = "auto"
[imageProcessing.cover]
enabled = true
[imageProcessing.content]
enabled = true

View File

@ -1,3 +0,0 @@
# Permalinks format of each content section
post = "/p/:slug/"
page = "/:slug/"

View File

@ -1,12 +0,0 @@
# Related contents configuration
includeNewer = true
threshold = 60
toLower = false
[[indices]]
name = "tags"
weight = 100
[[indices]]
name = "categories"
weight = 200

View File

@ -15,7 +15,7 @@ menu:
icon: user icon: user
--- ---
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
Hugo makes use of a variety of open source projects including: Hugo makes use of a variety of open source projects including:
@ -29,6 +29,6 @@ Hugo is ideal for blogs, corporate websites, creative portfolios, online magazin
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
Learn more and contribute on [GitHub](https://github.com/gohugoio). Learn more and contribute on [GitHub](https://github.com/gohugoio).

View File

@ -0,0 +1,50 @@
+++
author = "Hugo Authors"
title = "Emoji Support"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
categories = [
"Test"
]
tags = [
"emoji",
]
image = "the-creative-exchange-d2zvqp3fpro-unsplash.jpg"
+++
Emoji can be enabled in a Hugo project in a number of ways.
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
***
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -42,12 +42,12 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
### Blockquote without attribution #### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae. > Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote. > **Note** that you can use *Markdown syntax* within a blockquote.
### Blockquote with attribution #### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.<br> > Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite> > — <cite>Rob Pike[^1]</cite>
@ -63,7 +63,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
Bob | 27 Bob | 27
Alice | 23 Alice | 23
### Inline Markdown within tables #### Inline Markdown within tables
| Italics | Bold | Code | | Italics | Bold | Code |
| -------- | -------- | ------ | | -------- | -------- | ------ |
@ -74,7 +74,8 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex. | Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus | Proin sit amet velit nec enim imperdiet vehicula. | Ut bibendum vestibulum quam, eu egestas turpis gravida nec | Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien | | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex. | Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus | Proin sit amet velit nec enim imperdiet vehicula. | Ut bibendum vestibulum quam, eu egestas turpis gravida nec | Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien |
## Code Blocks ## Code Blocks
### Code block with backticks
#### Code block with backticks
```html ```html
<!doctype html> <!doctype html>
@ -89,7 +90,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
</html> </html>
``` ```
### Code block indented with four spaces #### Code block indented with four spaces
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
@ -102,7 +103,21 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
</body> </body>
</html> </html>
### Diff code block #### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
#### Diff code block
```diff ```diff
[dependencies.bevy] [dependencies.bevy]
@ -114,19 +129,19 @@ rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13"
## List Types ## List Types
### Ordered List #### Ordered List
1. First item 1. First item
2. Second item 2. Second item
3. Third item 3. Third item
### Unordered List #### Unordered List
* List item * List item
* Another item * Another item
* And another item * And another item
### Nested list #### Nested list
* Fruit * Fruit
* Apple * Apple
@ -144,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.

View File

@ -21,27 +21,23 @@ In this example we will be using [KaTeX](https://katex.org/)
{{ end }} {{ end }}
``` ```
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration - To enable KaTeX globally set the parameter `math` to `true` in a project's configuration
- To enable KaTex on a per page basis include the parameter `math: true` in content files - To enable KaTeX on a per page basis include the parameter `math: true` in content files
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) **Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}} {{< math.inline >}}
{{ if or .Page.Params.math .Site.Params.math }} {{ if or .Page.Params.math .Site.Params.math }}
<!-- KaTeX --> <!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
{{ end }} {{ end }}
{{</ math.inline >}} {{</ math.inline >}}
### Examples ### Examples
{{< math.inline >}} Inline math: $\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$
<p>
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
</p>
{{</ math.inline >}}
Block math: Block math:
$$ $$

269
exampleSite/hugo.yaml Normal file
View File

@ -0,0 +1,269 @@
baseurl: https://example.com/
languageCode: en-us
theme: hugo-theme-stack
title: Example Site
copyright: Example Person
# Theme i18n support
# 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
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
# This will make .Summary and .WordCount behave correctly for CJK languages.
hasCJKLanguage: false
languages:
en:
languageName: English
title: Example Site
weight: 1
params:
sidebar:
subtitle: Example description
zh-cn:
languageName: 中文
title: 演示站点
weight: 2
params:
sidebar:
subtitle: 演示说明
ar:
languageName: عربي
languagedirection: rtl
title: موقع تجريبي
weight: 3
params:
sidebar:
subtitle: وصف تجريبي
services:
# Change it to your Disqus shortname before using
disqus:
shortname: "hugo-theme-stack"
# GA Tracking ID
googleAnalytics:
id:
pagination:
pagerSize: 3
permalinks:
post: /p/:slug/
page: /:slug/
params:
mainSections:
- post
featuredImageField: image
rssFullContent: true
favicon: # e.g.: favicon placed in `static/favicon.ico` of your site folder, then set this field to `/favicon.ico` (`/` is necessary)
footer:
since: 2020
customText:
dateFormat:
published: Jan 02, 2006
lastUpdated: Jan 02, 2006 15:04 MST
sidebar:
emoji: 🍥
subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
avatar:
enabled: true
local: true
src: img/avatar.png
article:
math: false
toc: true
readingTime: true
license:
enabled: true
default: Licensed under CC BY-NC-SA 4.0
comments:
enabled: true
provider: disqus
disqusjs:
shortname:
apiUrl:
apiKey:
admin:
adminLabel:
utterances:
repo:
issueTerm: pathname
label:
beaudar:
repo:
issueTerm: pathname
label:
theme:
remark42:
host:
site:
locale:
vssue:
platform:
owner:
repo:
clientId:
clientSecret:
autoCreateIssue: false
# Waline client configuration see: https://waline.js.org/en/reference/component.html
waline:
serverURL:
lang:
pageview:
emoji:
- https://unpkg.com/@waline/emojis@1.0.1/weibo
requiredMeta:
- name
- email
- url
locale:
admin: Admin
placeholder:
twikoo:
envId:
region:
path:
lang:
# See https://cactus.chat/docs/reference/web-client/#configuration for description of the various options
cactus:
defaultHomeserverUrl: "https://matrix.cactus.chat:8448"
serverName: "cactus.chat"
siteName: "" # You must insert a unique identifier here matching the one you registered (See https://cactus.chat/docs/getting-started/quick-start/#register-your-site)
giscus:
repo:
repoID:
category:
categoryID:
mapping:
lightTheme:
darkTheme:
reactionsEnabled: 1
emitMetadata: 0
gitalk:
owner:
admin:
repo:
clientID:
clientSecret:
proxy:
cusdis:
host:
id:
widgets:
homepage:
- type: search
- type: archives
params:
limit: 5
- type: categories
params:
limit: 10
- type: tag-cloud
params:
limit: 10
page:
- type: toc
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
### Custom menu
### See https://stack.jimmycai.com/config/menu
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
menu:
main: []
social:
- identifier: github
name: GitHub
url: https://github.com/CaiJimmy/hugo-theme-stack
params:
icon: brand-github
- identifier: twitter
name: Twitter
url: https://twitter.com
params:
icon: brand-twitter
related:
includeNewer: true
threshold: 60
toLower: false
indices:
- name: tags
weight: 100
- name: categories
weight: 200
markup:
goldmark:
extensions:
passthrough:
enable: true
delimiters:
block:
- - \[
- \]
- - $$
- $$
inline:
- - \(
- \)
renderer:
## Set to true if you have HTML content inside Markdown
unsafe: true
tableOfContents:
endLevel: 4
ordered: true
startLevel: 2
highlight:
noClasses: false
codeFences: true
guessSyntax: true
lineNoStart: 1
lineNos: true
lineNumbersInTable: true
tabWidth: 4

2
go.mod
View File

@ -1,3 +1,3 @@
module github.com/CaiJimmy/hugo-theme-stack/v4 module github.com/CaiJimmy/hugo-theme-stack/v3
go 1.17 go 1.17

View File

@ -1,41 +1,74 @@
toggleMenu: اخفي القائمة toggleMenu:
other: اخفي القائمة
darkMode: الوضع الداكن darkMode:
other: الوضع الداكن
list: list:
page: page:
one: "{{ .Count }} صفحه" one: "{{ .Count }} صفحه"
other: "{{ .Count }} صفحات" other: "{{ .Count }} صفحات"
section: قسم
section:
other: قسم
subsection: subsection:
one: قسم فرعي one: قسم فرعي
other: اقسام فرعية other: اقسام فرعية
article: article:
back: خلف back:
tableOfContents: جدول المحتويات other: خلف
relatedContent: محتوى مشابهه
lastUpdatedOn: التعديل الاخير tableOfContents:
other: جدول المحتويات
relatedContent:
other: محتوى مشابهه
lastUpdatedOn:
other: التعديل الاخير
readingTime: readingTime:
one: "تُقرأ خلال دقيقة" one: "تُقرأ خلال دقيقة"
other: "تُقرأ خلال {{ .Count }} دقائق" other: "تُقرأ خلال {{ .Count }} دقائق"
notFound: notFound:
title: غير موجود title:
subtitle: تعذر العثور على الصفحة المطلوبة. other: غير موجود
subtitle:
other: تعذر العثور على الصفحة المطلوبة.
widget: widget:
archives: archives:
title: الارشيفات title:
more: اكثر other: الارشيفات
more:
other: اكثر
tagCloud: tagCloud:
title: وسوم title:
other: وسوم
categoriesCloud:
title:
other: التصنيفات
search: search:
title: بحث title:
placeholder: اكتب... other: بحث
resultTitle: "#PAGES_COUNT نتيجة (#TIME_SECONDS ثواني)"
placeholder:
other: اكتب...
resultTitle:
other: "#PAGES_COUNT نتيجة (#TIME_SECONDS ثواني)"
footer: footer:
builtWith: "مبني بستخدام {{ .Generator }}" builtWith:
designedBy: "قالب {{ .Theme }} مصمم من {{ .DesignedBy }}" other: "مبني باستخدام {{ .Generator }}"
designedBy:
other: "قالب {{ .Theme }} مصمم من {{ .DesignedBy }}"

72
i18n/be.yaml Normal file
View File

@ -0,0 +1,72 @@
toggleMenu:
other: Паказаць/схаваць меню
darkMode:
other: Цёмны рэжым
list:
page:
one: "{{ .Count }} старонка"
few: "{{ .Count }} старонкі"
many: "{{ .Count }} старонак"
other: "{{ .Count }} старонкі"
section:
other: Раздзел
subsection:
one: Падраздзел
few: Падраздзелы
many: Падраздзелы
other: Падраздзелы
article:
back:
other: Назад
relatedContent:
other: Таксама рэкамендуем
lastUpdatedOn:
other: Абноўлена
tableOfContents:
other: Змест
readingTime:
other: "Час чытання: {{ .Count }} хв."
notFound:
title:
other: Не знойдзена
subtitle:
other: Запытваемая старонка не існуе
widget:
archives:
title:
other: Архівы
more:
other: Яшчэ
tagCloud:
title:
other: Тэгі
search:
title:
other: Пошук
placeholder:
other: Увядзіце нешта...
resultTitle:
other: "Знайдзена #PAGES_COUNT старонак (за #TIME_SECONDS с.)"
footer:
builtWith:
other: Створана пры дапамозе {{ .Generator }}
designedBy:
other: Тэма {{ .Theme }}, дызайн {{ .DesignedBy }}

73
i18n/bg.yaml Normal file
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 }} minute read"
other: "{{ .Count }} minute read"
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 }}

View File

@ -1,43 +1,73 @@
toggleMenu: টগল মেনু toggleMenu:
other: টগল মেনু
darkMode: ডার্ক মোড darkMode:
other: ডার্ক মোড
list: list:
page: page:
one: "{{ .Count }} পৃষ্ঠা" one: "{{ .Count }} পাতা"
other: "{{ .Count }} পৃষ্ঠা" other: "{{ .Count }} পাতা"
section: অনুচ্ছেদ
section:
other: অনুচ্ছেদ
subsection: subsection:
one: উপঅনুচ্ছেদ one: উপ-অনুচ্ছেদ
other: উপঅনুচ্ছেদ other: উপ-অনুচ্ছেদ
article: article:
back: পেছনে যান back:
tableOfContents: সূচিপত্র other: পেছনে
relatedContent: সম্পর্কিত বিষয়বস্তু
lastUpdatedOn: শেষ হালনাগাদ করা হয়েছে tableOfContents:
other: সূচিপত্র
relatedContent:
other: সম্পর্কিত বিষয়বস্তু
lastUpdatedOn:
other: সর্বশেষ আপডেট করা হয়েছে
readingTime: readingTime:
one: "{{ .Count }} মিনিটে পড়া যাবে" one: "{{ .Count }} মিনিটে পড়া যাবে"
other: "{{ .Count }} মিনিটে পড়া যাবে" other: "{{ .Count }} মিনিটে পড়া যাবে"
notFound: notFound:
title: পাওয়া যায়নি title:
subtitle: এই পৃষ্ঠাটি বিদ্যমান নেই other: পাওয়া যায়নি
subtitle:
other: এই পাতাটি বিদ্যমান নেই
widget: widget:
archives: archives:
title: আর্কাইভ title:
more: আরও other: আর্কাইভ
more:
other: আরও
tagCloud: tagCloud:
title: ট্যাগ title:
other: ট্যাগ
categoriesCloud: categoriesCloud:
title: বিভাগ title:
other: বিভাগ
search: search:
title: অনুসন্ধান title:
placeholder: কিছু টাইপ করুন... other: অনুসন্ধান
resultTitle: "#PAGES_COUNT পৃষ্ঠা (#TIME_SECONDS সেকেন্ড)"
placeholder:
other: কিছু টাইপ করুন...
resultTitle:
other: "#PAGES_COUNT পাতা (#TIME_SECONDS সেকেন্ড)"
footer: footer:
builtWith: "{{ .Generator }} দিয়ে নির্মিত" builtWith:
designedBy: "থিম {{ .Theme }} ডিজাইন করেছেন {{ .DesignedBy }}" other: "{{ .Generator }} দিয়ে নির্মিত"
designedBy:
other: "থিম {{ .Theme }} ডিজাইন করেছেন {{ .DesignedBy }}"

View File

@ -1,43 +1,73 @@
toggleMenu: Toggle Menu toggleMenu:
other: Toggle Menu
darkMode: Mode fosc darkMode:
other: Mode fosc
list: list:
page: page:
one: "{{ .Count }} pàgina" one: "{{ .Count }} pàgina"
other: "{{ .Count }} pàgines" other: "{{ .Count }} pàgines"
section: Secció
section:
other: Secció
subsection: subsection:
one: Subsecció one: Subsecció
other: Subseccions other: Subseccions
article: article:
back: Tornar back:
tableOfContents: Taula de contingut other: Tornar
relatedContent: Continguts relacionats
lastUpdatedOn: Última vegada actualitzat tableOfContents:
other: Taula de contingut
relatedContent:
other: Continguts relacionats
lastUpdatedOn:
other: Última vegada actualitzat
readingTime: readingTime:
one: "{{ .Count }} minut a llegir" one: "{{ .Count }} minut a llegir"
other: "{{ .Count }} minuts a llegir" other: "{{ .Count }} minuts a llegir"
notFound: notFound:
title: No Trobat title:
subtitle: Aquesta pàgina no existeix other: No Trobat
subtitle:
other: Aquesta pàgina no existeix
widget: widget:
archives: archives:
title: Arxiu title:
more: Més other: Arxiu
more:
other: Més
tagCloud: tagCloud:
title: Etiquetes title:
other: Etiquetes
categoriesCloud: categoriesCloud:
title: Categories title:
other: Categories
search: search:
title: Cerca title:
placeholder: Tecleja alguna cosa... other: Cerca
resultTitle: "#PAGES_COUNT pàgines en (#TIME_SECONDS segons)"
placeholder:
other: Tecleja alguna cosa...
resultTitle:
other: "#PAGES_COUNT pàgines en (#TIME_SECONDS segons)"
footer: footer:
builtWith: Creat amb {{ .Generator }} builtWith:
designedBy: Tema {{ .Theme }} dissenyat per {{ .DesignedBy }} other: Creat amb {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} dissenyat per {{ .DesignedBy }}

73
i18n/cs.yaml Normal file
View File

@ -0,0 +1,73 @@
toggleMenu:
other: Skrýt menu
darkMode:
other: Tmavý režim
list:
page:
one: "{{ .Count }} stránka"
other: "{{ .Count }} stránek"
section:
other: Kategorie
subsection:
one: Podkategorie
other: Podkategorie
article:
back:
other: Zpět
tableOfContents:
other: Obsah
relatedContent:
other: Související
lastUpdatedOn:
other: Naposledy aktualizováno
readingTime:
one: "{{ .Count }} minuta"
other: "{{ .Count }} minut"
notFound:
title:
other: Nenalezeno
subtitle:
other: Tato stránka neexistuje
widget:
archives:
title:
other: Archivy
more:
other: Více
tagCloud:
title:
other: Štítky
categoriesCloud:
title:
other: Kategorie
search:
title:
other: Hledat
placeholder:
other: Zadejte něco...
resultTitle:
other: "#PAGES_COUNT stránek (#TIME_SECONDS sekund)"
footer:
builtWith:
other: Vytvořeno pomocí {{ .Generator }}
designedBy:
other: Šablona {{ .Theme }} od {{ .DesignedBy }}

View File

@ -1,43 +1,74 @@
toggleMenu: Menü umschalten toggleMenu:
other: Menü umschalten
darkMode: Dunkler Modus darkMode:
other: Dunkler Modus
list: list:
page: page:
one: "{{ .Count }} Seite" one: "{{ .Count }} Seite"
other: "{{ .Count }} Seiten" other: "{{ .Count }} Seiten"
section: Abschnitt
section:
other: Abschnitt
subsection: subsection:
one: Unterabschnitt one: Unterabschnitt
other: Unterabschnitte other: Unterabschnitte
article: article:
back: Zurück back:
tableOfContents: Inhaltsverzeichnis other: Zurück
relatedContent: Verwandte Inhalte
lastUpdatedOn: Zuletzt aktualisiert am tableOfContents:
other: Inhaltsverzeichnis
relatedContent:
other: Verwandte Inhalte
lastUpdatedOn:
other: Zuletzt aktualisiert am
readingTime: readingTime:
one: "{{ .Count }} Minute Lesezeit" one: "{{ .Count }} Minute Lesezeit"
other: "{{ .Count }} Minuten Lesezeit" other: "{{ .Count }} Minuten Lesezeit"
notFound: notFound:
title: Seite nicht gefunden title:
subtitle: Diese Seite existiert nicht other: Seite nicht gefunden
subtitle:
other: Diese Seite existiert nicht
widget: widget:
archives: archives:
title: Archiv title:
more: Weitere other: Archiv
more:
other: Weitere
tagCloud: tagCloud:
title: Schlagwörter title:
other: Schlagwörter
categoriesCloud: categoriesCloud:
title: Kategorien title:
other: Kategorien
search: search:
title: Suche title:
placeholder: Etwas tippen... other: Suche
resultTitle: "#PAGES_COUNT Seiten (#TIME_SECONDS Sekunden)"
placeholder:
other: Etwas tippen...
resultTitle:
other: "#PAGES_COUNT Seiten (#TIME_SECONDS Sekunden)"
footer: footer:
builtWith: Erstellt mit {{ .Generator }} builtWith:
designedBy: Theme {{ .Theme }} gestaltet von {{ .DesignedBy }} other: Erstellt mit {{ .Generator }}
designedBy:
other: Theme {{ .Theme }} gestaltet von {{ .DesignedBy }}

View File

@ -1,41 +1,70 @@
toggleMenu: Εναλλαγή Μενού toggleMenu:
other: Εναλλαγή Μενού
darkMode: Σκοτεινό θέμα darkMode:
other: Σκοτεινό θέμα
list: list:
page: page:
one: "{{ .Count }} σελιδα" one: "{{ .Count }} σελιδα"
other: "{{ .Count }} σελιδες" other: "{{ .Count }} σελιδες"
section: Ενότητα
section:
other: Ενότητα
subsection: subsection:
one: Υποενότητα one: Υποενότητα
other: Υποενότητες other: Υποενότητες
article: article:
back: Πισω back:
tableOfContents: Πινακας περιεχομενων other: Πισω
relatedContent: Σχετικο περιεχομενο
lastUpdatedOn: Τελευταια τροποποιηση στις tableOfContents:
other: Πινακας περιεχομενων
relatedContent:
other: Σχετικο περιεχομενο
lastUpdatedOn:
other: Τελευταια τροποποιηση στις
readingTime: readingTime:
one: "{{ .Count }} λεπτό ανάγνωσης" one: "{{ .Count }} λεπτό ανάγνωσης"
### Seems that there's no need to add 's' even if it's plural in English
other: "{{ .Count }} λεπτά ανάγνωσης" other: "{{ .Count }} λεπτά ανάγνωσης"
notFound: notFound:
title: Δε βρέθηκε title:
subtitle: Η σελίδα δε βρέθηκε. other: Δε βρέθηκε
subtitle:
other: Η σελίδα δε βρέθηκε.
widget: widget:
archives: archives:
title: Αρχειο title:
more: Περισσότερα other: Αρχειο
more:
other: Περισσότερα
tagCloud: tagCloud:
title: Tags title:
other: Tags
search: search:
title: Αναζήτηση title:
placeholder: Πληκτρολογήστε κάτι... other: Αναζήτηση
resultTitle: "#PAGES_COUNT σελιδες (#TIME_SECONDS δευτερολεπτα)"
placeholder:
other: Πληκτρολογήστε κάτι...
resultTitle:
other: "#PAGES_COUNT σελιδες (#TIME_SECONDS δευτερολεπτα)"
footer: footer:
builtWith: Δημιουργήθηκε με τη χρήση {{ .Generator }} builtWith:
designedBy: Το θέμα {{ .Theme }} σχεδιάστηκε από το {{ .DesignedBy }} other: Δημιουργήθηκε με τη χρήση {{ .Generator }}
designedBy:
other: Το θέμα {{ .Theme }} σχεδιάστηκε από το {{ .DesignedBy }}

View File

@ -1,43 +1,73 @@
toggleMenu: Toggle Menu toggleMenu:
other: Toggle Menu
darkMode: Dark Mode darkMode:
other: Dark Mode
list: list:
page: page:
one: "{{ .Count }} page" one: "{{ .Count }} page"
other: "{{ .Count }} pages" other: "{{ .Count }} pages"
section: Section
section:
other: Section
subsection: subsection:
one: Subsection one: Subsection
other: Subsections other: Subsections
article: article:
back: Back back:
tableOfContents: Table of contents other: Back
relatedContent: Related content
lastUpdatedOn: Last updated on tableOfContents:
other: Table of contents
relatedContent:
other: Related content
lastUpdatedOn:
other: Last updated on
readingTime: readingTime:
one: "{{ .Count }} minute read" one: "{{ .Count }} minute read"
other: "{{ .Count }} minute read" other: "{{ .Count }} minute read"
notFound: notFound:
title: Not Found title:
subtitle: This page does not exist other: Not Found
subtitle:
other: This page does not exist
widget: widget:
archives: archives:
title: Archives title:
more: More other: Archives
more:
other: More
tagCloud: tagCloud:
title: Tags title:
other: Tags
categoriesCloud: categoriesCloud:
title: Categories title:
other: Categories
search: search:
title: Search title:
placeholder: Type something... other: Search
resultTitle: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
placeholder:
other: Type something...
resultTitle:
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
footer: footer:
builtWith: Built with {{ .Generator }} builtWith:
designedBy: Theme {{ .Theme }} designed by {{ .DesignedBy }} other: Built with {{ .Generator }}
designedBy:
other: Theme {{ .Theme }} designed by {{ .DesignedBy }}

View File

@ -1,43 +1,73 @@
toggleMenu: Toggle Menu toggleMenu:
other: Ocultar menú
darkMode: Modo oscuro darkMode:
other: Modo oscuro
list: list:
page: page:
one: "{{ .Count }} página" one: "{{ .Count }} página"
other: "{{ .Count }} páginas" other: "{{ .Count }} páginas"
section: Sección
section:
other: Sección
subsection: subsection:
one: Subsección one: Subsección
other: Subsecciones other: Subsecciones
article: article:
back: Volver back:
tableOfContents: Tabla de contenido other: Volver
relatedContent: Contenidos relacionados
lastUpdatedOn: Última vez actualizado tableOfContents:
other: Tabla de contenido
relatedContent:
other: Contenidos relacionados
lastUpdatedOn:
other: Última actualización
readingTime: readingTime:
one: "{{ .Count }} minuto a leer" one: "Tiempo de lectura {{ .Count }} minuto"
other: "{{ .Count }} minutos a leer" other: "Tiempo de lectura {{ .Count }} minutos"
notFound: notFound:
title: No Encontrado title:
subtitle: Esta página no existe other: No Encontrado
subtitle:
other: Esta página no existe
widget: widget:
archives: archives:
title: Archivo title:
more: Más other: Archivo
more:
other: Más
tagCloud: tagCloud:
title: Etiquetas title:
other: Etiquetas
categoriesCloud: categoriesCloud:
title: Categorías title:
other: Categorías
search: search:
title: Búsqueda title:
placeholder: Teclea algo... other: Búsqueda
resultTitle: "#PAGES_COUNT páginas en (#TIME_SECONDS segundos)"
placeholder:
other: Escribe algo...
resultTitle:
other: "#PAGES_COUNT páginas en (#TIME_SECONDS segundos)"
footer: footer:
builtWith: Creado con {{ .Generator }} builtWith:
designedBy: Tema {{ .Theme }} diseñado por {{ .DesignedBy }} other: Creado con {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} diseñado por {{ .DesignedBy }}

View File

@ -1,43 +1,73 @@
toggleMenu: منو toggleMenu:
other: منو
darkMode: حالت شب darkMode:
other: حالت شب
list: list:
page: page:
one: "{{ .Count }} صفحه" one: "{{ .Count }} صفحه"
other: "{{ .Count }} صفحه" other: "{{ .Count }} صفحه"
section: بخش
section:
other: بخش
subsection: subsection:
one: زیربخش one: زیربخش
other: زیربخش other: زیربخش
article: article:
back: قبلی back:
tableOfContents: فهرست other: قبلی
relatedContent: مطالب مرتبط
lastUpdatedOn: آخرین بروزرسانی در tableOfContents:
other: فهرست
relatedContent:
other: مطالب مرتبط
lastUpdatedOn:
other: آخرین بروزرسانی در
readingTime: readingTime:
one: "مطالعه در {{ .Count }} دقیقه" one: "مطالعه در {{ .Count }} دقیقه"
other: "مطالعه در {{ .Count }} دقیقه" other: "مطالعه در {{ .Count }} دقیقه"
notFound: notFound:
title: یافت نشد title:
subtitle: این صحه وجود ندارد other: یافت نشد
subtitle:
other: این صحه وجود ندارد
widget: widget:
archives: archives:
title: آرشیو title:
more: بیشتر other: آرشیو
more:
other: بیشتر
tagCloud: tagCloud:
title: تگ ها title:
other: تگ ها
categoriesCloud: categoriesCloud:
title: دسته بندی title:
other: دسته بندی
search: search:
title: جستجو title:
placeholder: تایپ کنید ... other: جستجو
resultTitle: "#PAGES_COUNT صفحه (#TIME_SECONDS ثانیه)"
placeholder:
other: تایپ کنید ...
resultTitle:
other: "#PAGES_COUNT صفحه (#TIME_SECONDS ثانیه)"
footer: footer:
builtWith: قدرت گرفته از {{ .Generator }} builtWith:
designedBy: قالب {{ .Theme }} ساخته شده توسط {{ .DesignedBy }} other: قدرت گرفته از {{ .Generator }}
designedBy:
other: قالب {{ .Theme }} ساخته شده توسط {{ .DesignedBy }}

View File

@ -1,41 +1,72 @@
toggleMenu: Afficher le menu toggleMenu:
other: Afficher le menu
darkMode: Mode sombre darkMode:
other: Mode sombre
list: list:
page: page:
one: "{{ .Count }} page" one: "{{ .Count }} page"
other: "{{ .Count }} pages" other: "{{ .Count }} pages"
section: Section
section:
other: Section
subsection: subsection:
one: Sous-section one: Sous-section
other: Sous-sections other: Sous-sections
article: article:
back: Retour back:
tableOfContents: Table des matières other: Retour
relatedContent: Contenus liés
lastUpdatedOn: Dernière mise à jour le tableOfContents:
other: Table des matières
relatedContent:
other: Contenus liés
lastUpdatedOn:
other: Dernière mise à jour le
readingTime: readingTime:
one: "{{ .Count }} minute de lecture" one: "{{ .Count }} minute de lecture"
other: "{{ .Count }} minutes de lecture" other: "{{ .Count }} minutes de lecture"
notFound: notFound:
title: Page non trouvée title:
subtitle: Cette page n'existe pas. other: Page non trouvée
subtitle:
other: Cette page n'existe pas.
widget: widget:
archives: archives:
title: Archives title:
more: Autres other: Archives
more:
other: Autres
tagCloud: tagCloud:
title: Mots clés title:
other: Mots clés
categoriesCloud:
title:
other: Catégories
search: search:
title: Rechercher title:
placeholder: Cherchez un article, une publication, etc. other: Rechercher
resultTitle: "#PAGES_COUNT pages (#TIME_SECONDS secondes)"
placeholder:
other: Cherchez un article, une publication, etc.
resultTitle:
other: "#PAGES_COUNT pages (#TIME_SECONDS secondes)"
footer: footer:
builtWith: Généré avec {{ .Generator }} builtWith:
designedBy: Thème {{ .Theme }} conçu par {{ .DesignedBy }} other: Généré avec {{ .Generator }}
designedBy:
other: Thème {{ .Theme }} conçu par {{ .DesignedBy }}

73
i18n/hi.yaml Normal file
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: 404 नहीं मिला।
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 }}

View File

@ -1,43 +1,73 @@
toggleMenu: Menü Kapcsolása toggleMenu:
other: Menü Kapcsolása
darkMode: Sötét Mód darkMode:
other: Sötét Mód
list: list:
page: page:
one: "{{ .Count }} oldal" one: "{{ .Count }} oldal"
other: "{{ .Count }} oldalak" other: "{{ .Count }} oldalak"
section: Szekció
section:
other: Szekció
subsection: subsection:
one: Alszekció one: Alszekció
other: Alszekciók other: Alszekciók
article: article:
back: Vissza back:
tableOfContents: Tartalomjegyzék other: Vissza
relatedContent: Kapcsolódó tartalom
lastUpdatedOn: Utolsó frissítés időpontja tableOfContents:
other: Tartalomjegyzék
relatedContent:
other: Kapcsolódó tartalom
lastUpdatedOn:
other: Utolsó frissítés időpontja
readingTime: readingTime:
one: "{{ .Count }} percnyi olvasmány" one: "{{ .Count }} percnyi olvasmány"
other: "{{ .Count }} percnyi olvasmány" other: "{{ .Count }} percnyi olvasmány"
notFound: notFound:
title: Nem található title:
subtitle: Ez az oldal nem létezik other: Nem található
subtitle:
other: Ez az oldal nem létezik
widget: widget:
archives: archives:
title: Archívum title:
more: Több other: Archívum
more:
other: Több
tagCloud: tagCloud:
title: Cimkék title:
other: Cimkék
categoriesCloud: categoriesCloud:
title: Kategóriák title:
other: Kategóriák
search: search:
title: Keresés title:
placeholder: Írj valamit... other: Keresés
resultTitle: "#PAGES_COUNT oldal (#TIME_SECONDS másodperc alatt)"
placeholder:
other: Írj valamit...
resultTitle:
other: "#PAGES_COUNT oldal (#TIME_SECONDS másodperc alatt)"
footer: footer:
builtWith: "{{ .Generator }} használatával készült" builtWith:
designedBy: A {{ .Theme }} dizájnt {{ .DesignedBy }} tervezte other: "{{ .Generator }} használatával készült"
designedBy:
other: A {{ .Theme }} dizájnt {{ .DesignedBy }} tervezte

View File

@ -1,43 +1,73 @@
toggleMenu: Tampilkan Menu toggleMenu:
other: Tampilkan Menu
darkMode: Mode Gelap darkMode:
other: Mode Gelap
list: list:
page: page:
one: "{{ .Count }} halaman" one: "{{ .Count }} halaman"
other: "{{ .Count }} halaman" other: "{{ .Count }} halaman"
section: Bagian
section:
other: Bagian
subsection: subsection:
one: Subbagian one: Subbagian
other: Subbagian other: Subbagian
article: article:
back: Kembali back:
tableOfContents: Daftar Isi other: Kembali
relatedContent: Konten terkait
lastUpdatedOn: Terakhir diperbarui pada tableOfContents:
other: Daftar Isi
relatedContent:
other: Konten terkait
lastUpdatedOn:
other: Terakhir diperbarui pada
readingTime: readingTime:
one: "Waktu Membaca: {{ .Count }} menit" one: "Waktu Membaca: {{ .Count }} menit"
other: "Waktu Membaca: {{ .Count }} menit" other: "Waktu Membaca: {{ .Count }} menit"
notFound: notFound:
title: Tidak ditemukan title:
subtitle: Halaman yang Anda akses tidak ditemukan. other: Tidak ditemukan
subtitle:
other: Halaman yang Anda akses tidak ditemukan.
widget: widget:
archives: archives:
title: Arsip title:
more: Lebih other: Arsip
more:
other: Lebih
tagCloud: tagCloud:
title: Tag title:
other: Tag
categoriesCloud: categoriesCloud:
title: Kategori title:
other: Kategori
search: search:
title: Cari title:
placeholder: Ketik sesuatu... other: Cari
resultTitle: "#PAGES_COUNT halaman (#TIME_SECONDS detik)"
placeholder:
other: Ketik sesuatu...
resultTitle:
other: "#PAGES_COUNT halaman (#TIME_SECONDS detik)"
footer: footer:
builtWith: Dibangun dengan {{ .Generator }} builtWith:
designedBy: Tema {{ .Theme }} dirancang oleh {{ .DesignedBy }} other: Dibangun dengan {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} dirancang oleh {{ .DesignedBy }}

View File

@ -1,43 +1,73 @@
toggleMenu: Toggle Menu toggleMenu:
other: Toggle Menu
darkMode: Dark Mode darkMode:
other: Dark Mode
list: list:
page: page:
one: "{{ .Count }} pagina" one: "{{ .Count }} pagina"
other: "{{ .Count }} pagine" other: "{{ .Count }} pagine"
section: Sezione
section:
other: Sezione
subsection: subsection:
one: Sottosezione one: Sottosezione
other: Sottosezioni other: Sottosezioni
article: article:
back: Indietro back:
tableOfContents: Indice other: Indietro
relatedContent: Contenuti correlati
lastUpdatedOn: Aggiornato il tableOfContents:
other: Indice
relatedContent:
other: Contenuti correlati
lastUpdatedOn:
other: Aggiornato il
readingTime: readingTime:
one: "{{ .Count }} min per leggere" one: "{{ .Count }} min per leggere"
other: "{{ .Count }} min per leggere" other: "{{ .Count }} min per leggere"
notFound: notFound:
title: Non trovato title:
subtitle: Questa pagina non esiste. other: Non trovato
subtitle:
other: Questa pagina non esiste.
widget: widget:
archives: archives:
title: Archivi title:
more: Di più other: Archivi
more:
other: Di più
tagCloud: tagCloud:
title: Tags title:
other: Tags
categoriesCloud: categoriesCloud:
title: Categorie title:
other: Categorie
search: search:
title: Cerca title:
placeholder: Scrivi qualcosa... other: Cerca
resultTitle: "#PAGES_COUNT pagine (#TIME_SECONDS secondi)"
placeholder:
other: Scrivi qualcosa...
resultTitle:
other: "#PAGES_COUNT pagine (#TIME_SECONDS secondi)"
footer: footer:
builtWith: Realizzato con {{ .Generator }} builtWith:
designedBy: Tema {{ .Theme }} realizzato da {{ .DesignedBy }} other: Realizzato con {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} realizzato da {{ .DesignedBy }}

View File

@ -1,32 +1,70 @@
toggleMenu: メニューを開く・閉じる toggleMenu:
other: メニューを開く・閉じる
darkMode: ダークモード darkMode:
other: ダークモード
list:
page:
other: "{{ .Count }} ページ目"
section:
other: セクション
subsection:
other: サブセクション
article: article:
back: 前のページ back:
tableOfContents: 目次 other: 前のページ
relatedContent: 関連するコンテンツ
lastUpdatedOn: 最終更新 tableOfContents:
readingTime: "読了時間: {{ .Count }}分" other: 目次
relatedContent:
other: 関連するコンテンツ
lastUpdatedOn:
other: 最終更新
readingTime:
other: "読了時間: {{ .Count }}分"
notFound: notFound:
title: 404 Not Found title:
subtitle: 指定されたページは存在しません。 other: 404 Not Found
subtitle:
other: 指定されたページは存在しません。
widget: widget:
archives: archives:
title: アーカイブ title:
more: さらに見る other: アーカイブ
more:
other: さらに見る
tagCloud: tagCloud:
title: タグ title:
other: タグ
categoriesCloud: categoriesCloud:
title: カテゴリ title:
other: カテゴリ
search: search:
title: 検索 title:
placeholder: 入力... other: 検索
resultTitle: "#PAGES_COUNT 件 #TIME_SECONDS 秒)"
placeholder:
other: 入力...
resultTitle:
other: "#PAGES_COUNT 件 #TIME_SECONDS 秒)"
footer: footer:
builtWith: Built with {{ .Generator }} builtWith:
designedBy: テーマ {{ .Theme }} は {{ .DesignedBy }} によって設計されています。 other: "{{ .Generator }} で構築されています。"
designedBy:
other: テーマ {{ .Theme }} は {{ .DesignedBy }} によって設計されています。

View File

@ -1,41 +1,72 @@
toggleMenu: 메뉴 여닫기 toggleMenu:
other: 메뉴 여닫기
darkMode: 다크 모드 darkMode:
other: 다크 모드
list: list:
page: page:
one: "{{ .Count }} 페이지" one: "{{ .Count }} 페이지"
other: "{{ .Count }} 페이지" other: "{{ .Count }} 페이지"
section: 섹션
section:
other: 섹션
subsection: subsection:
one: 서브섹션 one: 서브섹션
other: 서브섹션 other: 서브섹션
article: article:
back: 뒤로가기 back:
tableOfContents: 목차 other: 뒤로가기
relatedContent: 관련 글
lastUpdatedOn: "마지막 수정: " tableOfContents:
other: 목차
relatedContent:
other: 관련 글
lastUpdatedOn:
other: "마지막 수정: "
readingTime: readingTime:
one: "{{ .Count }} 분 정도" one: "{{ .Count }} 분 정도"
other: "{{ .Count }} 분 정도" other: "{{ .Count }} 분 정도"
notFound: notFound:
title: 찾을 수 없음 title:
subtitle: 페이지를 찾을 수 없습니다. other: 찾을 수 없음
subtitle:
other: 페이지를 찾을 수 없습니다.
widget: widget:
archives: archives:
title: 보관함 title:
more: 더보기 other: 보관함
more:
other: 더보기
categoriesCloud:
title:
other: 카테고리
tagCloud: tagCloud:
title: 태그 title:
other: 태그
search: search:
title: 검색 title:
placeholder: 검색어를 입력하세요... other: 검색
resultTitle: "#PAGES_COUNT 페이지 (#TIME_SECONDS 초)"
placeholder:
other: 검색어를 입력하세요...
resultTitle:
other: "#PAGES_COUNT 페이지 (#TIME_SECONDS 초)"
footer: footer:
builtWith: "{{ .Generator }}로 만듦" builtWith:
designedBy: "{{ .DesignedBy }}의 {{ .Theme }} 테마 사용 중" other: "{{ .Generator }}로 만듦"
designedBy:
other: "{{ .DesignedBy }}의 {{ .Theme }} 테마 사용 중"

View File

@ -1,38 +1,59 @@
toggleMenu: Open Menu toggleMenu:
other: Open Menu
darkMode: Donkere modus darkMode:
other: Donkere modus
list: list:
page: page:
one: "{{ .Count }} pagina" one: "{{ .Count }} pagina"
other: "{{ .Count }} pagina's" other: "{{ .Count }} pagina's"
section: Sectie
section:
other: Sectie
subsection: subsection:
one: Subsectie one: Subsectie
other: Subsecties other: Subsecties
article: article:
relatedContent: Gerelateerde inhoud relatedContent:
lastUpdatedOn: Laatst bijgewerkt op other: Gerelateerde inhoud
lastUpdatedOn:
other: Laatst bijgewerkt op
readingTime:
other: "{{ .Count }} leestijd"
notFound: notFound:
title: Niet gevonden title:
subtitle: Deze pagina bestaat niet. other: Niet gevonden
subtitle:
other: Deze pagina bestaat niet.
widget: widget:
archives: archives:
title: Archief title:
more: Meer other: Archief
more:
other: Meer
tagCloud: tagCloud:
title: Tags title:
other: Tags
categoriesCloud: categoriesCloud:
title: Categorie title:
other: Categorie
search: search:
title: Zoeken title:
placeholder: Typ iets other: Zoeken
resultTitle: "#PAGES_COUNT pagina's (#TIME_SECONDS seconden)" placeholder:
other: Typ iets
resultTitle:
other: "#PAGES_COUNT pagina's (#TIME_SECONDS seconden)"
footer: footer:
builtWith: Gemaakt met {{ .Generator }} builtWith:
designedBy: Theme {{ .Theme }} ontworpen door {{ .DesignedBy }} other: Gemaakt met {{ .Generator }}
designedBy:
other: Theme {{ .Theme }} ontworpen door {{ .DesignedBy }}

72
i18n/oc.yaml Normal file
View File

@ -0,0 +1,72 @@
toggleMenu:
other: Alternar menú
darkMode:
other: Mòde fosc
list:
page:
one: "{{ .Count }} pagina"
other: "{{ .Count }} paginas"
section:
other: Seccion
subsection:
one: Josseccion
other: Josseccions
article:
back:
other: Tornar
tableOfContents:
other: Taula de contengut
relatedContent:
other: Contenguts relacionats
lastUpdatedOn:
other: Darrièra actualizacion
readingTime:
one: "{{ .Count }} minuta de lectura"
other: "{{ .Count }} minutas de lectura"
notFound:
title:
other: Non trobat
subtitle:
other: Aquesta pagina existís pas
widget:
archives:
title:
other: Archiu
more:
other: Mai
tagCloud:
title:
other: Etiquetas
categoriesCloud:
title:
other: Categorias
search:
title:
other: Cercar
placeholder:
other: Picatz quicòm...
resultTitle:
other: "#PAGES_COUNT paginas dins (#TIME_SECONDS segons)"
footer:
builtWith:
other: Creat amb {{ .Generator }}
designedBy:
other: Tàma {{ .Theme }} concebut per {{ .DesignedBy }}

View File

@ -1,43 +1,82 @@
toggleMenu: Przełącz Menu toggleMenu:
other: Przełącz Menu
darkMode: Tryb ciemny darkMode:
other: Tryb ciemny
list: list:
page: page:
one: "{{ .Count }} strona" one: "{{ .Count }} strona"
few: "{{ .Count }} strony"
many: "{{ .Count }} stron"
other: "{{ .Count }} stron" other: "{{ .Count }} stron"
section: Sekcja
section:
other: Sekcja
subsection: subsection:
one: Podsekcja one: Podsekcja
other: Podsekcje few: Podsekcje
many: Podsekcji
other: Podsekcji
article: article:
back: Wróć back:
tableOfContents: Spis treści other: Wróć
relatedContent: Powiązane artykuły
lastUpdatedOn: Ostatnio zaktualizowany tableOfContents:
other: Spis treści
relatedContent:
other: Powiązane artykuły
lastUpdatedOn:
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:
title: Nie znaleziono title:
subtitle: Ta strona nie istnieje other: Nie znaleziono
subtitle:
other: Ta strona nie istnieje
widget: widget:
archives: archives:
title: Archiwum title:
more: Więcej other: Archiwum
more:
other: Więcej
tagCloud: tagCloud:
title: Tagi title:
other: Tagi
categoriesCloud: categoriesCloud:
title: Kategorie title:
other: Kategorie
search: search:
title: Szukaj title:
placeholder: Wpisz coś... other: Szukaj
resultTitle: "#PAGES_COUNT stron (#TIME_SECONDS sekund)"
placeholder:
other: Wpisz coś...
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)"
footer: footer:
builtWith: Zbudowano z {{ .Generator }} builtWith:
designedBy: Motyw {{ .Theme }} zaprojektowany przez {{ .DesignedBy }} other: Zbudowano z {{ .Generator }}
designedBy:
other: Motyw {{ .Theme }} zaprojektowany przez {{ .DesignedBy }}

View File

@ -1,41 +1,67 @@
toggleMenu: Alternar Menu toggleMenu:
other: Alternar Menu
darkMode: Modo Escuro darkMode:
other: Modo Escuro
list: list:
page: page:
one: "{{ .Count }} página" one: "{{ .Count }} página"
other: "{{ .Count }} páginas" other: "{{ .Count }} páginas"
section: Seção
section:
other: Seção
subsection: subsection:
one: Subseção one: Subseção
other: Subseções other: Subseções
article: article:
back: Voltar back:
tableOfContents: Índice other: Voltar
relatedContent: Conteúdo relacionado
lastUpdatedOn: Última atualização em tableOfContents:
other: Índice
relatedContent:
other: Conteúdo relacionado
lastUpdatedOn:
other: Última atualização em
readingTime: readingTime:
one: "{{ .Count }} minuto de leitura" one: "{{ .Count }} minuto de leitura"
other: "{{ .Count }} minutos de leitura" other: "{{ .Count }} minutos de leitura"
notFound: notFound:
title: Não Encontrado title:
subtitle: Esta página não existe. other: Não Encontrado
subtitle:
other: Esta página não existe.
widget: widget:
archives: archives:
title: Arquivos title:
more: Mais other: Arquivos
more:
other: Mais
tagCloud: tagCloud:
title: Tags title:
other: Tags
categoriesCloud:
title:
other: Categorias
search: search:
title: Busca title:
placeholder: Digite algo... other: Busca
resultTitle: "#PAGES_COUNT páginas (#TIME_SECONDS segundos)" placeholder:
other: Digite algo...
resultTitle:
other: "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"
footer: footer:
builtWith: Criado com {{ .Generator }} builtWith:
designedBy: Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }} other: Criado com {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }}

67
i18n/pt-pt.yaml Normal file
View File

@ -0,0 +1,67 @@
toggleMenu:
other: Alternar Menu
darkMode:
other: Modo Escuro
list:
page:
one: "{{ .Count }} página"
other: "{{ .Count }} páginas"
section:
other: Secção
subsection:
one: Subsecção
other: Subsecções
article:
back:
other: Voltar
tableOfContents:
other: Índice
relatedContent:
other: Conteúdo relacionado
lastUpdatedOn:
other: Última atualização a
readingTime:
one: "{{ .Count }} minuto de leitura"
other: "{{ .Count }} minutos de leitura"
notFound:
title:
other: Não Encontrado
subtitle:
other: Esta página não existe.
widget:
archives:
title:
other: Arquivos
more:
other: Mais
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categorias
search:
title:
other: Pesquisa
placeholder:
other: Escreva algo...
resultTitle:
other: "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"
footer:
builtWith:
other: Criado com {{ .Generator }}
designedBy:
other: Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }}

View File

@ -1,6 +1,8 @@
toggleMenu: Показать/скрыть меню toggleMenu:
other: Показать/скрыть меню
darkMode: Тёмный режим darkMode:
other: Тёмный режим
list: list:
page: page:
@ -8,7 +10,10 @@ list:
few: "{{ .Count }} страницы" few: "{{ .Count }} страницы"
many: "{{ .Count }} страниц" many: "{{ .Count }} страниц"
other: "{{ .Count }} страниц" other: "{{ .Count }} страниц"
section: Раздел
section:
other: Раздел
subsection: subsection:
one: Подраздел one: Подраздел
few: Подразделы few: Подразделы
@ -16,28 +21,43 @@ list:
other: Подразделы other: Подразделы
article: article:
back: Назад back:
relatedContent: Также рекомендуем other: Назад
lastUpdatedOn: Обновлено relatedContent:
tableOfContents: Содержание other: Также рекомендуем
readingTime: "Время чтения: {{ .Count }} мин." lastUpdatedOn:
other: Обновлено
tableOfContents:
other: Содержание
readingTime:
other: "Время чтения: {{ .Count }} мин."
notFound: notFound:
title: Не найдено title:
subtitle: Запрашиваемая страница не существует other: Не найдено
subtitle:
other: Запрашиваемая страница не существует
widget: widget:
archives: archives:
title: Архивы title:
more: Ещё other: Архивы
more:
other: Ещё
tagCloud: tagCloud:
title: Теги title:
other: Теги
search: search:
title: Поиск title:
placeholder: Введите что-нибудь... other: Поиск
resultTitle: "Найдено #PAGES_COUNT страниц (за #TIME_SECONDS с.)" placeholder:
other: Введите что-нибудь...
resultTitle:
other: "Найдено #PAGES_COUNT страниц (за #TIME_SECONDS с.)"
footer: footer:
builtWith: Создано при помощи {{ .Generator }} builtWith:
designedBy: Тема {{ .Theme }}, дизайн {{ .DesignedBy }} other: Создано при помощи {{ .Generator }}
designedBy:
other: Тема {{ .Theme }}, дизайн {{ .DesignedBy }}

71
i18n/sk.yaml Normal file
View File

@ -0,0 +1,71 @@
toggleMenu:
other: Skryť menu
darkMode:
other: Tmavý režim
list:
page:
one: "{{ .Count }} stránka"
other: "{{ .Count }} stránok"
section:
other: Kategórie
subsection:
one: Podkategória
other: Podkategórie
article:
back:
other: Späť
tableOfContents:
other: Obsah
relatedContent:
other: Súvisiace
lastUpdatedOn:
other: Naposledy aktualizované
readingTime:
one: "{{ .Count }} minúta"
other: "{{ .Count }} minút"
notFound:
title:
other: Nenájdené
subtitle:
other: Tato stránka neexistuje
widget:
archives:
title:
other: Archívy
more:
other: Viac
tagCloud:
title:
other: Štítky
categoriesCloud:
title:
other: Kategórie
search:
title:
other: Hladať
placeholder:
other: Zadajte niečo...
resultTitle:
other: "#PAGES_COUNT stránok (#TIME_SECONDS sekúnd)"
footer:
builtWith:
other: Vytvorené pomocou {{ .Generator }}
designedBy:
other: Šablóna {{ .Theme }} od {{ .DesignedBy }}

View File

@ -1,41 +1,70 @@
toggleMenu: สลับเมนู toggleMenu:
other: สลับเมนู
darkMode: ธีมมืด darkMode:
other: ธีมมืด
list: list:
page: page:
one: "{{ .Count }} หน้า" one: "{{ .Count }} หน้า"
other: "{{ .Count }} หน้า" other: "{{ .Count }} หน้า"
section: หมวดหมู่
section:
other: หมวดหมู่
subsection: subsection:
one: หมวดหมู่ย่อย one: หมวดหมู่ย่อย
other: หมวดหมู่ย่อยอื่นๆ other: หมวดหมู่ย่อยอื่นๆ
article: article:
back: กลับไป back:
tableOfContents: สารบัญ other: กลับไป
relatedContent: เนื้อหาคล้ายคลึงกัน
lastUpdatedOn: อัปเดตล่าสุดเมื่อ tableOfContents:
other: สารบัญ
relatedContent:
other: เนื้อหาคล้ายคลึงกัน
lastUpdatedOn:
other: อัปเดตล่าสุดเมื่อ
readingTime: readingTime:
one: "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน" one: "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน"
other: "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน" other: "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน"
notFound: notFound:
title: ไม่พบหัวข้อ title:
subtitle: ไม่พบหน้านี้ในระบบ other: ไม่พบหัวข้อ
subtitle:
other: ไม่พบหน้านี้ในระบบ
widget: widget:
archives: archives:
title: เนื้อหาที่เก็บถาวรแล้ว title:
more: อื่นๆ นอกจากนี้ other: เนื้อหาที่เก็บถาวรแล้ว
more:
other: อื่นๆ นอกจากนี้
tagCloud: tagCloud:
title: แท็ก title:
other: แท็ก
search: search:
title: ค้นหา title:
placeholder: พิมพ์เพื่อค้นหา ... other: ค้นหา
resultTitle: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
placeholder:
other: พิมพ์เพื่อค้นหา ...
resultTitle:
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
footer: footer:
builtWith: ถูกสร้างด้วย {{ .Generator }} builtWith:
designedBy: ธีม {{ .Theme }} ออกแบบโดย {{ .DesignedBy }} other: ถูกสร้างด้วย {{ .Generator }}
designedBy:
other: ธีม {{ .Theme }} ออกแบบโดย {{ .DesignedBy }}

View File

@ -1,36 +1,53 @@
toggleMenu: Menüyü Gizle toggleMenu:
other: Menüyü Gizle
darkMode: Koyu Mod darkMode:
other: Koyu Mod
list: list:
page: page:
one: "{{ .Count }} makale" one: "{{ .Count }} makale"
other: "{{ .Count }} makale" other: "{{ .Count }} makale"
section: Bölüm
section:
other: Bölüm
subsection: subsection:
one: Alt bölüm one: Alt bölüm
other: Alt bölümler other: Alt bölümler
article: article:
relatedContent: Alakalı içerikler relatedContent:
lastUpdatedOn: Son güncelleme other: Alakalı içerikler
lastUpdatedOn:
other: Son güncelleme
notFound: notFound:
title: Bulunamadı title:
subtitle: Aradığınız sayfa mevcut değil. other: Bulunamadı
subtitle:
other: Aradığınız sayfa mevcut değil.
widget: widget:
archives: archives:
title: Arşiv title:
more: Daha fazla other: Arşiv
more:
other: Daha fazla
tagCloud: tagCloud:
title: Etiketler title:
other: Etiketler
search: search:
title: Arama title:
placeholder: Birşeyler yazın... other: Arama
resultTitle: "#PAGES_COUNT sayfa (#TIME_SECONDS saniye)" placeholder:
other: Birşeyler yazın...
resultTitle:
other: "#PAGES_COUNT sayfa (#TIME_SECONDS saniye)"
footer: footer:
builtWith: "{{ .Generator }} ile oluşturuldu." builtWith:
designedBy: "{{ .Theme }} teması {{ .DesignedBy }} tarafından tasarlandı" other: "{{ .Generator }} ile oluşturuldu."
designedBy:
other: "{{ .Theme }} teması {{ .DesignedBy }} tarafından tasarlandı"

View File

@ -1,42 +1,71 @@
toggleMenu: Показати меню toggleMenu:
other: Показати меню
darkMode: Темна тема darkMode:
other: Темна тема
list: list:
page: page:
one: "{{ .Count }} сторінка" one: "{{ .Count }} сторінка"
few: "{{ .Count }} сторінки" few: "{{ .Count }} сторінки"
other: "{{ .Count }} сторінок" other: "{{ .Count }} сторінок"
section: Секція
section:
other: Секція
subsection: subsection:
one: Підсекція one: Підсекція
other: Підсекції other: Підсекції
article: article:
back: Назад back:
tableOfContents: Зміст other: Назад
relatedContent: Схожі матеріали
lastUpdatedOn: Востаннє оновлено tableOfContents:
other: Зміст
relatedContent:
other: Схожі матеріали
lastUpdatedOn:
other: Востаннє оновлено
readingTime: readingTime:
one: "Час читання: {{ .Count }} хв" one: "Час читання: {{ .Count }} хв"
other: "Час читання: {{ .Count }} хв" other: "Час читання: {{ .Count }} хв"
notFound: notFound:
title: Не знайдено title:
subtitle: Ця сторінка не існує other: Не знайдено
subtitle:
other: Ця сторінка не існує
widget: widget:
archives: archives:
title: Архіви title:
more: Більше other: Архіви
more:
other: Більше
tagCloud: tagCloud:
title: Теґи title:
other: Теґи
search: search:
title: Пошук title:
placeholder: Напишіть що-небудь... other: Пошук
resultTitle: "#PAGES_COUNT сторінок (#TIME_SECONDS секунд)"
placeholder:
other: Напишіть що-небудь...
resultTitle:
other: "#PAGES_COUNT сторінок (#TIME_SECONDS секунд)"
footer: footer:
builtWith: Створено з {{ .Generator }} builtWith:
designedBy: Тема {{ .Theme }}, дизайн {{ .DesignedBy }} other: Створено з {{ .Generator }}
designedBy:
other: Тема {{ .Theme }}, дизайн {{ .DesignedBy }}

74
i18n/vi.yaml Normal file
View File

@ -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 }}

View File

@ -1,32 +1,67 @@
toggleMenu: 切换菜单 toggleMenu:
other: 切换菜单
darkMode: 暗色模式 darkMode:
other: 暗色模式
list:
page: "{{ .Count }} 个页面"
section: 章节
subsection: 子章节
article: article:
back: 返回 back:
tableOfContents: 目录 other: 返回
relatedContent: 相关文章
lastUpdatedOn: 最后更新于 tableOfContents:
readingTime: "阅读时长: {{ .Count }} 分钟" other: 目录
relatedContent:
other: 相关文章
lastUpdatedOn:
other: 最后更新于
readingTime:
other: "阅读时长: {{ .Count }} 分钟"
notFound: notFound:
title: 404 错误 title:
subtitle: 页面不存在 other: 404 错误
subtitle:
other: 页面不存在
widget: widget:
archives: archives:
title: 归档 title:
more: 更多 other: 归档
more:
other: 更多
tagCloud: tagCloud:
title: 标签云 title:
other: 标签云
categoriesCloud: categoriesCloud:
title: 分类 title:
other: 分类
search: search:
title: 搜索 title:
placeholder: 输入关键词... other: 搜索
resultTitle: "#PAGES_COUNT 个结果 (用时 #TIME_SECONDS 秒)"
placeholder:
other: 输入关键词...
resultTitle:
other: "#PAGES_COUNT 个结果 (用时 #TIME_SECONDS 秒)"
footer: footer:
builtWith: Built with {{ .Generator }} builtWith:
designedBy: 主题 {{ .Theme }} 由 {{ .DesignedBy }} 设计 other: 使用 {{ .Generator }} 构建
designedBy:
other: 主题 {{ .Theme }} 由 {{ .DesignedBy }} 设计

View File

@ -1,43 +1,73 @@
toggleMenu: 切換選單 toggleMenu:
other: 切換選單
darkMode: 深色模式 darkMode:
other: 深色模式
list: list:
page: page:
one: "第 {{ .Count }} 頁" one: "第 {{ .Count }} 頁"
other: "第 {{ .Count }} 頁" other: "第 {{ .Count }} 頁"
section: Section
section:
other: Section
subsection: subsection:
one: Subsection one: Subsection
other: Subsections other: Subsections
article: article:
back: 返回 back:
tableOfContents: 目錄 other: 返回
relatedContent: 相關內容
lastUpdatedOn: 上次改過於 tableOfContents:
other: 目錄
relatedContent:
other: 相關內容
lastUpdatedOn:
other: 上次改過於
readingTime: readingTime:
one: "需要 {{ .Count }} 分鐘閱讀" one: "需要 {{ .Count }} 分鐘閱讀"
other: "需要 {{ .Count }} 分鐘閱讀" other: "需要 {{ .Count }} 分鐘閱讀"
notFound: notFound:
title: Not Found title:
subtitle: 頁面不存在 other: Not Found
subtitle:
other: 頁面不存在
widget: widget:
archives: archives:
title: Archives title:
more: 更多 other: Archives
more:
other: 更多
tagCloud: tagCloud:
title: Tags title:
other: Tags
categoriesCloud: categoriesCloud:
title: Categories title:
other: Categories
search: search:
title: 搜尋 title:
placeholder: Type 關鍵字... other: 搜尋
resultTitle: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
placeholder:
other: Type 關鍵字...
resultTitle:
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
footer: footer:
builtWith: Built with {{ .Generator }} builtWith:
designedBy: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計 other: Built with {{ .Generator }}
designedBy:
other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計

View File

@ -1,26 +1,73 @@
toggleMenu: 切換選單 toggleMenu:
other: 切換選單
darkMode: 夜晚模式 darkMode:
other: 夜晚模式
list:
page:
one: "第 {{ .Count }} 頁"
other: "第 {{ .Count }} 頁"
section:
other: 段落
subsection:
one: 小節
other: 小節
article: article:
back: 返回 back:
tableOfContents: 目錄 other: 返回
relatedContent: 相關文章
lastUpdatedOn: 最後更新 tableOfContents:
readingTime: "閱讀時間: {{ .Count }} 分鐘" other: 目錄
relatedContent:
other: 相關文章
lastUpdatedOn:
other: 最後更新
readingTime:
one: "閱讀時間: {{ .Count }} 分鐘"
other: "閱讀時間: {{ .Count }} 分鐘"
notFound: notFound:
title: 404 錯誤 title:
subtitle: 頁面不存在 other: 404 錯誤
subtitle:
other: 頁面不存在
widget: widget:
archives: archives:
title: 紀錄 title:
more: 更多 other: 紀錄
more:
other: 更多
tagCloud: tagCloud:
title: 標籤雲 title:
other: 標籤雲
categoriesCloud:
title:
other: 分類
search: search:
title: 搜尋 title:
placeholder: 輸入關鍵字... other: 搜尋
resultTitle: "#PAGES_COUNT 個結果 (用時 #TIME_SECONDS 秒)"
placeholder:
other: 輸入關鍵字...
resultTitle:
other: "#PAGES_COUNT 個結果 (用時 #TIME_SECONDS 秒)"
footer:
builtWith:
other: 使用 {{ .Generator }} 建立
designedBy:
other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計

View File

@ -3,5 +3,43 @@
<h1 class="article-title">{{ T "notFound.title" }}</h1> <h1 class="article-title">{{ T "notFound.title" }}</h1>
<h2 class="article-subtitle">{{ T "notFound.subtitle" }}</h2> <h2 class="article-subtitle">{{ T "notFound.subtitle" }}</h2>
</div> </div>
{{- $query := first 1 (where .Site.Pages "Layout" "==" "search") -}}
{{- $searchPage := index $query 0 -}}
{{- with $searchPage -}}
<form action="{{ $searchPage.RelPermalink }}" class="search-form widget" {{ with .OutputFormats.Get "json" -}}data-json="{{ .Permalink }}" {{- end }}>
<p>
<label>{{ T "search.title" }}</label>
<input id="searchInput" name="keyword" required placeholder="{{ T `search.placeholder` }}" />
<button title="{{ T `search.title` }}">
{{ partial "helper/icon" "search" }}
</button>
</p>
</form>
<div class="search-result">
<h3 class="search-result--title section-title"></h3>
<div class="search-result--list article-list--compact"></div>
</div>
<script>
window.searchResultTitleTemplate = "{{ T `search.resultTitle` }}"
</script>
{{- $opts := dict "minify" hugo.IsProduction "JSXFactory" "createElement" -}}
{{- $searchScript := resources.Get "ts/search.tsx" | js.Build $opts -}}
<script type="text/javascript" src="{{ $searchScript.RelPermalink }}" defer></script>
<script>
const wrongUrl = new URL(window.location.href);
/// Get the search keyword from the wrong URL by removing all slashes and dashes
const searchKeyword = wrongUrl.pathname.split(/[/|-]/).join(' ').trim();
document.getElementById('searchInput').setAttribute('value', searchKeyword);
</script>
{{- end -}}
{{ partialCached "footer/footer" . }} {{ partialCached "footer/footer" . }}
{{ end }} {{ end }}

View File

@ -1,20 +0,0 @@
{{- $class := .Attributes.class | default "" -}}
{{- $lang := .Attributes.lang | default .Type -}}
<div class="codeblock">
<header>
<span class="codeblock-lang">{{ $lang }}</span>
<button
class="codeblock-copy"
data-id="codeblock-id-{{ .Ordinal }}"
data-copied-text="Copied!"
>
Copy
</button>
</header>
<code id="codeblock-id-{{ .Ordinal }}" style="display:none;">{{- .Inner -}}</code>
{{- if transform.CanHighlight $lang -}}
<div class="{{ $class }}">{{- highlight .Inner $lang -}}</div>
{{- else -}}
<pre><code class="{{ $class }}">{{- .Inner -}}</code></pre>
{{- end -}}
</div>

View File

@ -0,0 +1,6 @@
<h{{ .Level }} id="{{ .Anchor }}">
{{- if site.Params.Article.HeadingAnchor -}}
<a href="#{{ .Anchor }}" class="header-anchor"></a>
{{- end -}}
{{ .Text | safeHTML }}
</h{{ .Level }}>

View File

@ -16,8 +16,10 @@
</header> </header>
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ range $pages.GroupByDate "2006" }} {{ $filtered := ($pages | intersect $notHidden) }}
{{ range $filtered.GroupByDate "2006" }}
{{ $id := lower (replace .Key " " "-") }} {{ $id := lower (replace .Key " " "-") }}
<div class="archives-group" id="{{ $id }}"> <div class="archives-group" id="{{ $id }}">
<h2 class="archives-date section-title"><a href="{{ $.RelPermalink }}#{{ $id }}">{{ .Key }}</a></h2> <h2 class="archives-date section-title"><a href="{{ $.RelPermalink }}#{{ $id }}">{{ .Key }}</a></h2>

View File

@ -18,10 +18,10 @@
{{- block "left-sidebar" . -}} {{- block "left-sidebar" . -}}
{{ partial "sidebar/left.html" . }} {{ partial "sidebar/left.html" . }}
{{- end -}} {{- end -}}
{{- block "right-sidebar" . -}}{{ end }}
<main class="main full-width"> <main class="main full-width">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
</main> </main>
{{- block "right-sidebar" . -}}{{ end }}
</div> </div>
{{ partial "footer/include.html" . }} {{ partial "footer/include.html" . }}
</body> </body>

View File

@ -6,6 +6,7 @@
{{- else -}} {{- else -}}
{{- $pages = $pctx.Pages -}} {{- $pages = $pctx.Pages -}}
{{- end -}} {{- end -}}
{{- $pages := where $pages "Params.hidden" "!=" true -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}} {{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}} {{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}} {{- $pages = $pages | first $limit -}}
@ -17,11 +18,11 @@
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description> <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }} <language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} <managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} <webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}} {{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}} {{- end -}}
@ -34,7 +35,7 @@
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} {{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description> <description>
{{- $image := partial "helper/image" (dict "Context" . "Type" "rss") -}} {{- $image := partial "helper/image" (dict "Context" . "Type" "rss") -}}

View File

@ -1,6 +1,9 @@
{{ define "main" }} {{ define "main" }}
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $pag := .Paginate ($pages) }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}
{{ $pag := .Paginate ($filtered) }}
<section class="article-list"> <section class="article-list">
{{ range $index, $element := $pag.Pages }} {{ range $index, $element := $pag.Pages }}
{{ partial "article-list/default" . }} {{ partial "article-list/default" . }}

View File

@ -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` }}" />

View File

@ -1,7 +1,10 @@
{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}} {{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}}
{{- $notHidden := where .Site.RegularPages "Params.hidden" "!=" true -}}
{{- $filtered := ($pages | intersect $notHidden) -}}
{{- $result := slice -}} {{- $result := slice -}}
{{- range $pages -}} {{- range $filtered -}}
{{- $data := dict "title" .Title "date" .Date "permalink" .Permalink "content" (.Plain) -}} {{- $data := dict "title" .Title "date" .Date "permalink" .Permalink "content" (.Plain) -}}
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}} {{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}

View File

@ -23,18 +23,21 @@
{{ end }} {{ end }}
</div> </div>
{{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }} {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }}
{{ $showDate := not .Date.IsZero }}
{{ $showFooter := or $showDate $showReadingTime }}
{{ if $showFooter }}
<footer class="article-time"> <footer class="article-time">
{{ if not .Date.IsZero }} {{ if $showDate }}
<div> <div>
{{ partial "helper/icon" "date" }} {{ partial "helper/icon" "date" }}
<time class="article-time--published"> <time class="article-time--published">
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}} {{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
</time> </time>
</div> </div>
{{ end }} {{ end }}
{{ if .Site.Params.article.readingTime }} {{ if $showReadingTime }}
<div> <div>
{{ partial "helper/icon" "clock" }} {{ partial "helper/icon" "clock" }}
<time class="article-time--reading"> <time class="article-time--reading">
@ -55,4 +58,4 @@
</div> </div>
</footer> </footer>
{{ end }} {{ end }}
</div> </div>

View File

@ -12,7 +12,7 @@
<section class="article-lastmod"> <section class="article-lastmod">
{{ partial "helper/icon" "clock" }} {{ partial "helper/icon" "clock" }}
<span> <span>
{{ T "article.lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} {{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
</span> </span>
</section> </section>
{{- end -}} {{- end -}}

View File

@ -16,8 +16,12 @@
</div> </div>
{{ with $link.image }} {{ with $link.image }}
{{ $permalink := . }}
{{ with ($.Resources.GetMatch (printf "%s" (. | safeURL))) }}
{{ $permalink = .RelPermalink }}
{{ end }}
<div class="article-image"> <div class="article-image">
<img src="{{ . }}" loading="lazy"> <img src="{{ $permalink }}" loading="lazy">
</div> </div>
{{ end }} {{ end }}
</a> </a>

View File

@ -1,12 +1,14 @@
{{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}} {{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}}
<script> <script>
window.addEventListener("DOMContentLoaded", () => { window.addEventListener("DOMContentLoaded", () => {
renderMathInElement(document.querySelector(`.article-content`), { const mainArticleElement = document.querySelector(".main-article");
renderMathInElement(mainArticleElement, {
delimiters: [ delimiters: [
{ left: "$$", right: "$$", display: true }, { left: "$$", right: "$$", display: true },
{ 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>

View File

@ -1,20 +1,68 @@
{{- $opts := dict "minify" hugo.IsProduction "format" "esm" -}} <!-- Root element of PhotoSwipe. Must have class pswp. -->
{{- $galleryScript := resources.Get "ts/gallery.ts" | js.Build $opts -}} <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@5.2.7/dist/photoswipe.css" <!-- Background of PhotoSwipe.
integrity="sha256-olf9rfn3AG8zR6lkPXkN3PZq63z8tElx7Ela6T4eklo=" crossorigin="anonymous"> It's a separate element as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<script type="module"> <!-- Slides wrapper with overflow:hidden. -->
import StackGallery from '{{ $galleryScript.RelPermalink }}'; <div class="pswp__scroll-wrap">
import PhotoSwipeLightbox from 'https://cdn.jsdelivr.net/npm/photoswipe@5.2.7/dist/photoswipe-lightbox.esm.min.js';
console.log(StackGallery)
StackGallery(document.querySelector('.article-content'));
const lightbox = new PhotoSwipeLightbox({ <!-- Container that holds slides.
gallery: '.article-content', PhotoSwipe keeps only 3 of them in the DOM to save memory.
children: '.gallery-image a', Don't modify these 3 pswp__item elements, data is added later on. -->
pswpModule: () => import('https://cdn.jsdelivr.net/npm/photoswipe@5.2.7/dist/photoswipe.esm.min.js') <div class="pswp__container">
}); <div class="pswp__item"></div>
lightbox.init(); <div class="pswp__item"></div>
</script> <div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo https://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader--active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
{{- partial "helper/external" (dict "Context" . "Namespace" "PhotoSwipe") -}}

View File

@ -1,4 +1,4 @@
{{ $related := .Site.RegularPages.Related . | first 5 }} {{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
{{ with $related }} {{ with $related }}
<aside class="related-content--wrapper"> <aside class="related-content--wrapper">
<h2 class="section-title">{{ T "article.relatedContent" }}</h2> <h2 class="section-title">{{ T "article.relatedContent" }}</h2>

View File

@ -0,0 +1,46 @@
<script
src="https://beaudar.lipk.org/client.js"
repo="{{ .Site.Params.comments.beaudar.repo }}"
issue-term="{{ .Site.Params.comments.beaudar.issueTerm }}"
{{ with .Site.Params.comments.beaudar.label }}
label="{{ . }}"
{{ end }}
theme="{{ .Site.Params.comments.beaudar.theme }}"
crossorigin="anonymous"
async
></script>
<style>
.beaudar {
max-width: unset;
}
</style>
<script>
let beaudarLoaded = false;
function setBeaudarTheme(theme) {
let beaudar = document.querySelector(".beaudar iframe");
if (beaudar) {
beaudar.contentWindow.postMessage(
{
type: "set-theme",
theme: `github-${theme}`,
},
"https://beaudar.lipk.org"
);
}
}
addEventListener("message", (event) => {
if (event.origin !== "https://beaudar.lipk.org") return;
/// Called when Beaudar is ready
beaudarLoaded = true;
setBeaudarTheme(document.documentElement.dataset.scheme);
});
window.addEventListener("onColorSchemeChange", (e) => {
if (!beaudarLoaded) return;
setBeaudarTheme(e.detail);
});
</script>

View File

@ -2,7 +2,7 @@
{{- $disqusjs := .Site.Params.Comments.disqusjs -}} {{- $disqusjs := .Site.Params.Comments.disqusjs -}}
{{- if and (not $pc.Disable) (and $disqusjs.Shortname $disqusjs.ApiKey) -}} {{- if and (not $pc.Disable) (and $disqusjs.Shortname $disqusjs.ApiKey) -}}
{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | resources.ToCSS | minify -}} {{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | toCSS | minify -}}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"> <link rel="stylesheet" href="{{ $style.RelPermalink }}">
<div class="disqus-container"> <div class="disqus-container">

View File

@ -6,10 +6,13 @@
data-category="{{- .category -}}" data-category="{{- .category -}}"
data-category-id="{{- .categoryID -}}" data-category-id="{{- .categoryID -}}"
data-mapping="{{- default `title` .mapping -}}" data-mapping="{{- default `title` .mapping -}}"
data-strict="{{- default 0 .strict -}}"
data-reactions-enabled="{{- default 1 .reactionsEnabled -}}" data-reactions-enabled="{{- default 1 .reactionsEnabled -}}"
data-emit-metadata="{{- default 0 .emitMetadata -}}" data-emit-metadata="{{- default 0 .emitMetadata -}}"
data-input-position="{{- default `top` .inputPosition -}}"
data-theme="{{- default `light` .lightTheme -}}" data-theme="{{- default `light` .lightTheme -}}"
data-lang="{{- default `en` .lang -}}" data-lang="{{- default `en` .lang -}}"
data-loading="{{- .loading -}}"
crossorigin="anonymous" crossorigin="anonymous"
async async
></script> ></script>

View File

@ -15,6 +15,7 @@
admin: ["{{- .admin -}}"], admin: ["{{- .admin -}}"],
distractionFreeMode: false, // Facebook-like distraction free mode distractionFreeMode: false, // Facebook-like distraction free mode
id: md5(location.pathname), // Max Location.pathname Legth:75 https://github.com/gitalk/gitalk/issues/102 id: md5(location.pathname), // Max Location.pathname Legth:75 https://github.com/gitalk/gitalk/issues/102
proxy: {{- .proxy -}},
}); });
(function () { (function () {
if ( if (

View File

@ -2,10 +2,10 @@
<div id="remark42"></div> <div id="remark42"></div>
<script> <script>
var remark_config = { var remark_config = {
host: "{{ .host }}", host: '{{ .host }}',
site_id: '{{ .site }}', site_id: '{{ .site }}',
components: ['embed'], components: ['embed'],
url: "{{ $.Permalink }}", url: '{{ $.Permalink }}',
max_shown_comments: {{ default 15 .max_shown_comments }}, max_shown_comments: {{ default 15 .max_shown_comments }},
theme: document.documentElement.dataset.scheme, theme: document.documentElement.dataset.scheme,
page_title: '{{ $.Title }}', page_title: '{{ $.Title }}',
@ -13,14 +13,14 @@
show_email_subscription: {{ default true .show_email_subscription }} show_email_subscription: {{ default true .show_email_subscription }}
}; };
(function (c) { !function(e, n) {
for (var i = 0; i < c.length; i++) { for (var o = 0; o < e.length; o++) {
var d = document, s = d.createElement('script'); var r = n.createElement('script'),
s.src = remark_config.host + '/web/' + c[i] + '.js'; c = '.js',
s.defer = true; d = n.head || n.body;
(d.head || d.body).appendChild(s); 'noModule' in r ? (r.type = 'module', c = '.mjs') : r.async = !0, r.defer = !0, r.src = remark_config.host + '/web/' + e[o] + c, d.appendChild(r)
} }
})(remark_config.components || ['embed']); }(remark_config.components || ['embed'], document);
window.addEventListener('onColorSchemeChange', (e) => { window.addEventListener('onColorSchemeChange', (e) => {
window.REMARK42.changeTheme(e.detail); window.REMARK42.changeTheme(e.detail);

View File

@ -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.39/dist/twikoo.all.min.js"></script>
<div id="tcomment"></div> <div id="tcomment"></div>
<style> <style>
.twikoo { .twikoo {
@ -13,7 +13,9 @@
} }
.twikoo .el-input-group__prepend, .twikoo .el-input-group__prepend,
.twikoo .tk-action-icon, .twikoo .tk-action-icon,
.twikoo .tk-submit-action-icon,
.twikoo .tk-time, .twikoo .tk-time,
.twikoo .tk-comments-no,
.twikoo .tk-comments-count { .twikoo .tk-comments-count {
color: var(--twikoo-body-text-color); color: var(--twikoo-body-text-color);
} }
@ -28,6 +30,9 @@
.twikoo .el-button{ .twikoo .el-button{
color: var(--twikoo-body-text-color)!important; color: var(--twikoo-body-text-color)!important;
} }
.twikoo .el-input__count {
color: var(--twikoo-body-text-color) !important;
}
.OwO .OwO-body { .OwO .OwO-body {
background-color: var(--body-background) !important; background-color: var(--body-background) !important;
color: var(--body-text-color) !important; color: var(--body-text-color) !important;

View File

@ -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>

View File

@ -19,7 +19,7 @@
{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}} {{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}}
{{- range $key, $val := . -}} {{- range $key, $val := . -}}
{{- if $val -}} {{- if ne $val nil -}}
{{- $replaceKey := index $replaceKeys $key -}} {{- $replaceKey := index $replaceKeys $key -}}
{{- $k := default $key $replaceKey -}} {{- $k := default $key $replaceKey -}}

View File

@ -1,6 +1,11 @@
<!-- Use site subtitle by default --> <!-- Use site subtitle by default -->
{{ $description := .Site.Params.sidebar.subtitle }} {{ $description := .Site.Params.sidebar.subtitle }}
<!-- Seprate description exists -->
{{ if .Site.Params.description }}
{{ $description = .Site.Params.description }}
{{ end }}
{{ if .Description }} {{ if .Description }}
<!-- Page description exists --> <!-- Page description exists -->
{{ $description = .Description }} {{ $description = .Description }}
@ -9,4 +14,4 @@
{{ $description = .Summary }} {{ $description = .Summary }}
{{ end }} {{ end }}
{{ return ($description | plainify)}} {{ return (replaceRE "\n" " " $description | plainify) }}

View File

@ -6,7 +6,9 @@
<!-- Build paginator --> <!-- Build paginator -->
{{ $pages := where .Site.RegularPages "Section" "in" .Site.Params.mainSections }} {{ $pages := where .Site.RegularPages "Section" "in" .Site.Params.mainSections }}
{{ $pag := .Paginate ($pages) }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}
{{ $pag := .Paginate ($filtered) }}
{{ if .Paginator.HasPrev }} {{ if .Paginator.HasPrev }}
<!-- Paginated. Append page number to title --> <!-- Paginated. Append page number to title -->
@ -18,7 +20,8 @@
<!-- Taxonomy page --> <!-- Taxonomy page -->
<!-- Build paginator --> <!-- Build paginator -->
{{ $pag := .Paginate .Pages }} {{ $notHidden := where .Pages "Params.hidden" "!=" true }}
{{ $pag := .Paginate ($notHidden) }}
<!-- {TAXONOMY_TYPE}: {TAXONOMY_TERM} --> <!-- {TAXONOMY_TYPE}: {TAXONOMY_TERM} -->
{{ $title = slice (title .Data.Singular) ": " $title }} {{ $title = slice (title .Data.Singular) ": " $title }}

View File

@ -1,10 +1,12 @@
{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}
{{- $opts := dict "minify" hugo.IsProduction -}} {{- $opts := dict "minify" hugo.IsProduction -}}
{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}} {{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script> <script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
{{- with resources.Get "ts/custom.ts" -}} {{- with resources.Get "ts/custom.ts" -}}
{{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}} {{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}}
{{- $customScript := . | js.Build $opts -}} {{- $customScript := . | js.Build $opts | fingerprint -}}
<script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script> <script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
{{- end -}} {{- end -}}

View File

@ -1,11 +1,11 @@
{{- $ThemeVersion := "4.0.0-alpha.0" -}} {{- $ThemeVersion := "3.30.0" -}}
<footer class="site-footer"> <footer class="site-footer">
<section class="copyright"> <section class="copyright">
&copy; &copy;
{{ 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">

Some files were not shown because too many files have changed in this diff Show More