Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: macros/meta-tag.tmpl

Issue 29680647: Issue 5329 - Provide a template for social media meta data in website-defaults (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Rebased Created Jan. 31, 2018, 11:39 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: macros/meta-tag.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/macros/meta-tag.tmpl
@@ -0,0 +1,5 @@
+{% macro meta_tag(property, content, defaultContent=None) -%}
+ {% if content or defaultContent %}
+ <meta property='{{ property }}' content='{{ content or defaultContent }}'>
+ {% endif %}
+{%- endmacro %}
« includes/meta/social.tmpl ('K') | « includes/meta/social.tmpl ('k') | pages/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld