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:
7
layouts/index.headers
Normal file
7
layouts/index.headers
Normal 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
8
layouts/index.redirects
Normal 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 -}}
|
Reference in New Issue
Block a user