#3 Multiple galleries

Open
opened 2 years ago by jhabdas · 0 comments
jhabdas commented 2 years ago

Refactor pwsp.html out of customized post layout and create a shortcode and component for use in custom layouts.

  • Provide support for headless bundles, e.g. {{ range (.Site.GetPage "/uploads").Resources }}
  • Add module setting allowing users to set a custom matcher to override "*gallery*" default.

For the shortcode something like this:

{{< gallery id="uploads/protonmail/*fs8.png" headless="true" >}}

Where globbing can be specified, and galleries are relative to the leaf bundle unless headless is specified in which case they can grab from a headless page bundle.

See also #19 and consider integrating with the Figure Shortcode to enhance image metadata in After Dark.

Refactor `pwsp.html` out of customized post layout and create a shortcode and component for use in custom layouts. - [ ] Provide support for [headless bundles](https://gohugo.io/content-management/page-bundles/#headless-bundle), e.g. `{{ range (.Site.GetPage "/uploads").Resources }}` - [ ] Add module setting allowing users to set a custom `matcher` to override `"*gallery*"` default. For the shortcode something like this: ```html {{< gallery id="uploads/protonmail/*fs8.png" headless="true" >}} ``` Where globbing can be specified, and galleries are relative to the leaf bundle unless `headless` is specified in which case they can grab from a headless page bundle. See also #19 and consider integrating with the `Figure` Shortcode to enhance image metadata in After Dark.
jhabdas added the
enhancement
label 2 years ago
jhabdas added this to the 0.2.0 milestone 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.