From b80bfa2353aba5582014652ecab86f8a6b686123 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 14 Dec 2019 22:34:21 -0500 Subject: [PATCH] fix some open graph tags --- config.toml | 1 + layouts/partials/head.html | 2 +- layouts/partials/open-graph.html | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index a3508f7f..fe11cdbb 100644 --- a/config.toml +++ b/config.toml @@ -33,6 +33,7 @@ disableAliases = true jobTitle = "Front-End Web Developer" email = "jake@jarv.is" twitter = "jakejarvis" + twitterID = "229769022" github = "jakejarvis" facebook = "jakejarvis" facebookID = "1329090853" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bce17239..2aaa111e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,7 +21,7 @@ -{{ if and (eq .Type "notes") (eq .Kind "page") }} +{{ if and .IsPage (eq .Type "notes") }} {{ with .OutputFormats.Get "amp" }} {{ end }} diff --git a/layouts/partials/open-graph.html b/layouts/partials/open-graph.html index f55ea715..e6e5874c 100644 --- a/layouts/partials/open-graph.html +++ b/layouts/partials/open-graph.html @@ -7,7 +7,7 @@ - + @@ -19,7 +19,7 @@ {{- end }} -{{- if .IsPage }} +{{- if and .IsPage (eq .Type "notes") }} {{- if not .PublishDate.IsZero }} @@ -35,11 +35,13 @@ {{ with .Site.Author.facebookid }}{{ end }} {{ with .Site.Params.facebookappid }}{{ end }} - + + {{- with .Site.Author.twitter }} {{- end }} +{{ with .Site.Author.twitterid }}{{ end }}