Commit Graph

450 Commits

Author SHA1 Message Date
Jimmy Cai
04cdbcfedf
refactor: Use flexbox gap (#520) 2022-03-03 23:11:19 +01:00
Jimmy Cai
adf27aebf2
Revert "fix(RSS): hidden post visible on feed (#514)" (#517) 2022-03-03 07:31:03 +01:00
zhixuan
24cd07589b
feat(comments): add lang option for giscus (#498) 2022-03-02 21:31:44 +01:00
Allen Guan
98923b1dd7
fix(RSS): hidden post visible on feed (#514) 2022-03-02 21:24:56 +01:00
Jimmy Cai
2712887c7c
feat: multilingual site switch (#512)
* feat: multilingual site switch

* fix menu item margin

switch to flexbox gap
2022-02-27 10:51:02 +01:00
Jimmy Cai
b3b8fa73ef
feat(article): add link to translated content (#511) 2022-02-27 09:48:57 +01:00
JesseJeson
26fb06951b
chore: update twikoo version to 1.4.18 (#496) 2022-02-26 23:49:26 +01:00
Jimmy Cai
4d552a9df5
feat: article page widget support (#488)
* feat: article page widget support

* refactor: get rid of article toolbar

Same 3 column layout for article page and homepage

* add missing space
2022-02-26 23:45:25 +01:00
Jimmy Cai
0fbbc12949 fix: check if paragraph exists before accessing it's textContent
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/490
2022-02-12 13:23:38 +00:00
Jimmy Cai
4b0dbb4630 fix(article): code block background style in light theme
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/489, https://github.com/CaiJimmy/hugo-theme-stack/issues/492
2022-02-11 20:36:52 +00:00
Jimmy Cai
ce57ea915e
chore: add /v3 to go.mod 2022-02-06 20:48:44 +01:00
Jimmy Cai
9f36a956ca release: 3.8.0 2022-02-06 19:36:10 +00:00
Jimmy Cai
d75dbe2b6e
fix: copy code button does not work when line number is enabled (#487)
* fix: copy code button does not work when line number is enabled

* fix pre style

* Add gist shortcode to exampleSite
2022-02-06 20:32:37 +01:00
Jimmy Cai
88beecd101
fix: hyperlinked image (#485)
* fix: hyperlinked image

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

* feat: add support to inline images

* Remove unused code

* Remove data-alt-html
2022-02-06 19:58:10 +01:00
Jimmy Cai
67d5156507
fix: disqus dark mode (#478)
* fix: disqus dark mode

* remove color-scheme

add custom chrome scrollbar style (removed in https://github.com/CaiJimmy/hugo-theme-stack/pull/428)
2022-01-30 10:57:16 +01:00
Jimmy Cai
6474b9dfd8 fix(comments): fix cactus comments
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/470
2022-01-23 12:59:21 +00:00
Marcel
7dc5def217
feat(comments): add https://cactus.chat support (#298)
* feat: Add https://cactus.chat as comments provider

* Add cactus comments config fields to exampleSite

* Add cactus css and js to external.yaml and move custom cactus css to html

* Remove unneeded cactus comments css

* Load external dependencies for cactus comments in the comments provider

* Use safeJS instead of safeHTML
2022-01-23 13:10:00 +01:00
Zoroark
2b40a32d47
feat(article): Scrollspy for the table of contents (#425)
* Add first try at scrollspy (broken right now)

* Scrollspy actually works now

* Fix VS Code errors by setting JS version

* Recompute offsets when window size changes

* Improve list compatibility for toc active selection

Support up to 6 levels of indentation, properly support <ol>

* Remove debug string

* Add more docs in smoothAnchors

* Use a map to match ids to navigation elements
2022-01-22 10:35:08 +01:00
Jimmy Cai
9e08854681 release: 3.7.0 2022-01-20 11:12:16 +00:00
zhixuan
0af9d23e49
feat(article): add scroll for table (#428)
* feat: table can't scroll & delete scrollbar style for Chromium

* Undo some line breaks

* Add a table with overflow to exampleSite
2022-01-20 12:09:25 +01:00
Jimmy Cai
3b98d3ba05
feat(sidebar): link avatar to homepage (#465)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/399
2022-01-20 11:38:16 +01:00
Andreas Deininger
fe661c8c38
feat: turn stack theme into a hugo module (#460)
* Turn stack theme into a hugo module
2022-01-20 11:16:28 +01:00
chenlianghong
bfd1eb8400
feat: add custom.ts (#461)
* feat: add custom.ts

* Load custom.ts only if it exists

This change avoids loading an empty .js file

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2022-01-19 16:35:15 +01:00
tanmx
eebaea81e8
feat(comment): update twikoo version to 1.4.15 (#464) 2022-01-19 15:22:51 +01:00
zhixuan
ca260db07e
fix(shortcode): conflict with gist shortcode (#455) 2022-01-19 01:12:29 +01:00
Jimmy Cai
4764a92df3
refactor(search): avoid issue with one character keyword (#447)
* refactor(search): avoid issue with one character keyword

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

* Remove keyword sorts

* fix typo: secion -> section

* fix(search): avoid matching html entity

* Use | operator to concatenate keywords

Idea from https://github.com/CaiJimmy/hugo-theme-stack/pull/436

* Add missing `matchCount`

* Limit preview length

* Don't add ellipsis to title

* add comment to `processMatches`

* Initialize DOMParser only once

* Remove marker function

* Deal with blank search

* Use const keyword for constant arrays
2022-01-18 23:19:30 +01:00
Jimmy Cai
86cbc1b682
fix(README): demo site link
closes #449
2022-01-03 14:15:05 +01:00
Jimmy Cai
d165621568
release: 3.6.0 2021-12-29 00:32:08 +01:00
Nathan Harkenrider
dde6a10cab
feat: implement cache busting for CSS (#444) 2021-12-28 23:28:33 +01:00
Jimmy Cai
a669b60cdd chore(exampleSite): make default pages use page bundle feature
To avoid confusions
2021-12-28 10:33:48 +00:00
Jimmy Cai
455e23f22b
feat: page links (#446) 2021-12-28 11:28:20 +01:00
Jimmy Cai
4e2c8e74be
fix: add missing diff syntax highlight (#445)
closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/434
2021-12-28 10:48:22 +01:00
HAHWUL
359e4b34c1
Update i18n(ko) (#418)
Add dark mode, list-section, list-subsction, article-back, article-tableOfContents, article-readingTime
2021-12-04 21:16:22 +01:00
Paul-Henri Zimmerlin
195b8d8076
fix(i18n/fr): add missing translations for reading time (#416) 2021-12-04 21:10:42 +01:00
zhixuan
497643b363
feat: add alt message for archive & related contents images (#411) 2021-12-04 21:05:53 +01:00
Jimmy Cai
72a5e956ee
release: 3.5.0 2021-10-31 10:17:45 +01:00
Hue
25581cc446
fix(comments/cusdis): use the correct script for the self-hosted version (#403)
* Modify the Self-hosting js source path

* refactor(comments/cusdis): avoid multiple if statement

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-10-31 10:15:57 +01:00
volodymyrmarkiv
a7d316365c
feat(i18n): add Ukrainian translation (#404) 2021-10-30 21:22:08 +02:00
TonyPepeBear
ea74aecadb
feat(i18n): add zh-TW (#402) 2021-10-30 21:18:02 +02:00
zhixuan
c43f9d1ea8
fix(menu/social): Delete relLangURL (#406) 2021-10-29 17:20:36 +02:00
Jimmy Cai
44fc94f008 release: 3.4.0 2021-10-23 10:00:42 +00:00
Jimmy Cai
661e59b85d
feat: social menu (#401) 2021-10-23 11:58:55 +02:00
Jimmy Cai
7c59ac7713
refactor(menu): use .Params.icon to configure menu item icon (#400) 2021-10-23 09:18:44 +02:00
Jimmy Cai
a822411a03 chore: add Github Codespace config 2021-10-23 06:51:56 +00:00
Christos Manios
ca9dcc870d
feat(i18n): add Greek translation (#378) 2021-10-22 16:12:44 +02:00
Ar-ruk Kachen
913a4e8898
feat(i18n): Thai language (#396) 2021-10-17 12:34:19 +02:00
Daniel Pessoa
30467ae65c
feat(i18n): add missing pt-BR translations (#384) 2021-10-16 11:10:25 +02:00
MikDal002
d04b3a8771
fix: appropriate back button and menu links for multi-language site (#386) 2021-10-16 10:56:55 +02:00
Jimmy Cai
b3088be62d
feat: add default parameters to config.yaml (#394)
This will avoid those ugly errors caused by forgetting to copy exampleSite/config.yaml to the site folder
2021-10-16 10:14:06 +02:00
Jimmy Cai
9859ea3f8b
feat: add theme config.yaml (#393)
Add Hugo version requirement
2021-10-16 09:53:44 +02:00