From 60073840cb5e7bbd56c0b0044321739dec177c4e Mon Sep 17 00:00:00 2001 From: Roman Tsypuk Date: Sat, 25 Mar 2023 19:34:31 +0200 Subject: [PATCH] feat: if seo image is specified - it can be different from image on page, otherwise page image is used for seo:image tags in HEAD section --- lib/jekyll-seo-tag/image_drop.rb | 2 +- lib/jekyll-seo-tag/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll-seo-tag/image_drop.rb b/lib/jekyll-seo-tag/image_drop.rb index 01de9b88..c884d153 100644 --- a/lib/jekyll-seo-tag/image_drop.rb +++ b/lib/jekyll-seo-tag/image_drop.rb @@ -55,7 +55,7 @@ def image_hash def raw_path @raw_path ||= begin - image_hash["path"] || image_hash["facebook"] || image_hash["twitter"] + image_hash["twitter"] || image_hash["facebook"] || image_hash["path"] end end diff --git a/lib/jekyll-seo-tag/version.rb b/lib/jekyll-seo-tag/version.rb index 3a42ca61..b34bcd50 100644 --- a/lib/jekyll-seo-tag/version.rb +++ b/lib/jekyll-seo-tag/version.rb @@ -5,6 +5,6 @@ module Liquid; class Tag; end; end module Jekyll class SeoTag < Liquid::Tag - VERSION = "2.8.0" + VERSION = "2.8.1" end end