From 31937b2e9f2ba345244693b48b63eb7fef671c93 Mon Sep 17 00:00:00 2001 From: Nathan Biller Date: Mon, 7 Oct 2019 19:42:08 -0400 Subject: Added Open Graph Internal Template as an option for easy social sharing. --- exampleSite/config.yaml | 4 ++++ layouts/partials/meta.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 4447d30..07c1832 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -10,6 +10,10 @@ disableKinds: params: + # Open graph allows easy social sharing. If you don't want it you can set it to false or just delete the variable + openGraph: true + # Used as meta data; describe your site to make Google Bots happy + description: navbarlogo: # Logo (from static/images/logos/___) image: logos/fresh.svg diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index b894f4d..517d815 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -1,4 +1,8 @@ {{ template "_internal/google_analytics_async.html" . }} +{{ if eq .Site.Params.openGraph true }} +{{ template "_internal/opengraph.html" . }} +{{ end }} + \ No newline at end of file -- cgit v1.2.3