Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix: fix seo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Aug 24, 2019
1 parent 5cc4fdb commit 280ec37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 280ec37

Please sign in to comment.