Skip to content

Commit

Permalink
changed .site.IsServer to hugo.IsServer
Browse files Browse the repository at this point in the history
  • Loading branch information
StarsoftAnalysis committed Apr 14, 2024
1 parent 6262924 commit 0042330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 43 deletions.
45 changes: 3 additions & 42 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion layouts/partials/figset_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down

0 comments on commit 0042330

Please sign in to comment.