Skip to content

Instantly share code, notes, and snippets.

@dpawluk
Created January 9, 2014 22:21
Show Gist options
  • Save dpawluk/8343172 to your computer and use it in GitHub Desktop.
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.
{% 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