1
0
Fork 0
mirror of https://github.com/dillonzq/LoveIt.git synced 2025-04-17 19:11:57 +02:00

fix: fix seo bug

This commit is contained in:
Dillon 2019-08-24 20:25:05 +08:00
parent 5cc4fdbe46
commit 280ec376f4
2 changed files with 4 additions and 1 deletions
layouts/partials

View file

@ -1,5 +1,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noodp" />
<meta name="Description" content="{{ .Params.description | default .Site.Params.description }}">
{{ with .Site.Params.google_verification -}}
<meta name="google-site-verification" content="{{ . }}" />
{{ end -}}

View file

@ -161,4 +161,6 @@
{{ $res := resources.Get "/js/blog.js" | resources.Minify }}
<script src="{{ $res.RelPermalink }}"></script>
{{ template "_internal/google_analytics_async.html" . }}
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}