Last active
July 26, 2018 19:04
-
-
Save rruhlen/ad7821f63f97b93a59ed58f21dbd8170 to your computer and use it in GitHub Desktop.
detect article and assign meta tag in header.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if article.body contains 'id="unique-value-1' %} | |
<meta property="og:image" content="jpg"/> | |
{% elsif article.body contains 'id="unique-value-2' %} | |
<meta property="og:image" content="jpg"/> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment