Add opengraph descriptions

This commit is contained in:
Eugen Rochko 2018-09-26 00:35:55 +02:00
parent ea7bf1c4f5
commit 059292967e
18 changed files with 27 additions and 7 deletions

View file

@ -4,12 +4,20 @@
<head>
{{ partial "head" }}
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
<meta property="og:type" content="article">
<meta property="og:url" content="{{ .Permalink }}">
{{ with .Description }}
<meta name="description" content="{{ . }}">
<meta property="og:description" content="{{ . }}">
<meta name="twitter:description" content="{{ . }}">
{{ end }}
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:site" content="@MastodonProject">
<link rel="canonical" href="{{ .Permalink }}">
</head>

View file

@ -1,5 +1,3 @@
{{ define "title"}} {{ .Title}} {{end}}
{{ define "main" }}
<ul id="posts">

View file

@ -1,5 +1,3 @@
{{ define "title"}} {{ .Title}} {{end}}
{{ define "main" }}
<h1>{{ .Title }}</h1>