mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 12:09:29 -07:00
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
This commit is contained in:
@@ -112,6 +112,8 @@ menu:
|
||||
identifier: Erwitt
|
||||
title: Erwitt
|
||||
unifiedAlt: '© Elliott Erwitt'
|
||||
_build:
|
||||
publishResources: false
|
||||
---
|
||||
```
|
||||
|
||||
@@ -129,6 +131,8 @@ unifiedAlt: '© Elliott Erwitt'
|
||||
|
||||
- `unifiedAlt` is **optional**, If you left it empty, the alt attribute of the image will default to its file name; if it is set, the alt attributes of all images will be unified to the value you have set;
|
||||
|
||||
- `publishResources` is **optional but recommended**, setting it to false will hide unprocessed images in the `public` directory. By default, Hugo’s value for this option is true, which can potentially result in source image leakage.
|
||||
|
||||
- If this is a **showcase** page, simply place the images in the same directory as index.md.
|
||||
|
||||
- If this is an **information** page, you can continue writing the information you want to display in index.md.
|
||||
|
||||
Reference in New Issue
Block a user