deploy to Vercel

This commit is contained in:
2021-06-04 10:19:34 -04:00
parent 034babd9af
commit 82c42f8322
23 changed files with 236 additions and 3823 deletions
-16
View File
@@ -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 -}}
-26
View File
@@ -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 -}}
+3 -3
View File
@@ -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 }}