mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-11 11:25:13 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c18147034f
|
||
|
|
916a95f692
|
||
|
|
e0f0ae7c7f
|
@@ -7,10 +7,67 @@ ignore-hidden-files = false
|
|||||||
|
|
||||||
[advanced]
|
[advanced]
|
||||||
|
|
||||||
|
# Legacy Hugo URLs (/posts, /writings, /tags, ...) -> current routes. First match wins,
|
||||||
|
# so the trailing-slash variants Google crawled come before the bare ones.
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/posts/page/{*}/"
|
||||||
|
destination = "/writing"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/posts/page/{*}"
|
||||||
|
destination = "/writing"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/{posts,writings,tags,archive}/"
|
||||||
|
destination = "/writing"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/{posts,writings}/{*}/"
|
||||||
|
destination = "/writing/$2"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/{posts,writings}/{*}"
|
||||||
|
destination = "/writing/$2"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/{posts,writings,tags,archive}"
|
||||||
|
destination = "/writing"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/tags/{*}/"
|
||||||
|
destination = "/writing"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/tags/{*}"
|
||||||
|
destination = "/writing"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/about/"
|
||||||
|
destination = "/"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/about"
|
||||||
|
destination = "/"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
|
[[advanced.redirects]]
|
||||||
|
source = "/index.xml"
|
||||||
|
destination = "/rss.xml"
|
||||||
|
kind = 301
|
||||||
|
|
||||||
[[advanced.headers]]
|
[[advanced.headers]]
|
||||||
source = "**"
|
source = "**"
|
||||||
[advanced.headers.headers]
|
[advanced.headers.headers]
|
||||||
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https://utteranc.es https://analytics.andwati.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' https://analytics.andwati.com; frame-src https://www.youtube-nocookie.com https://utteranc.es; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests"
|
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https://utteranc.es https://analytics.andwati.com https://www.googletagmanager.com https://static.cloudflareinsights.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://www.google-analytics.com https://www.googletagmanager.com; font-src 'self'; connect-src 'self' https://cloudflareinsights.com https://analytics.andwati.com https://www.google-analytics.com https://*.google-analytics.com https://*.analytics.google.com https://www.googletagmanager.com; frame-src https://www.youtube-nocookie.com https://utteranc.es; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests"
|
||||||
X-Frame-Options = "DENY"
|
X-Frame-Options = "DENY"
|
||||||
X-Content-Type-Options = "nosniff"
|
X-Content-Type-Options = "nosniff"
|
||||||
Referrer-Policy = "strict-origin-when-cross-origin"
|
Referrer-Policy = "strict-origin-when-cross-origin"
|
||||||
|
|||||||
Reference in New Issue
Block a user