Skip to content

Commit accd542

Browse files
authored
Specify og:image for posts and individual pages (#1748)
This adds a larger, wide format version of the elixir log as the og:image and twitter:image seo meta tags for all pages. Each layout and non-post page must set the image separately to be included in the rendered html.
1 parent a1fd1b0 commit accd542

10 files changed

+9
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ defaults:
2626
values:
2727
layout: post
2828
permalink: /blog/:year/:month/:day/:title/
29+
image: /images/social/elixir-og-card.jpg

cases.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
section: cases
33
layout: default
4+
image: /images/social/elixir-og-card.jpg
45
---
56

67
<h1>Cases</h1>

crash-course.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Erlang/Elixir Syntax: A Crash Course"
33
section: home
44
layout: default
5+
image: /images/social/elixir-og-card.jpg
56
---
67

78
# {{ page.title }}

development.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Development & Team"
33
section: development
44
layout: default
5+
image: /images/social/elixir-og-card.jpg
56
---
67

78
# {{ page.title }}

docs.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Elixir Documentation
33
section: docs
44
layout: default
5+
image: /images/social/elixir-og-card.jpg
56
---
67

78
# Documentation

images/social/elixir-og-card.jpg

20.5 KB
Loading

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
section: home
33
layout: default
4+
image: /images/social/elixir-og-card.jpg
45
---
56

67
<div class="hfeed">

install.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Installing Elixir"
33
section: install
44
layout: default
5+
image: /images/social/elixir-og-card.jpg
56
---
67
{% assign stable = site.data.elixir-versions[site.data.elixir-versions.stable] %}
78

learning.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Learning resources"
33
section: learning
44
layout: default
5+
image: /images/social/elixir-og-card.jpg
56
---
67

78
# Learning

trademarks.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: "Trademarks policy"
33
section: trademarks
44
layout: default
5+
image: /images/social/elixir-og-card.jpg
56
---
67

78
# {{ page.title }}

0 commit comments

Comments
 (0)