We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ee114 commit 6d6dc61Copy full SHA for 6d6dc61
_plugins/social_images.rb
@@ -8,8 +8,7 @@ module SocialImages
8
def social_image(text, page_path)
9
# If text is not empty, return it
10
if text.nil? || text.empty?
11
- # If page_path contains "guides/", return the social image path
12
- if page_path.include?('guides/')
+ if File.exist?("./assets/images/social/#{File.basename(page_path, '.adoc')}.png")
13
return "/assets/images/social/#{File.basename(page_path, '.adoc')}.png"
14
else
15
return "/assets/images/quarkus_card.png"
0 commit comments