Commit Graph

2439 Commits

Author SHA1 Message Date
Cell 9f378691f1 docs: add README for apps directory with development instructions 2026-08-14 12:45:34 +08:00
Cell 9f4d33a670 docs: add README for internal packages overview and development instructions 2026-08-14 12:41:43 +08:00
Cell 3c449a9017 refactor(assets): extract UnoCSS config into @hugo-fixit/unocss-preset package (#829)
Extract theme tokens, shortcuts, blocklist, safelist, and icon configuration
from uno.config.ts into a reusable workspace package at packages/unocss-preset/.

- Create @hugo-fixit/unocss-preset with presetFixIt and createFixItConfig()
- Simplify uno.config.ts to use createFixItConfig() with content/cli overrides
- Move unocss, @iconify/json from root devDependencies to preset package
2026-08-14 12:33:18 +08:00
dependabot[bot] 65e9f2ff92 chore(deps-dev): bump toml from 3.0.0 to 5.0.0 (#815) 2026-08-12 18:10:29 +08:00
Cell 54fe7bdc83 Merge pull request #814 from hugo-fixit/dependabot/npm_and_yarn/commander-15.0.0 2026-08-12 18:09:34 +08:00
dependabot[bot] 0bc1862853 chore(deps-dev): bump the npm-development group with 6 updates (#813)
Bumps the npm-development group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [@antfu/eslint-config](https://github.com/antfu/eslint-config) | `9.1.0` | `9.2.0` |
| [@iconify/json](https://github.com/iconify/icon-sets) | `2.2.502` | `2.2.507` |
| [concurrently](https://github.com/open-cli-tools/concurrently) | `10.0.3` | `10.0.4` |
| [eslint](https://github.com/eslint/eslint) | `10.7.0` | `10.8.0` |
| [lint-staged](https://github.com/lint-staged/lint-staged) | `17.1.0` | `17.2.0` |
| [fs-extra](https://github.com/jprichardson/node-fs-extra) | `11.3.6` | `11.4.0` |


Updates `@antfu/eslint-config` from 9.1.0 to 9.2.0
- [Release notes](https://github.com/antfu/eslint-config/releases)
- [Commits](https://github.com/antfu/eslint-config/compare/v9.1.0...v9.2.0)

Updates `@iconify/json` from 2.2.502 to 2.2.507
- [Commits](https://github.com/iconify/icon-sets/compare/2.2.502...2.2.507)

Updates `concurrently` from 10.0.3 to 10.0.4
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v10.0.3...v10.0.4)

Updates `eslint` from 10.7.0 to 10.8.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.7.0...v10.8.0)

Updates `lint-staged` from 17.1.0 to 17.2.0
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v17.1.0...v17.2.0)

Updates `fs-extra` from 11.3.6 to 11.4.0
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.3.6...11.4.0)

---
updated-dependencies:
- dependency-name: "@antfu/eslint-config"
  dependency-version: 9.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: "@iconify/json"
  dependency-version: 2.2.507
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: concurrently
  dependency-version: 10.0.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-development
- dependency-name: eslint
  dependency-version: 10.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: lint-staged
  dependency-version: 17.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
- dependency-name: fs-extra
  dependency-version: 11.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-12 18:01:24 +08:00
Cell b680d609a1 fix(scss): preserve mobile search modal height (#828) 2026-08-12 12:43:00 +08:00
Cell a9c29b1641 fix(scss): preserve bare CSS fallback values in fi-var
Solve the problem of losing the default background color of the "mark" tag
2026-08-12 11:25:11 +08:00
Cell 7bdd0c5869 fix: update manifest output condition to include server and non-production checks 2026-08-07 20:47:40 +08:00
dependabot[bot] 8d7703a418 chore(deps): bump actions/setup-node from 6 to 7 (#812)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-01 11:42:56 +08:00
dependabot[bot] da2f085969 chore(deps): bump github/codeql-action from 4 to 4.37.3 (#811)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4 to 4.37.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4...v4.37.3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.37.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-01 11:42:28 +08:00
Cell e3acdb9732 fix(workflow): pass GITHUB_TOKEN to gen-lexers step 2026-08-01 11:36:43 +08:00
dependabot[bot] ece55d0d36 chore(deps-dev): bump commander from 14.0.3 to 15.0.0
Bumps [commander](https://github.com/tj/commander.js) from 14.0.3 to 15.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v14.0.3...v15.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-version: 15.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-01 01:25:15 +00:00
Cell a73416e2be chore(release): 1.0.0-alpha v1.0.0-alpha 2026-07-27 14:44:11 +08:00
Cell 9e2f388022 style(assets): use cooler and darker hover colors for menu items in dark mode 2026-07-26 04:14:46 +08:00
Cell 610fa1d561 fix(assets): apply correct json-viewer theme after content decryption 2026-07-26 02:08:02 +08:00
Cell a5a7b98c95 docs: update v1 migration guide and fixit-encrypt repository
- Update README warning to point to v1 migration guide
- Update version compatibility check for v1.0.0
- Remove temporary v1 development warning
- Update fixit-encrypt repository link in encrypt package README
2026-07-24 12:39:03 +08:00
Cell a5d24f395e refactor(assets): use ES6 # private fields instead of TS private
Convert all TypeScript `private` and `private readonly` declarations to
ES6 `#` syntax for true runtime privacy. TypeScript's `private` keyword
only provides compile-time checking but fields remain accessible in
compiled JavaScript.
2026-07-23 14:33:19 +08:00
Cell f5509e5b82 style(assets): rebuild unocss.css
Remove redundant CSS variable comments and add .ease-out utility.
2026-07-23 12:59:30 +08:00
Cell d35dd6a120 chore: clean up VSCode settings
Remove explorer.fileNesting config and fix comment casing.
2026-07-23 12:59:19 +08:00
Cell 5322a15ceb docs(layouts): add header comments to undocumented partials
Add `{{/* ... */}}` header comments to 25 partials that had no documentation,
enabling `pnpm gen:docs` to generate their reference docs. Also fix
base/head/index.html leading blank line that prevented parser matching.

Groups covered: base/, feed/, function/, home/, init/, plugin/, single/, store/, (root).
2026-07-23 12:56:40 +08:00
Cell a254e10136 chore(release): encrypt 0.3.1 encrypt-v0.3.1 2026-07-21 16:24:19 +08:00
Cell 15b415ff2e docs(encrypt): update Go implementation status to Available
Also fix shell command injection in bench.ts and simplify build script.
2026-07-21 16:23:08 +08:00
Cell 2c0b48370b feat(gen-docs): add Hugo partials docs generation (#809)
* feat(gen-docs): add documentation generation package with SassDoc and TypeDoc support

Add new `@hugo-fixit/gen-docs` package that parses Hugo config (hugo.toml) and generates
documentation. Includes SassDoc annotations for SCSS variables and mixins, TypeDoc config
for TypeScript source docs, and a `.sassdocrc` configuration file.

* docs(readme): add browsers support section

* feat(gen-docs): add Hugo partials docs generation and fix config empty sections

- Add partial-parser.ts: parses Hugo partial comment blocks (@param/@return/@example)
- Add partials.ts renderer: generates grouped Markdown with param tables
- Add `partials` subcommand with -t/-o options for template injection
- Fix config-parser: empty TOML sections (library.js/library.css) now retain descriptions
- Fix config-parser: correctly distinguish section-level vs key-level comments
- Update README with partials subcommand documentation
2026-07-21 12:19:07 +08:00
Cell e07eefd506 fix(layouts): fix busuanzi site views variable name in footer 2026-07-21 01:30:32 +08:00
Cell 7a28234de3 fix(styles): content style priority conflict 2026-07-21 00:38:02 +08:00
Cell 0d6af76f06 feat(layouts): add timeout and cache key options to get-remote-image partial 2026-07-19 15:33:15 +08:00
Cell 10da1f731f chore(release): encrypt 0.3.0 encrypt-v0.3.0 2026-07-19 13:25:28 +08:00
Cell bfee4041d6 refactor(encrypt): rename post-encrypt to encrypt
- Rename package from @hugo-fixit/post-encrypt to @hugo-fixit/encrypt
- Rename bin from post-encrypt to fixit-encrypt
- Update all i18n translations (16 files) to use npx @hugo-fixit/encrypt
- Update CI workflow, publish script, code comments, and docs
- Rewrite README with performance benchmarks and other implementations
2026-07-19 13:15:57 +08:00
Cell 78f1a8583a test(post-encrypt): add performance benchmark script 2026-07-19 12:38:03 +08:00
Cell 3e4cb8d699 feat(post-encrypt): add elapsed time and scanned file count to output 2026-07-18 13:40:17 +08:00
Cell b274b1b33b chore(config): remove deprecated hugoVersion.extended
The `hugoVersion.extended` field is deprecated since Hugo v0.153.0
and the version check was removed in v0.153.2. WebP encoding is now
supported in all Hugo editions, and LibSass has been replaced by Dart
Sass. Since the theme requires Hugo >= 0.161.0, this setting is no
longer needed.
2026-07-18 02:48:17 +08:00
Cell 06419f7968 fix(i): adjust language switch submenu position offset 2026-07-18 02:32:58 +08:00
Cell 3326ea4515 fix(layouts): fix toggle code block YAML conversion for identical values
- Add explicit format detection fallback when auto-detection fails
- Strip YAML anchors/aliases created by Go yaml.v3 for identical values
2026-07-18 01:31:56 +08:00
Cell 5811b21f02 fix(assets,layouts): correct page_style comment and remove newlines from deprecation warnings 2026-07-17 20:50:13 +08:00
Cell 54fb90388f feat(assets): add TypeScript type declarations for Hugo @params module
Add proper type definitions for Hugo's `@params` virtual module, configure
tsconfig paths/typeRoots for resolution, and remove the @ts-expect-error
suppress in color-scheme.ts. Also fix nil input handling in camel-case-keys.
2026-07-16 15:51:25 +08:00
Cell 3242dbf2fb feat: compatible with Hugo 0.158.0+ for language methods 2026-07-16 12:44:43 +08:00
Cell 966ace5a66 feat(i): PostChat dark theme compatibility
NOTE: This feature may be removed from the theme's built-in functionality in the future.
2026-07-16 01:37:10 +08:00
Cell 20c0997cc5 fix(assets): restructure SCSS pages directory and fix positioning issues
- Restructure SCSS pages directory and rename shared to content
- Ensure hr overflow visible for awesome-hr icon
- Restore position relative on .page for absolute children
2026-07-16 00:13:35 +08:00
Cell 69920e0140 docs(config): fix typo 2026-07-14 17:10:12 +08:00
Cell d81d1a0ff4 fix(assets): move reward shortcode styles to shared shortcodes
The reward SCSS was under pages/posts/ so it only loaded on post pages.
Moving it to pages/shared/shortcodes/ makes it available on all page types
(e.g. community page).
2026-07-14 15:54:55 +08:00
Cell e6625fb118 feat(deprecated): project config key languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use locale instead.
https://gohugo.io/methods/site/language/
https://gohugo.io/methods/page/language/
https://gohugo.io/configuration/languages/
2026-07-13 17:20:52 +08:00
Cell 405024989c fix(assets): fix sw-update-notification display and PWA guard conditions
- Change sw-toast default from `display: flex` to `display: none` with proper CSS discrete transition
- Add `display: flex` in `.visible` state and `allow-discrete` transition for display property
- Restore production-only guard for SW notification and webmanifest templates
- Fix PWA config enable to always be true when template is rendered
- Fix extra space in head/index.html conditional
2026-07-13 16:50:10 +08:00
Cell 874337f7d1 docs: update theme documentation links 2026-07-13 15:10:42 +08:00
Cell b95a29e6e4 docs(config): improve search and compatibility section comments in hugo.toml 2026-07-12 04:36:17 +08:00
Cell 6188165504 docs(config): standardize hugo.toml comments for gendocs compatibility
- Capitalize first letter of all description comments
- Add trailing periods to comment sentences
- Replace `e.g.` with `Example:` for consistency
- Convert inline URLs to `See: [description](url)` format
- Move inline comments before config keys
- Add ` #` suffix to group separator comments
- Fix `available values` to standalone lines
- Wrap angle brackets in backticks for syntax examples
2026-07-11 18:18:56 +08:00
Cell e4bd5731df chore: update theme configuration 2026-07-11 00:03:53 +08:00
Cell 391d2ecd56 feat: .Language.LanguageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use .Language.Label instead. 2026-07-10 23:59:50 +08:00
Cell b5419ef704 fix(assets): fix nil pointer in icon.html and correct QQ icon names
Use `with` block to guard against nil resource in icon.html, preventing
panic when `resources.Get` fails. Correct simple-icons names from
`tencentqq` to `qq` for QQ and QQ Group social links.
2026-07-10 21:12:56 +08:00
Cell a2d756777f fix(tabs): revert tab and tabs rendering (#772) and update chroma lexers 2026-07-10 19:44:17 +08:00