diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index c0f39f6..e3ccfa3 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -16,7 +16,9 @@ <link>{{ .Permalink }}</link> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} - <guid>{{ .Permalink }}</guid>{{ if .Params.video}} + <guid>{{ .Permalink }}</guid>{{ if .Params.gif}} + <enclosure url="{{.Site.BaseURL}}{{.Params.gif}}" /> + {{end}}{{ if .Params.video}} <enclosure url="{{.Site.BaseURL}}{{.Params.video}}" /> {{end}}{{ if .Params.audio}} <enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" /> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c6ed4a..0dd3304 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,24 @@ <head> <meta charset="utf-8" /> <title>{{.Title}}</title> +<link rel="alternate" type="application/rss+xml" href="{{.Site.BaseURL}}/index.xml"> <link rel="stylesheet" href="{{.Site.BaseURL}}css/theme.css"> <link rel="stylesheet" href="{{.Site.BaseURL}}style.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> +<meta name="title" content="{{ .Title }}"> +<meta name="description" content="{{.Params.description}}"> +<meta name="og:site_name" content="{{.Site.Title}}"> +<meta property="og:title" content="{{ .Title }}"> +<meta property="og:description" content="{{.Params.description}}"> +<meta property="og:url" content="{{.Permalink}}"> +{{if .Params.video}}<meta property="og:type" content="video"> +<meta property="og:video" content="{{.Site.BaseURL}}{{.Params.video}}"> +<meta property="og:video:url" content="{{.Site.BaseURL}}{{.Params.video}}"> +<meta property="og:video:secure_url" content="{{.Site.BaseURL}}{{.Params.video}}"> +{{else}}{{if .Params.audio}}<meta property="og:audio" content="{{.Site.BaseURL}}{{.Params.audio}}"> +<meta property="og:type" content="audio"> +{{else}}<meta property="og:type" content="website">{{end}}{{end}}{{ if .Params.image }} +<meta property="og:image" content="{{.Site.BaseURL}}{{.Params.image}}"> +{{else}}<meta property="og:image" content="{{.Site.BaseURL}}gabriel.jpg"> +{{end}} </head> \ No newline at end of file