Skip to content

Commit 6d6dc61

Browse files
committed
fixup! Also generate social image for blog posts
1 parent 05ee114 commit 6d6dc61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: _plugins/social_images.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ module SocialImages
88
def social_image(text, page_path)
99
# If text is not empty, return it
1010
if text.nil? || text.empty?
11-
# If page_path contains "guides/", return the social image path
12-
if page_path.include?('guides/')
11+
if File.exist?("./assets/images/social/#{File.basename(page_path, '.adoc')}.png")
1312
return "/assets/images/social/#{File.basename(page_path, '.adoc')}.png"
1413
else
1514
return "/assets/images/quarkus_card.png"

0 commit comments

Comments
 (0)