瀏覽代碼

Add variable scoping to partial

See https://gohugo.io/templates/partials/#variable-scoping
pull/348/head
Enguerran Colson 4 年之前
父節點
當前提交
1f1642c6c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/_default/baseof.html

+ 1
- 1
layouts/_default/baseof.html 查看文件

@@ -43,7 +43,7 @@
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ block "head" . }}{{ partial "head-additions.html" }}{{ end }}
{{ block "head" . }}{{ partial "head-additions.html" . }}{{ end }}
</head>

<body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">

Loading…
取消
儲存