From a98c11f5f75c3e1f0b85e74521d088c7dd3a9958 Mon Sep 17 00:00:00 2001
From: "C. Lente" <7017340+clente@users.noreply.github.com>
Date: Sat, 4 Mar 2023 14:39:39 -0300
Subject: [PATCH] Add social links to config
---
exampleSite/config.toml | 8 ++++++--
layouts/partials/nav.html | 4 +++-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index cda1d21..d487ac0 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -61,8 +61,12 @@ enableRobotsTXT = true
# formatting, see https://gohugo.io/functions/format/
dateFormat = "2006-01-02"
- # Your email, added to the navbar so readers can reply to your posts
- email = "me@example.com"
+ # Social media. Delete any item you aren't using to make sure it won't show up
+ # in your website's metadata.
+ [social]
+ email = "me@example.com" # Added to the navbar so readers can reply to posts
+ twitter = "example" # Twitter handle (without '@')
+ facebook_admin = "0000000000" # Facebook Page Admin ID
# (EXPERIMENTAL) If your blog is multilingual but you haven't translated a
# page, this theme will create a disabled link. By setting `hideUntranslated`
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9a6b352..3f1a416 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,7 +1,9 @@
{{ range .Site.Menus.main.ByWeight }}
{{ .Name }}
{{ end }}
-Email
+{{ with .Site.Social.email }}
+Email
+{{ end }}
RSS