Skip to content

Commit

Permalink
Specify og:image for posts and individual pages (#1748)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sorentwo authored Feb 5, 2024
1 parent a1fd1b0 commit accd542
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ defaults:
values:
layout: post
permalink: /blog/:year/:month/:day/:title/
image: /images/social/elixir-og-card.jpg
1 change: 1 addition & 0 deletions cases.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
section: cases
layout: default
image: /images/social/elixir-og-card.jpg
---

<h1>Cases</h1>
Expand Down
1 change: 1 addition & 0 deletions crash-course.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Erlang/Elixir Syntax: A Crash Course"
section: home
layout: default
image: /images/social/elixir-og-card.jpg
---

# {{ page.title }}
Expand Down
1 change: 1 addition & 0 deletions development.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Development & Team"
section: development
layout: default
image: /images/social/elixir-og-card.jpg
---

# {{ page.title }}
Expand Down
1 change: 1 addition & 0 deletions docs.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Elixir Documentation
section: docs
layout: default
image: /images/social/elixir-og-card.jpg
---

# Documentation
Expand Down
Binary file added images/social/elixir-og-card.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
section: home
layout: default
image: /images/social/elixir-og-card.jpg
---

<div class="hfeed">
Expand Down
1 change: 1 addition & 0 deletions install.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Installing Elixir"
section: install
layout: default
image: /images/social/elixir-og-card.jpg
---
{% assign stable = site.data.elixir-versions[site.data.elixir-versions.stable] %}

Expand Down
1 change: 1 addition & 0 deletions learning.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Learning resources"
section: learning
layout: default
image: /images/social/elixir-og-card.jpg
---

# Learning
Expand Down
1 change: 1 addition & 0 deletions trademarks.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Trademarks policy"
section: trademarks
layout: default
image: /images/social/elixir-og-card.jpg
---

# {{ page.title }}
Expand Down

0 comments on commit accd542

Please sign in to comment.