mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-16 18:55:30 -04:00
fix some open graph tags
This commit is contained in:
@@ -33,6 +33,7 @@ disableAliases = true
|
|||||||
jobTitle = "Front-End Web Developer"
|
jobTitle = "Front-End Web Developer"
|
||||||
email = "jake@jarv.is"
|
email = "jake@jarv.is"
|
||||||
twitter = "jakejarvis"
|
twitter = "jakejarvis"
|
||||||
|
twitterID = "229769022"
|
||||||
github = "jakejarvis"
|
github = "jakejarvis"
|
||||||
facebook = "jakejarvis"
|
facebook = "jakejarvis"
|
||||||
facebookID = "1329090853"
|
facebookID = "1329090853"
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
<link rel="alternate" type="application/rss+xml" href="{{ "feed.xml" | absURL }}" title="{{ .Site.Title }} (RSS)">
|
<link rel="alternate" type="application/rss+xml" href="{{ "feed.xml" | absURL }}" title="{{ .Site.Title }} (RSS)">
|
||||||
<link rel="author" href="{{ "humans.txt" | absURL }}">
|
<link rel="author" href="{{ "humans.txt" | absURL }}">
|
||||||
{{ if and (eq .Type "notes") (eq .Kind "page") }}
|
{{ if and .IsPage (eq .Type "notes") }}
|
||||||
{{ with .OutputFormats.Get "amp" }}
|
{{ with .OutputFormats.Get "amp" }}
|
||||||
<link rel="amphtml" href="{{ .Permalink }}">
|
<link rel="amphtml" href="{{ .Permalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<meta property="og:title" content="{{ .Title }}">
|
<meta property="og:title" content="{{ .Title }}">
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||||
<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}">
|
<meta property="og:type" content="{{ if and .IsPage (eq .Type "notes") }}article{{ else }}website{{ end }}">
|
||||||
<meta property="og:locale" content="en_US">
|
<meta property="og:locale" content="en_US">
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<meta property="og:image:alt" content="{{ $.Title }}">
|
<meta property="og:image:alt" content="{{ $.Title }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .IsPage }}
|
{{- if and .IsPage (eq .Type "notes") }}
|
||||||
{{- if not .PublishDate.IsZero }}
|
{{- if not .PublishDate.IsZero }}
|
||||||
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">
|
<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">
|
||||||
<meta property="article:modified_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">
|
<meta property="article:modified_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTMLAttr }}">
|
||||||
@@ -35,11 +35,13 @@
|
|||||||
|
|
||||||
{{ with .Site.Author.facebookid }}<meta property="fb:admins" content="{{ . }}">{{ end }}
|
{{ with .Site.Author.facebookid }}<meta property="fb:admins" content="{{ . }}">{{ end }}
|
||||||
{{ with .Site.Params.facebookappid }}<meta property="fb:app_id" content="{{ . }}">{{ end }}
|
{{ with .Site.Params.facebookappid }}<meta property="fb:app_id" content="{{ . }}">{{ end }}
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
|
<meta name="twitter:card" content="{{ if .IsPage }}summary_large_image{{ else }}summary{{ end }}">
|
||||||
<meta name="twitter:domain" content="{{ .Site.Params.domain }}">
|
<meta name="twitter:domain" content="{{ .Site.Params.domain }}">
|
||||||
{{- with .Site.Author.twitter }}
|
{{- with .Site.Author.twitter }}
|
||||||
<meta name="twitter:site" content="{{ printf "%s%s" "@" . }}">
|
<meta name="twitter:site" content="{{ printf "%s%s" "@" . }}">
|
||||||
<meta name="twitter:creator" content="{{ printf "%s%s" "@" . }}">
|
<meta name="twitter:creator" content="{{ printf "%s%s" "@" . }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{ with .Site.Author.twitterid }}<meta name="twitter:creator_id" content="{{ . }}">{{ end }}
|
||||||
<meta name="twitter:dnt" content="on">
|
<meta name="twitter:dnt" content="on">
|
||||||
<meta name="twitter:widgets:csp" content="on">
|
<meta name="twitter:widgets:csp" content="on">
|
||||||
|
Reference in New Issue
Block a user