1
0
Fork 0

Use .Hugo.Generator instead of adding meta tag manually

This commit is contained in:
Graham Russell 2018-09-28 17:34:08 +08:00
parent 3730b32107
commit d31ad9c68f

View file

@ -30,7 +30,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 -->
<meta name="generator" content="Hugo {{ .Hugo.Version }}"> {{ .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") }}