Skip to content

Commit

Permalink
fixup! Also generate social image for blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Nov 1, 2023
1 parent 05ee114 commit 8b7f5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/social_images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def social_image(text, page_path)
# If text is not empty, return it
if text.nil? || text.empty?
# If page_path contains "guides/", return the social image path
if page_path.include?('guides/')
if page_path.include?('guides/') || page_path.include?('blog/')
return "/assets/images/social/#{File.basename(page_path, '.adoc')}.png"
else
return "/assets/images/quarkus_card.png"
Expand Down

0 comments on commit 8b7f5bb

Please sign in to comment.