From 0042330117ce994a76f73a672165a943d38b4a3a Mon Sep 17 00:00:00 2001 From: starsoftanalysis Date: Sun, 14 Apr 2024 14:05:23 +0100 Subject: [PATCH] changed .site.IsServer to hugo.IsServer --- config.yaml | 45 ++--------------------------- layouts/partials/figset_loader.html | 2 +- 2 files changed, 4 insertions(+), 43 deletions(-) diff --git a/config.yaml b/config.yaml index 7f76ec3..e2e50c6 100644 --- a/config.yaml +++ b/config.yaml @@ -1,45 +1,6 @@ # config.yaml for figset module module: - hugoVersion: - # Need at least 64 for ? - min = "0.64.0" - -# ?? TODO can we set default imaging things here? -imaging: - # Default resample filter used for resizing. Default is Box, - # a simple and fast averaging filter appropriate for downscaling. - # See https://github.com/disintegration/imaging - # box | Lanczos | ... - resampleFilter: "Lanczos" - format: "jpg" - # Default JPEG quality setting. Default is 75. - quality: 90 - # Anchor used when cropping pictures. - # Default is "smart" which does Smart Cropping, using https://github.com/muesli/smartcrop - # Smart Cropping is content aware and tries to find the best crop for each image. - # Valid values are Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight - #anchor: "smart" - # Default background color. - # Hugo will preserve transparency for target formats that support it, - # but will fall back to this color for JPEG. - # Expects a standard HEX color string with 3 or 6 digits. - #bgColor: "#ffffff" - exif: - # Regexp matching the fields you want to Exclude from the (massive) set of Exif info - # available. As we cache this info to disk, this is for performance and - # disk space reasons more than anything. - # If you want it all, put ".*" in this config setting. - # Note that if neither this or ExcludeFields is set, Hugo will return a small - # default set. - includeFields: "" - # Regexp matching the Exif fields you want to exclude. This may be easier to use - # than IncludeFields above, depending on what you want. - excludeFields: ".*" - # Hugo extracts the "photo taken" date/time into .Date by default. - # Set this to true to turn it off. - disableDate: true - # Hugo extracts the "photo taken where" (GPS latitude and longitude) into - # .Long and .Lat. Set this to true to turn it off. - disableLatLong: true - + hugoVersion: + # Need at least 64 for ? + min: "0.64.0" diff --git a/layouts/partials/figset_loader.html b/layouts/partials/figset_loader.html index 9b28495..4d459a4 100644 --- a/layouts/partials/figset_loader.html +++ b/layouts/partials/figset_loader.html @@ -39,7 +39,7 @@ {{- /* The stylesheet is just plain CSS, but we'll use toCSS to compress it */ -}} {{- $cssoptions := (dict "enableSourceMap" true "outputStyle" "compressed") -}} - {{- if .Site.IsServer -}} + {{- if hugo.IsServer -}} {{- $cssoptions := (dict "enableSourceMap" true) -}} {{- end -}}