1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:55:30 -04:00

move to Netlify with native builds (#12)

This commit is contained in:
2019-11-09 16:51:48 -05:00
committed by GitHub
parent 891beef4bd
commit a17d6e8996
11 changed files with 149 additions and 71 deletions

7
layouts/index.headers Normal file
View File

@@ -0,0 +1,7 @@
# Smart security headers
/*
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer
X-Content-Type-Options: nosniff

8
layouts/index.redirects Normal file
View File

@@ -0,0 +1,8 @@
# Prefer Netlify redirects over Hugo aliases
# https://www.netlify.com/docs/redirects/
{{ range $p := .Site.Pages -}}
{{ range .Aliases }}
{{- . | printf "%-35s" }} {{ $p.RelPermalink }}
{{ end -}}
{{- end -}}