Skip to content

Commit

Permalink
feat: rewritten Figure shortcode supporting multi-resolutions
Browse files Browse the repository at this point in the history
New shortcode supports
- enable re-usable *optimized* image assets from new primary media library location at `assets/images/`
- new behavior: load image from page dir falling back to media library at `assets/images/` and then to remote URI.
- multi-res support. leading to increased perf.
- custom ID for cross-refs
- efficient, vanilla (non-jQuery), MIT licensed image zooming
- FancyBox now only loaded for Gallery shortcode
- themeable SVG support
- native lazy loading

Experimental, may change.

BREAKING CHANGE:
Move any figure images (i.e. not the `sharing.*` image) from `static/media/` to `assets/images/`

See HugoBlox#2164
  • Loading branch information
gcushen authored and JungPhilipp committed Feb 17, 2021
1 parent 79c5f2c commit 799588e
Show file tree
Hide file tree
Showing 8 changed files with 700 additions and 58 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"main": "index.js",
"dependencies": {
"bootstrap": "^4.4.1",
"instant.page": "^5.1.0"
"instant.page": "^5.1.0",
"medium-zoom": "^1.0.6"
},
"devDependencies": {
"eslint": "^7.17.0",
Expand Down
Loading

0 comments on commit 799588e

Please sign in to comment.