Browse Source

replace deprecated .Hugo by hugo function

max.mehl 2 weeks ago
parent
commit
e35c9f76cd
No account linked to committer's email address
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      themes/hugo-sustain/layouts/partials/head.html

+ 1
- 2
themes/hugo-sustain/layouts/partials/head.html View File

@@ -15,7 +15,6 @@
15 15
         {{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Site.Title -}} {{ print " | " }} {{- .Title -}} {{- end -}}
16 16
     {{- end -}}
17 17
 	</title>
18
-    {{ .Hugo.Generator }}
19 18
     <link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap-3.3.7.min.css" />
20 19
     <link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
21 20
     {{- if .Params.highlight -}}
@@ -24,7 +23,7 @@
24 23
     <link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fontawesome/css/all.min.css" />
25 24
     <link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fonts.css" />
26 25
     {{ range .Site.Params.custom_css }}
27
-    <link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}?v={{ md5 $.Hugo.BuildDate }}" />
26
+    <link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}?v={{ md5 hugo.BuildDate }}" />
28 27
     {{ end }}
29 28
     {{ `<!--[if lt IE 9]>
30 29
 			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>

Loading…
Cancel
Save