{"repo":"mfg92/hugo-shortcode-gallery","free":true,"listed":false,"github":"https://github.com/mfg92/hugo-shortcode-gallery","clone":"git clone https://github.com/mfg92/hugo-shortcode-gallery.git","description":"A theme component with a gallery shortcode for the static site generator hugo.","language":"JavaScript","stars":425,"topics":["hugo","hugo-theme-component","gallery"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"hugo-shortcode-gallery This is a theme component for Hugo. This component contains a shortcode to include a gallery in your .md files. The gallery is rendered using autogenerated thumbnails arranged in a grid. With a click on the images a lightbox is opened and all images can be viewed full screen. Demo You can see this shortcode-gallery in action on my website. Installation Method A - Install as hugo module First make sure that your project itself is a Hugo module. Then add these two lines to your hugo.toml (or config.toml) configuration file: On the first start of Hugo it will download the required files. To update to the latest version of the module run: Method B - Install via git Clone this git repository into your themes folder. Next edit your projects config.toml and add this theme component to your themes: To read about Hugo's theme components and how to use them have a look at https://gohugo.io/hugo-modules/theme-components/. To update to the latest version run inside themes/hugo-shortcode-gallery : Tip: If your project itself is version controlled using git, you may want to have hugo-shortcode-gallery as a git submodule. Usage Example Here is an usage example: This shortcode will generate a gallery containing all images of the folder images . The folder must be located next to the .md file where this gallery is used in. This uses page bundles so the directory layout should look like this: The parameter sortOrder decides whether the images are sorted ascending ( asc )","default_branch":null,"files":null,"tree":[],"storefront":"/r/mfg92","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mfg92/hugo-shortcode-gallery/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}