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: Addressed comments #3 Created Jan. 30, 2018, 8:18 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
« no previous file with comments | « includes/meta/social.tmpl ('k') | pages/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 %}
« no previous file with comments | « includes/meta/social.tmpl ('k') | pages/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld