Sped0n 2553c7e1fc feat(plugin): add script.html partial template to handle rendering of script tags with various options
The `script.html` partial template has been added to handle the rendering of script tags with various options. This template supports the following features:

- If the `Content` variable is provided, it will be rendered as the content of the script tag.
- If the `Source` variable starts with "<script", it will be rendered as safe HTML.
- If the `Source` variable is provided and is a local resource, it will be processed as a template and minified if specified. If the `Fingerprint` variable is provided, the resource will also be fingerprinted and the integrity attribute will be set accordingly.
- If the `Link` variable is provided, it will be used as the source of the script tag.
- The `Crossorigin` variable can be used to add the crossorigin attribute to the script tag.
- The `Async` variable can be used to add the async attribute to the script tag.
- The `Defer` variable can be used to add the defer attribute to the script tag.
- The `Attr` variable can be used to add additional attributes to the script tag.

This new partial template provides flexibility in rendering script tags with different options based on the provided variables.
2023-10-30 15:58:00 +08:00
2023-03-17 17:43:08 +08:00
2023-03-09 08:50:16 +08:00
2023-10-30 15:51:52 +08:00
2023-03-09 09:06:20 +08:00
2023-03-09 08:50:16 +08:00
2023-10-29 12:52:44 +08:00
2023-03-09 08:50:16 +08:00
2023-10-29 12:39:56 +08:00
Description
Bridget is a minimal Hugo theme for photographers/visual artists, powered by SolidJS.
MIT 53 MiB
Languages
TypeScript 63.5%
HTML 18.5%
SCSS 12.5%
JavaScript 3%
Shell 1.5%
Other 1%