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

github.com/escalate/hugo-split-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Boerner <ich@felix-boerner.de>2018-05-23 20:46:36 +0300
committerFelix Boerner <ich@felix-boerner.de>2018-05-23 20:46:36 +0300
commit9b3f131a8de82125f6f577fb40e7df4443dcabcf (patch)
treeb1af5a3b0e6c5a97d4ed6a9fa86f8a6b0697e651
parent06199b97cbff122b072a54b72af2128d606ddc16 (diff)
feat: rename author variable name
-rw-r--r--README.md4
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/head.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 6720637..80f3cf6 100644
--- a/README.md
+++ b/README.md
@@ -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 = "&copy;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" />