From acee06f55c5f335ad38a5ffbe645fecd269a7267 Mon Sep 17 00:00:00 2001 From: sirfredrick Date: Sun, 12 Dec 2021 11:22:56 -0700 Subject: [PATCH 1/3] update exampleSite content fixes issue with exampleSite missing Instagram credentials changes taken from the commit h25c5b2f54c5162007c1afc467bf33015f250ff0f from this repo https://github.com/gohugoio/hugoBasicExample --- exampleSite/content/post/rich-content.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/exampleSite/content/post/rich-content.md b/exampleSite/content/post/rich-content.md index 5ff41d7..92b4b03 100644 --- a/exampleSite/content/post/rich-content.md +++ b/exampleSite/content/post/rich-content.md @@ -9,18 +9,10 @@ tags = [ ] +++ -Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. --- -## Instagram Simple Shortcode - -{{< instagram_simple BGvuInzyFAe hidecaption >}} - -
- ---- - ## YouTube Privacy Enhanced Shortcode {{< youtube ZJthWmvUzzc >}} From 673937ca9cc9c990300a51ddb0a17cd65a9be467 Mon Sep 17 00:00:00 2001 From: sirfredrick Date: Sun, 12 Dec 2021 11:32:02 -0700 Subject: [PATCH 2/3] add footer links to email, RSS, and socials --- layouts/partials/footer.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 02221f0..a6d3bb6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -12,3 +12,18 @@

Back to top

+ +

+{{ if isset .Site.Params "email" }} +{{ .Site.Params.emailText }} +{{ end }} +{{ $url := "" }} +{{ with .OutputFormats.Get "rss" -}} + {{ if not (eq .Permalink "") }} + {{ $.Site.Params.rssText }} + {{ end }} +{{ end -}} +{{ range .Site.Params.socials }} + {{ .text }} +{{ end }} +

From deed6ba2e69f7d92c9f4d967ed9dbac2de0d1b8c Mon Sep 17 00:00:00 2001 From: sirfredrick Date: Sun, 12 Dec 2021 11:36:25 -0700 Subject: [PATCH 3/3] add footer link params to exampleSite config shows the necessary structure for setting up footer links --- exampleSite/config.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4c50eb9..53c106c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -14,3 +14,17 @@ enableRobotsTXT = true name = "Posts" url = "/posts/" weight = 2 + +[params] + author = "John Smith" + email = "john@example.org" + emailText = "Email" + rssText = "RSS feed" + + [[params.socials]] + url = "http://example.com" + text = "Social Media" + [[params.socials]] + url = "http://example.com" + text = "Video Series" +