Add opengraph descriptions
This commit is contained in:
parent
ea7bf1c4f5
commit
059292967e
18 changed files with 27 additions and 7 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{{ define "title"}} {{ .Title}} {{end}}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<ul id="posts">
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{{ define "title"}} {{ .Title}} {{end}}
|
||||
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
|
|
|
@ -7,5 +7,7 @@
|
|||
<p>Welcome to the Mastodon documentation!</p>
|
||||
|
||||
<p>Mastodon is a <strong>free, open-source social network server</strong> based on <strong>open web protocols</strong> like ActivityPub and OStatus. The social focus of the project is a viable decentralized alternative to commercial social media silos that returns the control of the content distribution channels to the people. The technical focus of the project is a good user interface, a clean REST API for 3rd party apps and robust anti-abuse tools.</p>
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/IPSbNdBmWKE" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue