refactor($layouts): remove xhtml syntax and shorten verification code

parent 3c8d87ac
......@@ -24,7 +24,7 @@
{{ partial "meta/http-referrer.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
{{ end }}
<link rel="canonical" href="{{ .Permalink }}">
{{ if (isset .Params "prev") }}
......
{{ if .Site.Params.seo.webmaster_verifications.google }}
<meta name="google-site-verification" content="{{ .Site.Params.seo.webmaster_verifications.google }}" />
{{ with .Site.Params.seo.webmaster_verifications.google }}
<meta name="google-site-verification" content="{{ . }}">
{{ end }}
{{ if .Site.Params.seo.webmaster_verifications.bing }}
<meta name="msvalidate.01" content="{{ .Site.Params.seo.webmaster_verifications.bing }}">
{{ with .Site.Params.seo.webmaster_verifications.bing }}
<meta name="msvalidate.01" content="{{ . }}">
{{ end }}
{{ if .Site.Params.seo.webmaster_verifications.alexa }}
<meta name="alexaVerifyID" content="{{ .Site.Params.seo.webmaster_verifications.alexa }}">
{{ with .Site.Params.seo.webmaster_verifications.alexa }}
<meta name="alexaVerifyID" content="{{ . }}">
{{ end }}
{{ if .Site.Params.seo.webmaster_verifications.yandex }}
<meta name="yandex-verification" content="{{ .Site.Params.seo.webmaster_verifications.yandex }}">
{{ with .Site.Params.seo.webmaster_verifications.yandex }}
<meta name="yandex-verification" content="{{ . }}">
{{ end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment