mirror of https://github.com/escalate/hugo-split-theme.git

Felix Boerner
23.46.2018 9b3f131a8de82125f6f577fb40e7df4443dcabcf
feat: rename author variable name
3 files modified
8 ■■■■ changed files
README.md 4 ●●●● patch | view | raw | blame | history
exampleSite/config.toml 2 ●●● patch | view | raw | blame | history
layouts/partials/head.html 2 ●●● patch | view | raw | blame | history
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"
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"
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" />