Check for Netlify deploy URLs in base tag

This commit is contained in:
Trys 2018-03-09 19:11:21 +00:00 committed by Shawn Erquhart
parent 30d5c4942d
commit da8b91a62e
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<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>
<link rel="stylesheet" href="css/main.css"/>
</head>