diff --git a/exampleSite/content/post/getting-started/gallery/theme-1950s.png b/exampleSite/content/post/getting-started/gallery/theme-1950s.png new file mode 100644 index 00000000..a81ab8d2 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-1950s.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-apogee.png b/exampleSite/content/post/getting-started/gallery/theme-apogee.png new file mode 100644 index 00000000..635754c1 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-apogee.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-coffee-playfair.png b/exampleSite/content/post/getting-started/gallery/theme-coffee-playfair.png new file mode 100644 index 00000000..938dd3a0 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-coffee-playfair.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-cupcake.png b/exampleSite/content/post/getting-started/gallery/theme-cupcake.png new file mode 100644 index 00000000..deb94be5 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-cupcake.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-dark.png b/exampleSite/content/post/getting-started/gallery/theme-dark.png new file mode 100644 index 00000000..a04ce143 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-dark.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-default.png b/exampleSite/content/post/getting-started/gallery/theme-default.png new file mode 100644 index 00000000..71792b12 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-default.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-forest.png b/exampleSite/content/post/getting-started/gallery/theme-forest.png new file mode 100644 index 00000000..df2d6ccc Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-forest.png differ diff --git a/exampleSite/content/post/getting-started/gallery/theme-ocean.png b/exampleSite/content/post/getting-started/gallery/theme-ocean.png new file mode 100644 index 00000000..6f4a0da5 Binary files /dev/null and b/exampleSite/content/post/getting-started/gallery/theme-ocean.png differ diff --git a/exampleSite/content/post/getting-started/index.md b/exampleSite/content/post/getting-started/index.md index 58f184ae..5b527ef8 100644 --- a/exampleSite/content/post/getting-started/index.md +++ b/exampleSite/content/post/getting-started/index.md @@ -30,44 +30,46 @@ summary = "Create a beautifully simple website or blog in under 10 minutes." # Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight focal_point = "" +# Set captions for image gallery. + [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-default.png" +album = "gallery" +image = "theme-default.png" caption = "Default" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-ocean.png" +album = "gallery" +image = "theme-ocean.png" caption = "Ocean" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-forest.png" +album = "gallery" +image = "theme-forest.png" caption = "Forest" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-dark.png" +album = "gallery" +image = "theme-dark.png" caption = "Dark" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-apogee.png" +album = "gallery" +image = "theme-apogee.png" caption = "Apogee" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-1950s.png" +album = "gallery" +image = "theme-1950s.png" caption = "1950s" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-coffee-playfair.png" +album = "gallery" +image = "theme-coffee-playfair.png" caption = "Coffee theme with Playfair font" [[gallery_item]] -album = "1" -image = "https://raw.githubusercontent.com/gcushen/hugo-academic/master/images/theme-cupcake.png" +album = "gallery" +image = "theme-cupcake.png" caption = "Cupcake" +++ diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index f3a84c0f..c88f28ec 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -1,7 +1,28 @@ -{{ $.Scratch.Set "album" "1" }} -{{ with .Get "album" }}{{ $.Scratch.Set "album" . }}{{ end }} +{{ $album := "gallery" }} +{{ with .Get "album" }}{{ $album = . }}{{ end }} \ No newline at end of file