Skip to content

Commit

Permalink
Add social meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Mar 17, 2021
1 parent 7560d5c commit f7eef6d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions froide/foirequest/templates/foirequest/alpha/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
<meta name="robots" content="noindex"/>
{% endif %}

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="{{ SITE_URL }}{% url 'foirequest-show' slug=object.slug %}">
<meta property="og:title" content="{{ object.title }}">
<meta property="og:description" content="{{ object.description }}">
{# <meta property="og:image" content=""> #}

<!-- Twitter -->
<meta property="twitter:card" content="summary">
<meta property="twitter:url" content="{{ SITE_URL }}{% url 'foirequest-show' slug=object.slug %}">
<meta property="twitter:title" content="{{ object.title }}">
<meta property="twitter:description" content="{{ object.description }}">
{# <meta property="twitter:image" content=""> #}

<link rel="self" type="text/html" href="{{ SITE_URL }}{% url 'foirequest-show' slug=object.slug %}"/>
{% if DEFAULT_LANGUAGE_CODE != CURRENT_LANGUAGE_CODE %}
{% language DEFAULT_LANGUAGE_CODE %}
Expand Down
14 changes: 14 additions & 0 deletions froide/foirequest/templates/foirequest/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@
<meta name="robots" content="noindex"/>
{% endif %}

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="{{ SITE_URL }}{% url 'foirequest-show' slug=object.slug %}">
<meta property="og:title" content="{{ object.title }}">
<meta property="og:description" content="{{ object.description }}">
{# <meta property="og:image" content=""> #}

<!-- Twitter -->
<meta property="twitter:card" content="summary">
<meta property="twitter:url" content="{{ SITE_URL }}{% url 'foirequest-show' slug=object.slug %}">
<meta property="twitter:title" content="{{ object.title }}">
<meta property="twitter:description" content="{{ object.description }}">
{# <meta property="twitter:image" content=""> #}

<link rel="self" type="text/html" href="{{ SITE_URL }}{% url 'foirequest-show' slug=object.slug %}"/>
{% if DEFAULT_LANGUAGE_CODE != CURRENT_LANGUAGE_CODE %}
{% language DEFAULT_LANGUAGE_CODE %}
Expand Down

0 comments on commit f7eef6d

Please sign in to comment.