Created
January 9, 2014 22:21
-
-
Save dpawluk/8343172 to your computer and use it in GitHub Desktop.
Here we say, if the {{content}} placeholder contains "font-family:'Lucida Sans Unicode','Lucida Grande','Tahoma',Verdana,sans-serif;", then go ahead with these replacements, otherwise, just display the default content. Because the above font stack is used for the paragraph elements of comments, this will apply to only those elements.
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 content contains "font-family:'Lucida Sans Unicode','Lucida Grande','Tahoma',Verdana,sans-serif;" %} | |
{{content | replace: "font-family:'Lucida Sans Unicode','Lucida Grande','Tahoma',Verdana,sans-serif;", "font-family: Georgia, Times, "Times New Roman", serif;" | replace: "font-size:14px;", "font-size:12px;" | replace: "color:#2b2e2f;", "color:#6b6d6e;"}} | |
{% else %} | |
{{content}} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment