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
zhixuan
ca260db07e
fix(shortcode): conflict with gist shortcode ( #455 )
2022-01-19 01:12:29 +01:00
Jimmy Cai
24915a912f
feat(article): copy button for highlight block ( #295 )
...
This button only shows on highlighted code blocks, because it uses the wrapper div.highlight
2021-08-08 18:15:27 +02:00
Jimmy Cai
358e63e799
feat(darkmode): dark mode toggle ( #82 )
...
* feat(darkmode): initial support for dark mode toggle
* fix(darkmode): add svg icons
* feat(darkmode): dispatch onColorSchemeChange event
* add head/darkmode
* feat(darkmode); add colorScheme config
* style: remove empty line
* refactor(darkmode): simplify code
* style: add comment for darkmode config
* i18n support for dark mode toggle
* Some renaming
2020-12-23 19:03:40 +01:00
Jimmy Cai
e606dca404
refactor(article): remove color tag & add custom category color ( #75 )
...
closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/71
2020-12-22 19:43:14 +01:00
Jimmy Cai
31c42bcfe7
refactor(gallery): rewrite gallery ( #79 )
...
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/70
2020-12-22 19:35:37 +01:00
Jimmy Cai
54571f036b
refactor(ts): import script using new Hugo Module logic ( #77 )
...
Allows user to overwrite a specific script.
Note: The required version of Hugo might bump up.
2020-12-21 22:34:54 +01:00
Jimmy Cai
b97e86a7a7
style: remove empty line in main.ts
2020-11-06 11:33:33 +01:00
Jimmy Cai
2736fec285
refactor: create createElement.ts
2020-11-06 11:12:48 +01:00
Jimmy Cai
a2a49e7537
refactor(scss): remove alert style and script
...
It is not used in this theme
2020-09-23 13:22:03 +02:00
Jimmy Cai
98804e578d
refactor: add copyright info in CSS and JS
2020-09-09 16:28:38 +02:00
Jimmy Cai
af487e0f3f
feat(style): remove timeago.js, and improve article-time style
2020-09-03 11:47:55 +02:00
Jimmy Cai
6b1e660327
refactor(ts/color): improve code style and change name of some variables for more clarity
2020-08-29 11:43:00 +02:00
Jimmy Cai
32732d4bf1
feat: avoid regenerate color scheme when image URL is changed
...
Use MD5 as key to identify images, and .Slug as id
2020-08-28 12:11:02 +02:00
Jimmy Cai
c698d944e6
🎉 Initial commit
2020-08-22 13:20:08 +02:00