Changeset - 7c379a284ecd
[Not reviewed]
0 1 0
Brett Smith (brett) - 6 years ago 2017-11-07 17:21:35
brett@sfconservancy.org
templates: Add Twitter-specific metadata to the Open Graph partial.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/opengraph_partial.html
Show inline comments
...
 
@@ -14,15 +14,21 @@ These properties are only listed if you give a value for them:
 
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 %}
0 comments (0 inline, 0 general)