diff options
author | Felix Boerner <ich@felix-boerner.de> | 2018-05-23 20:46:36 +0300 |
---|---|---|
committer | Felix Boerner <ich@felix-boerner.de> | 2018-05-23 20:46:36 +0300 |
commit | 9b3f131a8de82125f6f577fb40e7df4443dcabcf (patch) | |
tree | b1af5a3b0e6c5a97d4ed6a9fa86f8a6b0697e651 | |
parent | 06199b97cbff122b072a54b72af2128d606ddc16 (diff) |
feat: rename author variable name
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -122,10 +122,10 @@ This is what generates one link list: ### Add metadata -`name` and `description` metadata helps search engines with how to display your site in search results. `shareImage` and `twitterHandle` help improves how your content is displayed when your site is shared across social media sites. +`author` and `description` metadata helps search engines with how to display your site in search results. `shareImage` and `twitterHandle` help improves how your content is displayed when your site is shared across social media sites. ```toml -name = "Jenny Jones" +author = "Jenny Jones" description = "Split is a centrally-divided layout for a professional online presence with a big image or video left with alongside content." shareImage = "images/social.jpg" twitterHandle = "onepagelove" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6fac0f1..1b254ef 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,7 +14,7 @@ copyright = "©2018 Your Name" [params] # Metadata for search engines and social sharing - name = "Jenny Jones" + author = "Jenny Jones" description = "Split is a centrally-divided layout for a professional online presence with a big image or video left with alongside content." shareImage = "images/social.jpg" twitterHandle = "onepagelove" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 578f18a..d35f20f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,7 +3,7 @@ <!-- SEO --> <title>{{ .Title }}</title> -{{ with .Site.Params.name }}<meta name="author" content="{{ . }}" />{{ end }} +{{ with .Site.Params.author }}<meta name="author" content="{{ . }}" />{{ end }} {{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }} <meta name="robots" content="index, follow" /> <meta name="referrer" content="always" /> |