Commit Graph

35 Commits

Author SHA1 Message Date
Ryan
36721f8bf6 Bump deps (#515)
* chore: add nix flake for reproducible dev environment

Signed-off-by: Sped0n <hi@sped0n.com>

* refactor: migrate SCSS to modern Sass (@use/@forward)

Update mixins to use Sass module functions (map.has-key/get).
Configure Vite for modern Sass API.
Introduce _foundation.scss for forwarding core modules.

Signed-off-by: Sped0n <hi@sped0n.com>

* fix: replace deprecated _build with build in frontmatter

Signed-off-by: Sped0n <hi@sped0n.com>

* chore: add vcache.sh script for vercel build cache management

Signed-off-by: Sped0n <hi@sped0n.com>

* refactor: migrate to ESLint v9 flat config

Remove legacy .eslintrc.json, .eslintignore, and .prettierrc.json.

Add eslint.config.mjs with love, prettier, solid, and import rules.

Update devDependencies (eslint@9, @typescript-eslint@8, etc.) and scripts.

Minor TS fixes: remove eslint-disable, add error logging, simplify conditional.

Signed-off-by: Sped0n <hi@sped0n.com>

* chore: replace vcache.sh with vercel.sh for Vercel build process

Delete vcache.sh script.

Add vercel.sh: install Dart Sass v1.93.3, copy generated assets between
node_modules and project dirs, run vite:build + hugo build, then copy back.

Signed-off-by: Sped0n <hi@sped0n.com>

* chore: setup dart-sass and split build steps in GitHub workflow

Signed-off-by: Sped0n <hi@sped0n.com>

---------

Signed-off-by: Sped0n <hi@sped0n.com>
2025-11-11 20:20:29 +08:00
Sped0n
543d630535 chore: update demo site config
Signed-off-by: Sped0n <hi@sped0n.com>
2025-10-21 16:29:11 +08:00
Ananth
9016cfb035 Add tamil translation (#430) 2025-01-03 16:19:41 +08:00
Spedon
437bbf17e0 docs: clarify relative path usage in documentation (#389)
- Clarify the relative path requirement in the installation documentation
- Update the comment in the configuration file to specify the relative path context

Signed-off-by: Spedon Wen <realsped0n@outlook.com>
2024-08-29 08:04:19 +00:00
Spedon
fb498971c7 chore: update domain (#330) 2024-05-20 14:08:58 +00:00
Spedon
d808782afd docs: update documentation (#303) 2024-03-17 16:23:43 +08:00
Spedon
b1553a9a8b fix: fix hugo module version bug (#299)
* docs: Update getStarted.md

* fix: update module version in example site config

* chore: Update index.md

* revert
2024-03-16 21:30:40 +08:00
Spedon
875113448b refactor: migrate part of the sass compilation to vite (#283)
* refactor: migrate part of the sass compilation to vite

now `bundled` option is deprecated

* fix: update build script

* chore: add a “type” field to the package.json file to resolve Vite’s complaints about CommonJS modules.
2024-02-22 23:44:16 +08:00
Spedon
997207fa90 feat: remove source image in public to prevent leakage (#278)
* refactor: change hires loader function name

* feat: add loading transition animation and improve performance

* feat: hide image source in exampleSite

* docs: update docs for publishResources
2024-02-06 23:40:46 +08:00
Spedon
ba07636f8f refactor: prefine for version v1.0.2 (#269)
* refactor: refactor navigateVector logic and remove unused functions

* refactor: refactor HTML structure and styling in single.html

- Modify the `.info` class to `article` in `_article.scss`
- Remove the `nav.html` partial in `single.html`
- Change the class name from `info` to `article` in `single.html`
- Add the `nav.html` partial in `single.html`

* refactor: update handling of 404 page
- Now hugo will set unknown page title as "404"
- Add condition to return an empty image array if the document title starts with "404"

* docs: update documentation
2024-02-05 16:02:10 +08:00
Spedon
3fef127666 fix: fix typo in index.md (#227) 2024-01-12 14:24:06 +08:00
Spedon
8ba41fc32c v0.0.5 (#219)
* feat: refactor condition for checking `site.Params.bundled`

- Add default condition for checking if `site.Params.bundled` is true or false

* refactor: update info page content

* chore: update site description

* refactor: refactor variable assignments and return statement in menu template

- Change the variable assignment from `.DirName` to `.Identifier` in the file `layouts/_default/single.json`
- Change the variable assignments in the file `layouts/partials/function/currentMenuItem.html`:
  - From `$dirName := ""` to `$identifier := ""`
  - From `$id := -1` to `$title := ""` and `$weight := -1`
  - From `$dirName = .Identifier` to `$identifier = .Identifier`, `$title = .Title`, and `$weight = .Weight`
- Change the return statement in the file `layouts/partials/function/currentMenuItem.html` from `(dict "DirName" $dirName "ID" $id)` to `(dict "Identifier" $identifier "Title" $title "Weight" $weight)`

* feat: update nav links structure for current link styling

- Remove javascript code related to setting current link style and title
- Update nav links to use updated HTML structure for current link styling

* feat: update page titles and meta tags in layout files

- Update the `baseof.html` layout to include the current page title in the `<title>` tag
- Add OpenGraph meta tags for the page title and description in `meta.html` layout
2024-01-07 23:16:55 +08:00
Spedon
39fdbb2921 Update params.toml (#149) 2023-11-13 21:02:21 +08:00
Spedon
9b08d255f1 Use JSON file to replace raw string in DOM (#147)
* chore(Geist): bump geist font to v1.0.1

* refactor(_typography.scss): split the CSS lang tag to ensure compatibility with Chromium-based browsers

* refactor(stage.ts): bump up preload count on desktop

* feat(params.toml): add support for user defined resize option

* feat(_fonts.scss): add a new font file to better support fullwidth plus and minus

* refactor(info): update info

* chore(build.yml): update branch name for updating bundled artifacts to include the current date

* chore(package.json): update version from 0.0.1 to v0.0.2 to reflect changes made in the codebase

* feat: refactor initialization process for retrieving and sorting image data

- Modify `main.ts` to use async initialization of resources
- Change the return type of `initResources` function to `Promise<ImageJSON[]>`
- Add try-catch block to handle errors in `initResources` function
- Use fetch API to retrieve image data from `index.json`
- Sort the image data based on the index field

* refactor: update file naming and variable assignments in layouts

- Add new file `exampleSite/config/_default/outputs.toml` with the contents `page = ["HTML", "JSON"]`
- Rename file `layouts/partials/resources/imageJSON.html` to `layouts/_default/single.json`
- Modify variable assignments and references in the `single.json` layou

* chore: remove code that includes imageJSON.html partials in layouts

- Remove the code that includes the "resources/imageJSON.html" partial in the 404.html layout
- Remove the code that includes the "resources/imageJSON.html" partial in the single.html layout
2023-11-13 20:51:08 +08:00
Spedon
9c073e98e1 v0.0.2 (#144)
* chore(Geist): bump geist font to v1.0.1

* refactor(_typography.scss): split the CSS lang tag to ensure compatibility with Chromium-based browsers

* refactor(stage.ts): bump up preload count on desktop

* feat(params.toml): add support for user defined resize option

* feat(_fonts.scss): add a new font file to better support fullwidth plus and minus

* refactor(info): update info

* chore(build.yml): update branch name for updating bundled artifacts to include the current date

* chore(package.json): update version from 0.0.1 to v0.0.2 to reflect changes made in the codebase
2023-11-10 21:00:09 +08:00
Spedon
f083407889 add i18n 404 and README support (#132)
* feat(params.toml): enable analytics and configure Umami Analytics

Enable analytics by setting `enable` to `true` in the `[analytics]` section of the `params.toml` file. Also, configure Umami Analytics by providing the `data_website_id`, `src`, and `data_domains` values.

* feat(404.html): replace hardcoded "404 page not found" text with translated version to improve localization

* feat(README.md): add README.md file with information about the Bridget theme and its features
feat(getStarted.md): add getStarted.md file with instructions on how to get started with the Bridget theme, including installation and content management instructions
2023-11-06 16:07:56 +08:00
Spedon
8c2138ce3b chore(hugo.toml): update theme configuration to use "bridget" theme (#131)
* chore(hugo.toml): update theme configuration to use "bridget" theme
feat(go.mod): add "github.com/Sped0n/bridget" module as a dependency with version v0.0.0-20231104151130-eb8ddf657d31
feat(go.sum): add checksum for "github.com/Sped0n/bridget" module with version v0.0.0-20231104151130-eb8ddf657d31

* blind commit
2023-11-06 12:47:51 +08:00
Sped0n
90aa1ad480 chore: blind commit 2023-11-04 19:24:57 +08:00
Sped0n
cd98208074 chore(hugo.toml): update theme configuration to use local file instead of module for better customization and flexibility
chore(go.mod): update Go version to 1.21.3 for compatibility and potential bug fixes
2023-11-04 18:36:32 +08:00
Sped0n
e045d273ad feat(hugo.toml): add support for theme as a local file and as a module 2023-11-04 17:56:30 +08:00
Sped0n
8d9dc0c121 refactor(favicon); change favicon related setup 2023-11-04 16:27:05 +08:00
Sped0n
7150be69d6 feat(baseof.html): include favicon partial in head section of baseof.html layout for favicon rendering 2023-11-04 14:29:09 +08:00
Sped0n
0a969fdee3 fix(hugo.toml): fix website title to match theme name for consistency and clarity 2023-11-03 16:14:58 +08:00
Sped0n
c068133cd1 feat(params.toml): add unifiedAlt parameter to allow setting a unified alt text for all images in the page 2023-11-03 14:26:28 +08:00
Sped0n
43330579bd feat(seo.html): add meta tags for site verification codes (Google, Bing, Yandex, Pinterest, Baidu, So, Sogou) to improve SEO and site ownership verification
feat(analytics.html): create partial to include analytics scripts for various analytics services (Google Analytics, Fathom Analytics, Baidu Analytics, Umami Analytics, Plausible Analytics, Cloudflare Analytics, Splitbee Analytics) to track website traffic and user behavior
2023-11-03 14:25:20 +08:00
Sped0n
f4eda42785 feat(i18n): add translations for the new languages (de, es, fr, it, CJK) 2023-11-03 14:19:06 +08:00
Sped0n
ed40ddd27e chore(imageJSON.html): add alt attribute to images in imageJSON partial to improve accessibility 2023-11-03 09:49:40 +08:00
Sped0n
75dc3c9269 chore(hugo.toml): update baseURL, themesdir, theme, and title in hugo.toml
feat(hugo.toml): enable robots.txt and set defaultContentLanguage to 'en' in hugo.toml

chore(markup.toml): update goldmark configuration in markup.toml

chore(params.toml): update description and bundled fields in params.toml

chore(sitemap.toml): update changefreq, filename, and priority in sitemap.toml
2023-11-03 09:37:53 +08:00
Sped0n
4c09b08172 Merge remote-tracking branch 'origin/main' into main
feat(params.toml): add 'bundled' parameter to control whether to use bundled js and css or build from scratch
2023-11-02 10:50:24 +08:00
Sped0n
1a9d5762c4 chore: update images for exampleSite 2023-11-01 23:00:24 +08:00
Sped0n
d01dca5f36 chore(Info.md): update menu configuration to include Info page in the main menu with weight 4 and identifier "Info"
chore(Info.md): update theme description to clarify that Bridget is a minimal Hugo theme designed for photographers/visual artists
chore(Info.md): add information about the inspiration for the theme and the modifications made to mimic the original design
chore(Info.md): update the Instagram link to point to the correct profile
chore(Info.md): update the Github link to point to the correct profile
chore(Info.md): update the site design credit to mention Tyler McRobert as the original designer
chore(Info.md): update the copyright information to mention Spedon as the current owner and mention that the site is powered by Hugo
2023-11-01 22:59:42 +08:00
Sped0n
9bbf3a7f7a chore(hugo.toml): remove unused disableKinds to improve build performance
chore(params.toml): add website title parameter for better customization
chore(baseof.html): update page title to use the website title parameter
chore(nav.html): update navigation link to use the website title parameter
2023-11-01 22:59:03 +08:00
Sped0n
eb3c91d017 feat(content): move menu configuration to markdown and add new content pages for Erwitt, Gruyaert, and Webb 2023-11-01 22:56:36 +08:00
Sped0n
3d9237758d chore: update example site 2023-10-30 15:51:52 +08:00
Spedon
4a58950a44 example site setup 2023-03-09 12:00:13 +08:00