diff options
author | it-gro <grossnik@tuvok> | 2018-06-26 23:02:02 +0300 |
---|---|---|
committer | it-gro <grossnik@tuvok> | 2018-06-26 23:02:02 +0300 |
commit | 9c7e88789c3e5834d0a99bb66b90f0966182a3a4 (patch) | |
tree | 8b741f26d133d83608dfc7176edab748e202e3fe /exampleSite | |
parent | 5a33ba0881f3eb30b92e4bdc55314cae016ea350 (diff) |
Fix resource paths, avoid nil errors
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/.config.w3css-basic-exampleSite.toml | 41 | ||||
-rw-r--r-- | exampleSite/config.toml | 42 |
2 files changed, 44 insertions, 39 deletions
diff --git a/exampleSite/.config.w3css-basic-exampleSite.toml b/exampleSite/.config.w3css-basic-exampleSite.toml index 218af07..04c4f39 100644 --- a/exampleSite/.config.w3css-basic-exampleSite.toml +++ b/exampleSite/.config.w3css-basic-exampleSite.toml @@ -851,33 +851,36 @@ ultricies eget, tempor sit amet, ante # showFileExtension = true # humanizeCaption = false - [params.resources] - # used in layouts/shortcodes/res-figure.html - defaultResPagePath = "." - defaultMatch = "**/*" - defaultImgCmd = "Resize" - defaultImgCmdOpt = "300x" - defaultImgCaption = "%%T" - - + # used in layouts/partials/resource.image.html + # used in layouts/shortcodes/res-figure.html + # used in layouts/shortcodes/res-gallery.html + defaultResPagePath = "resources/images" + +[params.resFigure] + # used in layouts/shortcodes/res-figure.html + defaultResPagePath = "." + defaultMatch = "**/*" + defaultImgCmd = "Resize" + defaultImgCmdOpt = "300x" + defaultImgCaption = "%%T" + [params.resGallery] - # used in layouts/shortcodes/res-gallery.html - defaultResPagePath = "resources/images" - defaultMatch = "**/*" - defaulImgCmd = "Resize" - defaulImgCmdOpt = "800x" - defaulThumbCmd = "Fit" - defaultThumbCmdOpt = "120x120" - defaultCaptionLong = "%%F" - defaultCaptionShort = "%%N" + # used in layouts/shortcodes/res-gallery.html + defaultResPagePath = "resources/images" + defaultMatch = "**/*" + defaulImgCmd = "Resize" + defaulImgCmdOpt = "800x" + defaulThumbCmd = "Fit" + defaultThumbCmdOpt = "120x120" + defaultCaptionLong = "%%F" + defaultCaptionShort = "%%N" #defaulThumbCmd = "Resize" #defaultThumbCmdOpt = "100x100" #defaulThumbCmd = "Fill" #defaultThumbCmdOpt = "120x120" - [params.options] # used in layouts/partials/main.headline.nav-right.html jsHistoryNav = true diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 40d5c95..d62df1f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -846,34 +846,36 @@ ultricies eget, tempor sit amet, ante # showFileExtension = true # humanizeCaption = false - [params.resources] - # used in layouts/shortcodes/res-figure.html - defaultResPagePath = "." - defaultMatch = "**/*" - defaultImgCmd = "Resize" - defaultImgCmdOpt = "300x" - defaultImgCaption = "%%T" - - + # used in layouts/partials/resource.image.html + # used in layouts/shortcodes/res-figure.html + # used in layouts/shortcodes/res-gallery.html + defaultResPagePath = "resources/images" + +[params.resFigure] + # used in layouts/shortcodes/res-figure.html + defaultResPagePath = "." + defaultMatch = "**/*" + defaultImgCmd = "Resize" + defaultImgCmdOpt = "300x" + defaultImgCaption = "%%T" + [params.resGallery] - # used in layouts/shortcodes/res-gallery.html - defaultResPagePath = "resources/images" - defaultMatch = "**/*" - defaulImgCmd = "Resize" - defaulImgCmdOpt = "800x" - defaulThumbCmd = "Fit" - defaultThumbCmdOpt = "120x120" - defaultCaptionLong = "%%F" - defaultCaptionShort = "%%N" + # used in layouts/shortcodes/res-gallery.html + defaultResPagePath = "resources/images" + defaultMatch = "**/*" + defaulImgCmd = "Resize" + defaulImgCmdOpt = "800x" + defaulThumbCmd = "Fit" + defaultThumbCmdOpt = "120x120" + defaultCaptionLong = "%%F" + defaultCaptionShort = "%%N" #defaulThumbCmd = "Resize" #defaultThumbCmdOpt = "100x100" #defaulThumbCmd = "Fill" #defaultThumbCmdOpt = "120x120" - - [params.options] # used in layouts/partials/main.headline.nav-right.html jsHistoryNav = true |