Jimmy Cai
88ebb17a9d
Merge branch 'master' into canary
2024-05-02 23:36:21 +02:00
Jimmy Cai
fddab05362
release: 3.26.0
2024-05-02 23:28:01 +02:00
Jimmy Cai and GitHub
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
b62a04332d
Merge branch 'master' into canary
2024-03-30 23:28:21 +01:00
Jimmy Cai
1603aecbe2
Merge branch 'master' into canary
2024-03-30 23:27:38 +01:00
Jimmy Cai and GitHub
130e2f6607
feat: display header anchor on hover ( #999 )
2024-03-30 23:22:18 +01:00
Jimmy Cai
5466ffb525
Merge branch 'master' into canary
2024-03-27 17:03:10 +01:00
Jimmy Cai
ce798a32a9
release: 3.25.0
2024-03-27 17:01:23 +01:00
Jimmy Cai and GitHub
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 and GitHub
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 and GitHub
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 and GitHub
f8466d94d2
fix(i18n): wrap footer.builtWith with double quotes in Japanese translation ( #991 )
2024-03-27 16:01:43 +01:00
Jimmy Cai and GitHub
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 and GitHub
5d100a7f99
feat: new archives layout ( #989 )
...
* feat(archives): add search bar to archives page
* fix: error `file is nil; wrap it in if or with` from Hugo 0.123.0
* style: rename `search.ts` to `archives.ts`
* refactor: remove `search` page layout
* doc: remove `search` from `exampleSite`
* fix: generate JSON output for archives page in exampleSite
* feat: put archives search form under categories list
2024-03-25 00:02:47 +01:00
Jimmy Cai
9df2641193
Merge branch 'master' into canary
2024-03-17 20:45:12 +01:00
Jimmy Cai
54a8ace564
release 3.24.2
2024-03-17 20:41:27 +01:00
Jimmy Cai and GitHub
2cb5ba683b
fix: remove \n character from meta description ( #980 )
2024-03-17 20:39:16 +01:00
Jimmy Cai
56c8560e14
Merge branch 'master' into canary
2024-03-12 14:58:08 +01:00
Jimmy Cai
5a8607e4a8
release: 3.24.1
2024-03-12 14:52:03 +01:00
Jimmy Cai and GitHub
0b9f6c36ad
fix(head): prevent Go template from escaping HTML entities in meta description ( #973 )
2024-03-12 14:45:59 +01:00
Jimmy Cai
ecc435ec80
chore(docs): upgrade vitepress to 1.0.0-rc.45
2024-03-10 23:57:31 +01:00
Jimmy Cai
64ecafb57f
Merge branch 'master' into canary
2024-03-10 23:48:40 +01:00
Jimmy Cai
04bf1956b9
release: 3.24.0
2024-03-10 22:57:26 +01:00
Jimmy Cai and GitHub
43224bd39a
feat: update Hugo version and minimum version requirement to 0.123.0 ( #970 )
2024-03-10 19:54:09 +01:00
Jimmy Cai
2f9306502d
release: 3.23.0
2024-03-02 23:49:21 +01:00
Jimmy Cai
405e84291a
release: 3.22.0
2024-02-26 12:44:11 +01:00
Jimmy Cai and GitHub
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
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