Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
blog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mastodon
blog
Commits
b84bec2f
Commit
b84bec2f
authored
Jun 24, 2018
by
Eugen Rochko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OpenGraph thumbnails
parent
e3bfe848
Pipeline
#49
passed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
single.html
layouts/_default/single.html
+8
-0
index.html
layouts/index.html
+1
-0
No files found.
layouts/_default/single.html
View file @
b84bec2f
...
@@ -12,7 +12,15 @@
...
@@ -12,7 +12,15 @@
<meta
name=
"twitter:card"
content=
"summary_large_image"
/>
<meta
name=
"twitter:card"
content=
"summary_large_image"
/>
{{ if isset .Params "hero" }}
{{ if isset .Params "hero" }}
<meta
name=
"og:image"
content=
"{{ .Params.hero }}"
/>
<meta
name=
"twitter:image"
content=
"{{ .Params.hero }}"
/>
<meta
name=
"twitter:image"
content=
"{{ .Params.hero }}"
/>
{{ else }}
{{ $hero := .Page.Resources.GetMatch "hero" }}
{{ if $hero }}
<meta
name=
"og:image"
content=
"{{ $hero.Permalink }}"
/>
<meta
name=
"twitter:image"
content=
"{{ $hero.Permalink }}"
/>
{{ end }}
{{ end }}
{{ end }}
<meta
name=
"twitter:site"
content=
"@MastodonProject"
/>
<meta
name=
"twitter:site"
content=
"@MastodonProject"
/>
...
...
layouts/index.html
View file @
b84bec2f
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<title>
Official Mastodon Blog
</title>
<title>
Official Mastodon Blog
</title>
<meta
property=
"og:title"
content=
"Mastodon (Blog)"
/>
<meta
property=
"og:title"
content=
"Mastodon (Blog)"
/>
<meta
property=
"og:type"
content=
"blog"
/>
<meta
property=
"og:description"
content=
"Official blog of Mastodon, the decentralized social network of the future. Keep up with new developments!"
/>
<meta
property=
"og:description"
content=
"Official blog of Mastodon, the decentralized social network of the future. Keep up with new developments!"
/>
<meta
name=
"twitter:card"
content=
"summary_large_image"
/>
<meta
name=
"twitter:card"
content=
"summary_large_image"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment