Spedon c2956b7d4b fix: fix preloading in desktop (#152)
* 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

* refactor: add `getElPrev()` and `getElNext()` functions to `hires`

- Add `getElPrev()` and `getElNext()` to the `hires` function call

* refactor: refactor image retrieval for improved accuracy

- Add logging of `c0` variable for debugging
- Change `els.push(imgs[increment(s.index + i, s.length)])` to `els.push(imgs[increment(c0 + i, s.length)])` to retrieve images correctly
- Change `return imgs[increment(s.index, s.length)]` to `return imgs[decrement(c[c.length - 1].i, s.length)]` to retrieve previous element correctly
- Change `return imgs[decrement(s.index, s.length)]` to `return imgs[increment(c[c.length - 1].i, s.length)]` to retrieve next element correctly
2023-11-13 22:19:17 +08:00
2023-11-10 21:00:09 +08:00
2023-03-09 08:50:16 +08:00
2023-11-13 21:02:21 +08:00
2023-11-06 17:30:44 +08:00
2023-11-13 21:20:58 +08:00
2023-03-09 09:06:20 +08:00
2023-11-06 17:30:44 +08:00
2023-11-06 17:53:05 +08:00

Bridget

GitHub Workflow Status (with event) GitHub deployments

Bridget is a minimal Hugo theme designed for photographers / visual artists.

Its based on the https://github.com/tylermcrobert/bridget-pictures-www.

thumbnail

Demo Site

To see this theme in action, here is a live demo site which is rendered with Bridget theme.

Getting Started

Head to this documentation for a complete guidance to get started with the Bridget theme.

Features

  • Blazingly fast: 99/100 on mobile and 100/100 on desktop in Google PageSpeed Insights

  • JS dynamic loading (powered by ES6 syntax)

  • JS code splitting by rollup.js

  • Image Preloading/Lazy loading

  • Dynamic resolution based on view mode

  • Multiple analytics services supported

  • Search engine verification supported (Google, Bind, Yandex and Baidu)

Multilingual and i18n

Bridget supports the following languages:

Credits

Description
Bridget is a minimal Hugo theme for photographers/visual artists, powered by SolidJS.
Readme MIT 53 MiB
Languages
TypeScript 63.5%
HTML 18.5%
SCSS 12.5%
JavaScript 3%
Shell 1.5%
Other 1%