diff --git a/wowchemy/config.yaml b/wowchemy/config.yaml index 8ad0c57a..0600f9b6 100644 --- a/wowchemy/config.yaml +++ b/wowchemy/config.yaml @@ -1,11 +1,23 @@ mediaTypes: application/manifest+json: - suffixes: - - webmanifest + suffixes: [webmanifest] + text/netlify: + delimiter: '' + suffixes: [''] outputFormats: WebAppManifest: mediaType: application/manifest+json rel: manifest + headers: + baseName: _headers + isPlainText: true + mediatype: text/netlify + notAlternative: true + redirects: + baseName: _redirects + isPlainText: true + mediatype: text/netlify + notAlternative: true module: hugoVersion: min: '0.78.2' @@ -25,7 +37,9 @@ module: target: i18n - source: archetypes target: archetypes -taxonomies: [] params: theme: minimal font: native + date_format: 'Jan 2, 2006' + time_format: '3:04 PM' + address_format: en-us diff --git a/wowchemy/layouts/index.headers b/wowchemy/layouts/index.headers new file mode 100644 index 00000000..0f82b96c --- /dev/null +++ b/wowchemy/layouts/index.headers @@ -0,0 +1,15 @@ +{{- $csp_policy := site.Params.security.csp.policy | default "" -}} +{{- $csp_report_only := site.Params.security.csp.report_only | default false -}} +# Netlify headers +# Automatically generated +# Documentation: http://bit.ly/netlify-deployment +/* + X-Frame-Options: DENY + X-XSS-Protection: 1; mode=block + X-Content-Type-Options: nosniff + Strict-Transport-Security: max-age=31536000; includeSubDomains + {{with $csp_policy}}Content-Security-Policy{{if $csp_report_only}}-Report-Only{{end}}: {{.}}{{end}} +/index.webmanifest + Content-Type: application/manifest+json +/index.xml + Content-Type: application/rss+xml diff --git a/wowchemy/layouts/index.redirects b/wowchemy/layouts/index.redirects new file mode 100644 index 00000000..64601bfa --- /dev/null +++ b/wowchemy/layouts/index.redirects @@ -0,0 +1,9 @@ +# Netlify redirects +# Automatically generated +# Documentation: http://bit.ly/netlify-deployment +{{- /* Note: code purposely un-indented to preserve required spacing in output. */ -}} +{{- range $page := where site.AllPages ".Aliases" "!=" nil -}} +{{- range $page.Aliases }} +{{ .|relLangURL }} {{ $page.RelPermalink -}} +{{- end }} +{{- end -}}