From a904f6b6ad86a0155d86f729c352448212cad05a Mon Sep 17 00:00:00 2001 From: Bill Ward Date: Mon, 5 Sep 2016 09:36:32 -0500 Subject: [PATCH] adding option for twitter summary content --- README.md | 4 ++++ layouts/partials/header.html | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 6e840e9..ed3e825 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,10 @@ copyright = "© 2015 Copyright Text" [params] description = "Your Site Description" # optional twitter = "Your Twitter Name" # optional + twitterSummary = true|false # optional + twitterTitle = "Title for twitter summary card" # optional + twitterDescription = "Desc for tiwtter summary card" # optional + twitterImage = "URL to image for twitter summary card" # option gitlab = "Your Gitlab Name" # optional github = "Your Github Name" # optional facebook = "Your facebook Name" # optional diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d66f868..a503d81 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,6 +3,13 @@ + {{if .Site.Params.twitterSummary}} + + + + + + {{end}} {{ .Title }}