Commit Graph

68 Commits

Author SHA1 Message Date
Cell 456db3851b 🚚 Feat: supersede markup.tableOfContents settings with params.page.toc 2024-09-27 17:10:17 +08:00
Cell c36d87fd84 ♻️ Refactor: color scheme checking and move data-theme to document element 2024-09-27 12:52:29 +08:00
Cell 954d86432f Feat: add custom partials options params.customPartials 2024-09-25 18:28:35 +08:00
Cell 1ca9fdb760 ♻️ Refactor: javascript output for inline scripts 2024-09-01 00:37:16 +08:00
Cell eb0acca980 Feat: add unified custom template entry file layouts/partials/custom.html 2024-05-09 15:44:57 +08:00
Cell 72bd72f5ed ♻️ Refactor: refactor typeit shortcode and feature (#420) 2024-04-20 16:30:16 +08:00
Cell 2ea592b4a3 🐛 Fix: use function to get params replace of .Scatch (#420) 2024-02-23 20:50:52 +08:00
Cell 0f5e60274a 🎉 Feat: add breadcrumb navigation (#309)
⬆️ Required Hugo versions above 0.109.0
2023-03-24 17:02:38 +08:00
Cell 19396e7e5f 🐛 Fix: toc fails when the toc aside is on the left 2023-03-03 12:43:16 +08:00
Cell b236c27820 🎨 Style: unified code style 2022-09-17 18:40:31 +08:00
Cell 913a82fe18 Perf: simplify theme switching logic 2022-08-27 01:11:00 +08:00
Cell 2efcf947a7 🐛 Fix: the “type” attribute is unnecessary for JavaScript resources
The default `type` for `<script>` tags is `JavaScript`, so you don’t need to include the type for JS resources.
2022-08-26 17:16:20 +08:00
Cell 55e747e5f1 🐛 Fix: the itemprop attribute was specified, but the element is not a property of any item 2022-08-26 17:00:26 +08:00
Cell 0edd185b39 🐛 Fix: use data attributes or class replace for custom attributes 2022-08-26 16:48:11 +08:00
Cell dfbffa2ad5 🐛 Fix: remove unneeded meta tag
This was only needed for IE10 and lower (which are no longer supported) and chromeframe which was a Google plugin for IE8 and lower and was discontinued many years ago. So this meta tag can be safely removed.
2022-08-26 15:48:16 +08:00
Cell c0346d18a7 🚚 Perf: subdivide FixIt initialization 2022-07-17 10:50:07 +08:00
Cell 314fc909cd 🔧 Chore: inject a theme meta tag in the HTML head on the home page only 2022-05-09 14:51:10 +08:00
Cell 08d95cb578 Perf: add GitHub Corners full support (#106) 2022-04-30 14:30:42 +08:00
Cell 0bf30a50d9 ♻️ Refactor: main layout and add toc.position option support (#65) 2022-02-18 12:53:26 +08:00
Cell e369458f09 Draft:
 Feat: add pageStyle option (#62)
TODO: refactor toc logic (#65)

> Tip: This commit needs to be improved and to be tested. Please don't update to it!
2022-02-17 12:20:12 +08:00
Cell dcd190949c 🎉 Feat: add Watermark support (#16) 2022-01-08 16:40:48 +08:00
Cell 5f7d516ab4 🎉 Feat: add PWA support 2021-12-30 20:39:39 +08:00
Dillon c5a0ec61c9 feat(compatibility): add config for compatibility (Polyfill.io and object-fit-images) 2020-05-15 16:32:36 +08:00
Dillon 39159a9a6d feat(CDN): replace CDN config with CDN data file (#353) 2020-05-13 19:29:37 +08:00
Dillon 762a7e538d feat(compatibility): improve compatibility for Hugo basic version (#352) 2020-05-13 00:45:19 +08:00
Dillon 7c4962e39a fix(compatibility): compatibility for version 0.1.X (#351) 2020-05-12 22:40:49 +08:00
Dillon 83869e0fc8 feat(analytics): update Google analytics.js to gtag.js (#349) 2020-05-12 20:51:07 +08:00
Dillon f4c9fe750d fix(shortcode): style shortcode scss file path (#327) 2020-05-06 21:31:37 +08:00
Dillon 09a7c95362 fix(search): theme.js error when search is disabled (#310) 2020-05-03 11:06:10 +08:00
Dillon 5b689bf29b fix(title): terms title error and change delimiter from "|" to "-" (#299) 2020-05-01 16:23:17 +08:00
Dillon 854e9e3d37 chore(lib): update mapbox-gl and valine 2020-04-30 01:49:33 +08:00
Dillon 56026f934d fix(typeit): typeit code highlight (#284) 2020-04-29 19:52:31 +08:00
Dillon 6805d695f6 chore: update docs and style (#269) 2020-04-28 01:38:22 +08:00
Dillon 3c38d54a87 feat(home): add custom content for home page (#248) 2020-04-22 17:50:30 +08:00
Dillon f14301c395 feat: improve configuration (#245)
* feat: improve configuration

* fix: fix partials/footer.html error
2020-04-21 22:55:06 +08:00
Dillon 8a0e61085c feat(code): add copy button for code (#239) 2020-04-18 20:54:54 +08:00
Dillon 90184ca3e7 feat(search): add local search (#231)
* feat(search): add local search

* docs: add docs for search
2020-04-15 15:46:50 +08:00
Dillon 80db783396 feat(fixed-btns): add title for fixed buttons (#176) 2020-03-17 02:03:36 +08:00
Dillon 41c2d3a38e feat: add detection of the theme version and Hugo version (#173)
* feat: add detection of the theme version and Hugo version

* fix: hugo.IsProduction is incompatible in Hugo v0.62.0
2020-03-16 21:35:16 +08:00
Dillon 6e091b6fad feat(button): add 'comment' fixed button (#169) 2020-03-16 15:01:51 +08:00
Dillon 212e67c2a5 feat(style): improve toc style (#167) 2020-03-16 10:59:51 +08:00
Dillon 3d9aad3205 feat(style): adjust style of header, tags and dynamic-to-top button 2020-03-14 14:42:12 +08:00
Dillon 924692a07e feat(assets): add SRI config for stylesheet and script 2020-03-09 20:25:55 +08:00
Dillon 285efc01bb feat(environment): use hugo.Environment to judge the production environment 2020-03-02 17:03:35 +08:00
Dillon ae81e3767e fix(srcatch): fix srcatch bugs 2020-02-27 20:14:40 +08:00
Dillon 72a2e9bdcf feat(image): add image lightgallery 2020-02-24 17:00:39 +08:00
Dillon 88576721cc feature(header): add header config 2020-02-16 20:36:36 +08:00
Dillon 69688661f4 chore(header): remove all dummy-targets and update smooth scroll 2020-02-16 16:42:14 +08:00
Dillon 2f8123bfa6 chore(deps): remove jQuery 2020-02-16 03:03:18 +08:00
Dillon 1088f86b6d chore: refactor scripts code style 2020-02-14 21:09:21 +08:00