diff options
author | Linlin Yan <yanlinlin82@gmail.com> | 2019-12-20 08:28:54 +0300 |
---|---|---|
committer | Linlin Yan <yanlinlin82@gmail.com> | 2019-12-20 08:28:54 +0300 |
commit | 628ee34b508b0e613f193524d0487ea00b882ec7 (patch) | |
tree | 9ec7a3d51c3f223d616566ef0f6c76c49017c4ac | |
parent | a6e4837093dcf24ccafd2bc0e08563e83efcb46c (diff) |
Add html meta 'google-site-verification'
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 3 |
2 files changed, 15 insertions, 0 deletions
@@ -9,3 +9,15 @@ Online demo of this theme: [simple-style-demo](https://yanlinlin82.github.io/sim This project is licensed under [MIT, copyright (c) 2019 Linlin Yan](https://github.com/yanlinlin82/simple-style/blob/master/LICENSE), expect for the following code: * `layout/partial/github-cornor.html` is copied from <http://tholman.com/github-corners/>, which is licensed under [MIT, copyright (c) 2016 Tim Holman](https://github.com/tholman/github-corners/blob/master/license.md). + +## Supported Parameters + +In `config.toml` + +``` +[params] +subtitle = "Sub title of the site" +favicon = "/<path-to-site-icon>/logo.ico" +githubUrl = "https://github.com/<your-name>/<site-proj-name>/" +googleSiteVerification = "<google-site-verification-code>" +``` diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 337ba56..1a3b8e3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,6 +3,9 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> +{{ with .Site.Params.googleSiteVerification -}} +<meta name="google-site-verification" content="{{ . }}"> +{{ end -}} <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> <style type="text/css"> body{margin:16px auto;max-width:677px;padding:0 10px;color:#333;line-height:1.6} |