social media

This commit is contained in:
Gabriel 2022-09-18 16:21:14 -04:00
parent f0d5d200f9
commit f6bb19177e
2 changed files with 20 additions and 1 deletions

View file

@ -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}}" />

View file

@ -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>