Commit d7711611 authored by Ruben ten Hove's avatar Ruben ten Hove Committed by Federico Falconieri
Browse files

fix: disable default minification and add EXTRA_ARGS

parent 7586ec37
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -8,12 +8,15 @@ pages:
  # before_script:
  #   - git clone https://github.com/matcornic/hugo-theme-learn.git themes/hugo-theme-learn
  variables:
    MINIFY: "false"  # Further minify all files
    MINIFY: "false"
    EXTRA_ARGS: ""
  script:
    - hugo --minify
    - |
      if [ ${MINIFY} = "true" ]; then
        hugo --minify ${EXTRA_ARGS}
        /minify.sh .
      else
        hugo ${EXTRA_ARGS}
      fi
    - gzip -kr public
  artifacts: