Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2019-12-20 08:28:54 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2019-12-20 08:28:54 +0300
commit628ee34b508b0e613f193524d0487ea00b882ec7 (patch)
tree9ec7a3d51c3f223d616566ef0f6c76c49017c4ac
parenta6e4837093dcf24ccafd2bc0e08563e83efcb46c (diff)
Add html meta 'google-site-verification'
-rw-r--r--README.md12
-rw-r--r--layouts/_default/baseof.html3
2 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7d64f88..0a272b3 100644
--- a/README.md
+++ b/README.md
@@ -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}