Commit Graph
667 Commits
Author SHA1 Message Date
Jimmy CaiandGitHub 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
潇潇雨歇andGitHub 5c98a38a80 chore(comments): update twikoo to 1.6.21 (#877) 2023-10-07 13:08:02 +02:00
Fabian AlvarezandGitHub 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 v3.20.0 2023-09-03 16:17:25 +02:00
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
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 ZhongandGitHub be4fd55095 feat(article): font enhancement (#767)
Change font settings
2023-09-03 15:32:44 +02:00
SimbaFsandGitHub 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 v4.0.0-alpha.1 2023-08-27 18:52:33 +02:00
Jimmy Cai ce0a252bfa release: 3.19.0 v3.19.0 2023-08-27 18:49:37 +02:00
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
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áš TrkanandGitHub 40712eb781 feat(i18n): add Czech support (#793) 2023-08-27 18:03:26 +02:00
Alex HuaandGitHub 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
Jimmy CaiandGitHub c6d1d73dd2 chore: update issue report template to include minimal reproducible example (#864) 2023-08-17 11:15:07 +02:00
Brandon SzetoandGitHub 5d90624441 doc: Inline math example previously not working as intended (#834)
Inline math example previously not working as intended
2023-08-16 14:21:23 +02:00
Jimmy Cai 5edd4afaf3 release: 3.18.0 v3.18.0 2023-08-15 13:17:22 +02:00
Jimmy CaiandGitHub 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 CaiandGitHub 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 CaiandGitHub 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 CaiandGitHub 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 CaiandGitHub 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 CaiandGitHub 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
26d2859f70 fix: very poor color contrast for default text (#845)
Resolves #754

Co-authored-by: Nick Kocharhook <nick@kocharhook.com>
2023-08-12 11:57:02 +02:00
RichandGitHub 51e0ec7f99 feat: allow footer copyright to be different to the site title (#839)
* Allow copyright to be different to the site title

* Add copyright to exampleSite
2023-08-12 11:29:56 +02:00
Jimmy Cai 13568d8ff0 release: 3.17.0 v3.17.0 2023-07-18 00:07:02 +00:00
SimbaFsandGitHub 2fb534f9a6 feat(i18n): update translations for zh-tw (#786)
* sync with latest

* translate zh-tw
2023-07-15 10:13:16 +08:00
Piotr HalamaandGitHub 58559c5b3f feat(i18n): add missing plural forms for the Polish language (#818)
Add missing plural forms for the Polish language
2023-07-15 09:35:09 +08:00
Tsung-Yu ChanandGitHub 0bc942bb12 fix: remark42 comment system won't show (#799) 2023-07-12 09:37:39 +08:00
WeltolkandGitHub a88fe3f5a7 chore: update twikoo version (#783) 2023-07-12 09:20:25 +08:00
Jacob ZhongandGitHub 1bd4dcd415 fix(sidebar): add padding-bottom to the right sidebar (#765)
Add bottom padding to the right sidebar
2023-07-12 09:12:58 +08:00
Jimmy CaiandGitHub aae9cf67db fix: typo in README: stater -> starter
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/764
2023-02-16 20:07:43 +01:00
Nagakawa YunoandGitHub cb42d2041f fix: KaTeX may render contents in gist under certain conditions (#755)
add gist to katex's ignoredClasses
2023-02-16 20:03:32 +01:00
ttheng3810andGitHub 4272da7ee4 feat(i18n): add footer translation for ZH-TW (#748) 2022-12-29 21:18:14 +01:00
ParasomniaandGitHub d382ca993d fix(comment/utterances): the target origin mismatch recipient window's origin (#735) 2022-12-06 14:55:40 +01:00
rock GandGitHub 3ff06fe033 fix: anchor link need decode (#719) 2022-12-05 21:21:37 +01:00
Anh Nhat TranandGitHub ff7a56a7ac feat(i18n): add vietnamese translation (#717) 2022-12-03 13:27:55 +01:00