mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
15.12.2017 fa51177f055b855cb0015272a7b9611e3710a6f4
add site params to env check in head
1 files modified
4 ■■■■ changed files
layouts/_default/baseof.html 4 ●●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -11,7 +11,7 @@
    <meta name="viewport" content="width=device-width,minimum-scale=1">
     {{ .Hugo.Generator }}
      {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
      {{ if eq (getenv "HUGO_ENV") "production" }}
      {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production")  }}
        <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
      {{ else }}
        <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
@@ -25,7 +25,7 @@
      {{- template "_internal/schema.html" . -}}
      {{- template "_internal/twitter_cards.html" . -}}
      {{ if eq (getenv "HUGO_ENV") "production" }}
      {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production")  }}
        {{ template "_internal/google_analytics_async.html" . }}
      {{ end }}
  </head>