From 9b3f131a8de82125f6f577fb40e7df4443dcabcf Mon Sep 17 00:00:00 2001
From: Felix Boerner <ich@felix-boerner.de>
Date: Wed, 23 May 2018 17:46:36 +0000
Subject: [PATCH] feat: rename author variable name
---
exampleSite/config.toml | 2 +-
layouts/partials/head.html | 2 +-
README.md | 4 ++--
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 @@
### 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 @@
[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" />
--
Gitblit v1.10.0