diff options
-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} |