mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-27 12:56:03 -04:00
deploy to Vercel
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
# Cache static assets (webfonts, emojis, etc.) for a long time (1 month)
|
||||
/vendor/*
|
||||
Cache-Control: max-age=2628000
|
||||
|
||||
# Recommended MIME type for PWA manifests:
|
||||
# https://github.com/w3c/manifest/issues/689
|
||||
/site.webmanifest
|
||||
Content-Type: application/manifest+json
|
||||
|
||||
# Set matching Onion-Location headers for each permalink
|
||||
{{- range $page := .Site.Pages }}
|
||||
{{- range .AlternativeOutputFormats }}
|
||||
{{ .RelPermalink }}
|
||||
Onion-Location: {{ $.Site.Params.baseOnionURL }}{{ .RelPermalink }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
@@ -1,26 +0,0 @@
|
||||
/index.php* / 301
|
||||
/feed /feed.xml 301
|
||||
/rss /feed.xml 301
|
||||
/index.xml /feed.xml 301
|
||||
|
||||
{{- with .Site.Params.social.webmentionIO }}
|
||||
/xmlrpc.php https://webmention.io/{{ . }}/xmlrpc 302
|
||||
{{ end -}}
|
||||
|
||||
/favicon.ico /img/favicon.ico 200
|
||||
/favicon-* /img/favicon-:splat 200
|
||||
/apple-touch-icon.png /img/apple-touch-icon.png 200
|
||||
/apple-touch-icon-precomposed.png /img/apple-touch-icon.png 200
|
||||
/safari-pinned-tab.svg /img/safari-pinned-tab.svg 200
|
||||
|
||||
# Hugo aliases: prefer HTTP 301 redirects over meta tags
|
||||
{{- range $page := .Site.Pages }}
|
||||
{{- range .Aliases }}
|
||||
{{ . }} {{ $page.RelPermalink }} 301
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
# Redirect old AMP URLs to the normal HTML page
|
||||
{{- range $page := .Site.Pages }}
|
||||
{{ print .RelPermalink "amp.html" }} {{ .RelPermalink }} 301!
|
||||
{{ end -}}
|
||||
@@ -1,4 +1,4 @@
|
||||
{{ if .Site.Params.social.webmentionIO }}
|
||||
<link rel="pingback" href="{{ "api/ping" | absURL }}">
|
||||
<link rel="webmention" href="{{ "api/mention" | absURL }}">
|
||||
{{ with .Site.Params.social.webmentionIO }}
|
||||
<link rel="webmention" href="https://webmention.io/{{ . }}/webmention">
|
||||
<link rel="pingback" href="https://webmention.io/{{ . }}/xmlrpc">
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user