Skip to content

Set og:image meta for seo by default on all pages #1747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ plugins:
defaults:
- scope:
path: ""
type: pages
values:
layout: default
image: /images/social/elixir-og-card.jpg
- scope:
path: "posts"
type: posts
values:
layout: post
permalink: /blog/:year/:month/:day/:title/
image: /images/social/elixir-og-card.jpg
2 changes: 1 addition & 1 deletion _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div id="sidebar-primary" class="sidebar">
{% include search.html %}
<div class="rss-button">
<a href="https://elixir-lang.org/atom.xml" target="_blank"><img src="/images/social/RSSButton.png" alt="RSS button" /></a>
<a href="https://elixir-lang.org/atom.xml" target="_blank"><img src="/images/social/rss-feed-icon.svg" alt="RSS button" width="32" /></a>
</div>
{% include categories-list.html %}
{% include important-links.html %}
Expand Down
1 change: 0 additions & 1 deletion cases.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
section: cases
layout: default
---

<h1>Cases</h1>
Expand Down
Binary file removed images/social/RSSButton.png
Binary file not shown.
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 images/social/rss-feed-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
section: home
layout: default
---

<div class="hfeed">
Expand Down