middleman-ogp
middleman-ogp copied to clipboard
Using `og:image` filenames from middleman's `:asset_hash` extension
Hey,
I'm using the middleman :asset_hash extension so assets will be renamed after build from myimage.jpg to something like myimage-f5d3f0c1.jpg.
How can I make middleman-ogp to substitute the og:image property with the correct one with the hash on build?
Thanks, Lars
I'd like to see if I can contribute this to middleman-ogp. Could you maybe point me in the right direction?
-ping @ngs :)
This could be possible by converting value to contain asset hash.
https://github.com/ngs/middleman-ogp/blob/master/lib/middleman-ogp/extension.rb#L165
But not yet sure how to retrieve asset hash from path.