diff --git a/www/conservancy/templates/opengraph_urllist_partial.html b/www/conservancy/templates/opengraph_urllist_partial.html new file mode 100644 index 0000000000000000000000000000000000000000..32c8b1bacbe98478cc7381c7dd34e83e419f5434 --- /dev/null +++ b/www/conservancy/templates/opengraph_urllist_partial.html @@ -0,0 +1,26 @@ +{% comment %} + +Include this partial in a head section to include a series of URLs for a +given property, like og:image or og:video. + +You must pass the following variables: + +* property: A string with the name of the property, like 'image' or 'video'. +* urls: A sequence of URL strings. Each should include at least an absolute + path. This partial will fill in a scheme and host if needed. + +You may also pass: + +* fallback: A URL string, following the same rules as in `urls`. This URL + will be used if `urls` is empty. + +{% endcomment %} + +{% load fill_url %} +{% for url in urls %} + +{% empty %} +{% if fallback %} + +{% endif %} +{% endfor %}