diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index efdb85fd..0419f271 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -54,6 +54,11 @@ preserveTaxonomyNames = true latexDashes = true extensions = ["backslashLineBreak"] +[imaging] + resampleFilter = "lanczos" + quality = 90 + anchor = "smart" # Anchor for cropping. Options include Smart and Center. + # Taxonomies. [taxonomies] tag = "tags" diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index c88f28ec..f8bc02bf 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -6,6 +6,7 @@ {{ $images := ($.Page.Resources.ByType "image").Match (printf "%s/*" $album) }} {{ with $images }} {{ range $images }} + {{ $image := .Resize "x190" }} {{/* Check if the user set a caption for this image */}} {{ $filename := .Name }} {{ $caption := "" }} @@ -15,7 +16,7 @@ {{ end }} {{ end }} - + {{end}}