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

github.com/funkydan2/alpha-church.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Saunders <daniel.saunders@gmail.com>2020-11-02 00:44:06 +0300
committerDaniel Saunders <daniel.saunders@gmail.com>2020-11-02 00:44:06 +0300
commitd048ad14d1366cf795f96074d70d77930b1644c5 (patch)
treef2e4a28be7421c4ec55c741248e02f0c2c78bf44
parent11f154563a931c7d6a28281aafb60707ea5e6f9e (diff)
Closes #31
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/header.html11
2 files changed, 13 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0d177bf..0830ad3 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -86,6 +86,7 @@ unsafe = true
title = "Alpha Church"
subtitle = "Another Church Theme"
author = "Daniel Saunders"
+ keywords = ["theme", "hugo", "podcast"]
languageCode = "en" # For accessibility this needs to be set. You can find all language codes at https://www.w3schools.com/tags/ref_language_codes.asp
bible_popups = "faithlife" #faithlife, blb
@@ -133,7 +134,7 @@ unsafe = true
#If you use netlify, you'll need to set the confirm_page value (or else users will see a generic netlify response)
#If you use formspree, you'll need to set your formspree email address.
#
- #If you use php, you need to host this site on a Server capable of running php.
+ #If you use php, you need to host this site on a Server capable of running php.
# Please edit the /static/contact_mail.php file from the exampleSite.
service = "netlify"
confirm_page = "/contact_thanks"
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 497d902..9ac8819 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -6,6 +6,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{ with .Site.Params.subtitle }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
+ <meta name="keywords" content="
+ {{- if .IsHome -}}
+ {{- if .Site.Params.keywords -}}
+ {{- range $i, $e := .Site.Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end -}}
+ {{ end -}}
+ {{ end -}}
+ {{ if .IsPage }}
+ {{- if .Params.tags -}}
+ {{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
+ {{- end -}}
+ {{ end -}}" />
{{- with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
{{- end -}}