Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicky <vicky@vickylai.com>2018-10-04 07:51:28 +0300
committerVicky <vicky@vickylai.com>2018-10-04 07:51:28 +0300
commit9a2db4d3dfca3f30fad627f3c8d2477ac141fe64 (patch)
tree0574771603a1a2345921dbc292030640649cec8a /README.md
parentae03b04efa4b16b66b88dd97c32d6616a762e3c3 (diff)
Add instruction for multiple galleries
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md21
1 files changed, 17 insertions, 4 deletions
diff --git a/README.md b/README.md
index 10e9d70..8d42280 100755
--- a/README.md
+++ b/README.md
@@ -88,16 +88,29 @@ $ hugo new posts/your-post-title.md
## Image gallery
-To create an image gallery, place all the files you want included in a folder within `/content/gallery/`. The exampleSite has this configured as `images/` but you can change the name of this folder in `config.toml` if you wish.
+To create an image gallery, place all the files you want included in a folder within `/content/gallery/`. The exampleSite has this configured as `content/gallery/images/` but you can change the name of the "images" folder in `config.toml` if you wish.
```
content/
└── gallery/
└── images/
- ├── file_1.jpg
- ├── file_2.jpg
- └── file_3.jpg
+ | ├── file_1.jpg
+ | ├── file_2.jpg
+ | └── file_3.jpg
+ └── _index.md
+```
+
+The gallery title is defined in the front matter of `_index.md`. You can also optionally define the page URL using `url`:
+
```
+---
+title: "Portraits"
+type: "gallery"
+url: "/portrait-gallery"
+---
+```
+
+In order to create more than one gallery, create multiple folders in `content/` with this file structure and `type: "gallery"` defined in the `_index.md` front matter.
In `config.toml`, you can set `smallPreviewImages` to `true` in order to use small sized thumbnails. Include those thumbnail files in your gallery image folder. In exampleSite, this looks like: