Check for Netlify deploy URLs in base tag
This commit is contained in:
parent
30d5c4942d
commit
da8b91a62e
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||||
<base href="{{ $.Site.BaseURL }}">
|
<base href="{{ if getenv "CONTEXT" }}{{ cond (eq "production" (getenv "CONTEXT")) (getenv "URL") (getenv "DEPLOY_PRIME_URL") }}{{ else }}{{ $.Site.BaseURL }}{{ end }}">
|
||||||
<title>{{ $.Site.Title }}</title>
|
<title>{{ $.Site.Title }}</title>
|
||||||
<link rel="stylesheet" href="css/main.css"/>
|
<link rel="stylesheet" href="css/main.css"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
Reference in New Issue