Skip to content

Commit

Permalink
SEO image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
spikex committed Sep 16, 2023
1 parent ca02e3f commit 9ea21de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bridgetown.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ template_engine: erb
# pagination:
# enabled: true

defaults:
- scope:
path: ""
values:
image: /images/logo.png

collections:
talks:
sort_by: speaker.title
Expand Down
1 change: 1 addition & 0 deletions plugins/builders/data_resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def add_talks_resources
add_resource name, "#{Bridgetown::Utils.slugify(talk.title)}.md" do
___ talk
layout :talk
image "/images/speakers/#{talk.speaker.photo || 'placeholder.png'}"
end
end
site.collections[name].sort_resources!
Expand Down

0 comments on commit 9ea21de

Please sign in to comment.