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
Jimmy Cai
4d6b65f63c
fix: PhotoSwipe not getting the real image dimensions
...
This is because `img.width.toString()` returns the `<img>` element dimension, not the real image dimension (stored in the `width` attribute).
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/934
2024-02-05 17:43:25 +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
47a57a2ad2
feat: avoid image upscaling during image processing
...
There's now a threshold for each scenario. Images less than x width will not be processed.
2023-10-21 18:24:52 +02:00
Jimmy Cai
b9fb60f2ba
release: 4.0.0-alpha.2
2023-10-11 20:56:58 +00:00
Jimmy Cai
158a79e9fd
Merge branch 'master' into canary
2023-10-11 20:56:31 +00:00
Jimmy Cai
bdb9e7fc00
release: 3.21.0
2023-10-11 20:53:09 +00:00
Jimmy Cai
8dc2880a9c
feat: add file types whitelist for image processing ( #885 )
...
Add `allowedTypes` and `resizableTypes` to `imageProcessing` configuration
Prior to this commit, SVG images were not processed by `render-image.html` because SVG does not have a physical dimension like JPEG. This logic was done using a conditional.
I have now realised that Hugo can be very slow when resizing `gif` images. So I created this whitelist mechanism:
- `allowedTypes`: image types with width and height attributes
- `resizableTypes`: image types that can be resized
Here's a list of media types: bmp, gif, jpeg, png, svg+xml, tiff, webp
https://gohugo.io/templates/output-formats/#media-types
2023-10-11 22:51:42 +02: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
d941e22120
docs: add vitepress cache folder to gitignore
2023-09-18 14:29:54 +02:00
Jimmy Cai
ca29c99ad0
docs: update demo site link
2023-09-18 14:29:15 +02:00
Jimmy Cai
a4e0036ffc
chore: upgrade vitepress to 1.0.0-rc.14
2023-09-18 14:27:49 +02:00
Jimmy Cai
a649ad7a4e
doc: use demo.stack.jimmycai.com as demo link for now
...
Because Vitepress will try to load /demo as an internal link, and return 404
2023-09-11 21:30:24 +02:00
Jimmy Cai
22c7048f89
refactor: drop support for external avatar
...
This simplifies the code and the configuration file
2023-09-11 18:40:53 +02:00
Jimmy Cai
692804498d
doc: documentation is now in the same repository as the code
...
Demo site will be generated in subfolder /demo
2023-09-11 18:16:29 +02:00
Jimmy Cai
9b643df3aa
refactor: use hugo.yaml instead of config.yaml in exampleSite
2023-09-10 15:57:07 +02:00
Jimmy Cai
55400d7d95
refactor: simplify exampleSite configuration files and switch to YAML
...
Include only overridden values.
2023-09-10 15:42:43 +02:00
Jimmy Cai
5c3277573a
refactor: add all available configurations to config/params.yaml
...
It was stored in exampleSite
2023-09-10 15:30:50 +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
5e255c9bef
Merge branch 'master' into canary
2023-09-03 16:18:40 +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
54540a85b0
Merge branch 'master' into canary
2023-09-02 22:37:53 +02:00
Jimmy Cai
fdae6fffd5
release: 4.0.0-alpha.1
2023-08-27 18:52:33 +02:00
Jimmy Cai
ce0a252bfa
release: 3.19.0
2023-08-27 18:49:37 +02:00
Jacob Zhong
4be110e540
refactor(widget): taxonomy
widget ( #763 )
...
* Add link to navbar sections and refactor names
* Prevent duplicate tags and categories information
* Add style to the widget links
* refactor: add `taxonomy` widget
Replaces `categories` and `tag-cloud` widget.
* style: remove unused `font_size_{{ .Count }}` in `taxonomy` widget
---------
Co-authored-by: Jimmy Cai <hi@jimmycai.com>
2023-08-27 18:26:53 +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
5063e8f0b8
Merge branch 'master' into canary
2023-08-24 21:36:55 +02:00