Merge pull request #27 from philip-khor/patch-1

Use global hugo function
This commit is contained in:
南小北 2019-05-08 02:58:53 +08:00 committed by GitHub
commit f25656ea2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
<link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png"> <link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
<link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico"> <link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico">
<!-- Generator --> <!-- Generator -->
{{ .Hugo.Generator }} {{ hugo.Generator }}
<!-- RSS --> <!-- RSS -->
<link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}"> <link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}">
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}