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 and GitHub
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
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
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
Jimmy Cai
5063e8f0b8
Merge branch 'master' into canary
2023-08-24 21:36:55 +02:00
Jimmy Cai and GitHub
c6d1d73dd2
chore: update issue report template to include minimal reproducible example ( #864 )
2023-08-17 11:15:07 +02:00
Jimmy Cai
5edd4afaf3
release: 3.18.0
2023-08-15 13:17:22 +02:00
Jimmy Cai and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
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
Jimmy Cai
5449f786ac
release: 3.9.0
2022-03-04 10:40:41 +01:00
Jimmy Cai and GitHub
3bc73a8b48
Merge branch 'master' into template-search
2020-10-05 22:41:47 +02:00
Jimmy Cai and GitHub
809fa7860d
refactor(config): add line break between sections ( #26 )
...
For better readability
2020-10-05 08:56:03 +02:00
Jimmy Cai and GitHub
c86d4124df
Merge pull request #25 from CaiJimmy/deprecate-article-default-image
...
refactor(config): deprecate article default image
2020-10-05 08:16:56 +02:00
Jimmy Cai and GitHub
d461267734
refactor(config): deprecate article default image
...
Remove [params.defaultImage.article] and [params.defaultImage.articleList] from config.toml
2020-10-05 08:14:51 +02:00
Jimmy Cai and GitHub
1172ea1fd3
Merge pull request #24 from CaiJimmy/utterances-support
...
feat(comments): add utterances support
2020-10-04 16:25:53 +02:00
Jimmy Cai and GitHub
f92fb41fd7
doc: update theme.toml
2020-10-02 00:35:13 +02:00
Jimmy Cai and GitHub
bd8e03ba61
fix(rss): remove featured image width height attr
...
Throws error when featured image is not found inside page bundle.
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/20
2020-09-28 16:12:52 +02:00
Jimmy Cai and GitHub
0cee4930e2
fix(disqus): fix container padding
...
Rename `--content-padding` to `--card-padding`
2020-09-20 23:45:44 +02:00
Jimmy Cai and GitHub
3a003eadca
Merge pull request #13 from CaiJimmy/custom-taxonomy-permalink
...
feat(article): add support for custom taxonomy link
2020-09-18 20:06:42 +02:00
Jimmy Cai and GitHub
d292727821
Merge branch 'master' into custom-taxonomy-permalink
2020-09-18 00:35:43 +02:00
Jimmy Cai and GitHub
e20d401007
Merge pull request #11 from CaiJimmy/netlify-cache
...
ci: add cache for Netlify build
2020-09-17 22:33:58 +02:00
Jimmy Cai and GitHub
4a12e6fc31
Merge pull request #10 from CaiJimmy/partials-cache
...
feat: add partialCached for some of the most invocated partial templates
2020-09-17 22:33:29 +02:00
Jimmy Cai and GitHub
2a0d06190b
Merge pull request #7 from CaiJimmy/refactor-baseof
...
refactor(layouts): move layout HTML to baseof.html
2020-09-12 10:49:45 +02:00
Jimmy Cai and GitHub
03f91c36b2
Merge pull request #5 from CaiJimmy/new-image-helper
...
feat(helper/image): new image helper
2020-09-11 18:15:46 +02:00
Jimmy Cai and GitHub
f1bbe37eee
doc(README): add Netlify deploy status badge
2020-08-24 23:22:38 +02:00
Jimmy Cai and GitHub
3653d78201
📝 Add README
2020-08-23 08:55:34 +02:00