mirror of https://github.com/lxndrblz/anatole.git

Gerben Geijteman
12.14.2020 b059770ac01dc106ad513e426d3ab2388183343d
Add option to add Google Site Verification meta tag
3 files modified
14 ■■■■■ changed files
README.md 7 ●●●●● patch | view | raw | blame | history
exampleSite/config.toml 2 ●●●●● patch | view | raw | blame | history
layouts/partials/head.html 5 ●●●●● patch | view | raw | blame | history
README.md
@@ -153,6 +153,13 @@
googleAnalytics = "UA-123-45"
```
### Google Site Verification
To use Google Site Verification, add the following line to the `[params]`:
```toml
googleSiteVerify = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
```
Replace the hash with the one Google provided you.
### Beautiful math functions
```toml
## Math settings
exampleSite/config.toml
@@ -24,6 +24,8 @@
customJs = []
mainSections = ["post"]
images = ["images/site-feature-image.png"]
# Google Site Verification
#googleSiteVerify = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
## Math settings
[params.math]
layouts/partials/head.html
@@ -41,6 +41,11 @@
        {{- end -}}
      {{- end -}}
    {{- end -}}
    {{- if isset .Params "googleSiteVerify" }}
    <!-- Google Site Verification -->
    <meta name="google-site-verification" content="{{ .Param "googleSiteVerify" }}">
    {{- end -}}
    
    {{- if ne $js "" -}}
    {{- $secureJS := $js |  resources.Minify | resources.Fingerprint -}}