Files
@ 703df9c8e97f
Branch filter:
Location: website/www/conservancy/templates/opengraph_partial.html - annotation
703df9c8e97f
1.5 KiB
text/html
Blogs/news only include a single OG image/video.
For now, this gives us more assurance that other sites will choose the
preview we want.
You can control the selection by adding data-ogpreview to image, video, and
source elements. data-ogpreview=0 excludes the element from being included
in the preview. Positive numbers set the preview priority. The lowest
value found is chosen first.
For now, this gives us more assurance that other sites will choose the
preview we want.
You can control the selection by adding data-ogpreview to image, video, and
source elements. data-ogpreview=0 excludes the element from being included
in the preview. Positive numbers set the preview priority. The lowest
value found is chosen first.
3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 7c379a284ecd 7c379a284ecd 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 7c379a284ecd 7c379a284ecd 7c379a284ecd 7c379a284ecd 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e 3b2ed8397d4e | {% comment %}
Include this partial in a head section to include basic Open Graph metadata.
Pass a variable `NAME` to give a value for the `og:NAME` property.
These properties are only listed if you give a value for them:
* url: A URL string that includes at least an absolute path. This partial
will fill in a default scheme and host if needed.
* title: A string. Tags are stripped, then the rest is assumed HTML-safe.
* description: A string. Tags are stripped, then the rest is assumed
HTML-safe.
These properties are always included. You can override them but you
normally shouldn't need to:
* type: Default "website".
* locale: Default "en_US".
* site_name: Default "Software Freedom Conservancy"
* twitter_site: The name of the Twitter account that publishes this page.
Default "@conservancy"
{% endcomment %}
{# This partial needs work before other cards besides "summary" are supported. #}
<meta property="twitter:card" content="summary">
<meta property="twitter:site" content="{{ twitter_site|default:"@conservancy" }}">
<meta property="og:type" content="{{ type|default:"website" }}">
<meta property="og:locale" content="{{ locale|default:"en_US" }}">
<meta property="og:site_name" content="{{ site_name|default:"Software Freedom Conservancy" }}">
{% if url %}
{% load fill_url %}
<meta property="og:url" content="{{ url|fill_url:host_url }}">
{% endif %}
{% if title %}
<meta property="og:title" content="{{ title|striptags|safe }}">
{% endif %}
{% if description %}
<meta property="og:description" content="{{ description|striptags|safe }}">
{% endif %}
|