Hugo Deploy | Hugo


A quick way to make a new post Pass this code to your config.yml # deployment: targets: - name: Name the Tagrets URL: 's3://' # cloudFrontDistributionID: <CF-Distribution-ID> matchers: - pattern: ^.+\.(js|css|svg|ttf|woff|woff2|eot|png|jpg|gif|svg|ttf)$ cacheControl: 'max-age=630720000, no-transform, public' gzip: true - pattern: ^.+\.(html|xml|json)$ gzip: true Create new post… hugo new posts/ and run local server tape hugo server to deploy on AWS s3 after the previous configuration type. hugo && hugo deploy ...

March 10, 2022 · Marcin