Skip to content
  • Ethan Madison's avatar
    Replace quotation notation for params · 21a0d232
    Ethan Madison authored
    Hugo v0.18 lowercases all params internally, so accessing parameters by
    quotation notation (i.e., "exampleParam") is sometimes broken. As such,
    it will no longer be used.
    
    This notation was commonly used like '{{ if isset "exampleParam" }}',
    which can actually be replaced by '{{ if exampleParam }}' or {{ with
    exampleParam }}'. The latter form is preferred since 'with' can reduce
    redundancy.
    
    This commit replaces all instances of "quotation notation" with a "dot
    notation" friendly equivalence: 'with' where applicable and 'if'
    otherwise.
    
    Uses parts from key-amb/hugo-theme-bootie-docs #19:
    https://github.com/key-amb/hugo-theme-bootie-docs/pull/19
    
    .
    
    Signed-off-by: default avatarEthan Madison <ethan@ethanmad.com>
    21a0d232