add twitter metadata too

This commit is contained in:
j 2021-10-30 17:02:56 +01:00
parent 450421e07f
commit 05d2a75d5d
2 changed files with 16 additions and 2 deletions

View file

@ -4,12 +4,19 @@
<meta name="description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/> <meta name="description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
<meta content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg" name="thumbnail"/> <meta content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg" name="thumbnail"/>
<meta content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg" name="image_src"/> <meta content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg" name="image_src"/>
<meta property="og:title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/> <meta property="og:title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/>
<meta property="og:type" content="movie"/> <meta property="og:type" content="movie"/>
<meta property="og:url" content="https://phantas.ma{{ film.get_absolute_url }}"/> <meta property="og:url" content="https://phantas.ma{{ film.get_absolute_url }}"/>
<meta property="og:image" content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg"/> <meta property="og:image" content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg"/>
<meta property="og:site_name" content="Phantas.ma"/> <meta property="og:site_name" content="Phantas.ma"/>
<meta property="og:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/> <meta property="og:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
<meta property="twitter:card" content="summary_large_image"/>
<meta property="twitter:title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/>
<meta property="twitter:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
<meta property="twitter:image" content="{{ stream_prefix }}{{ film.padma_id }}/loop.jpg"/>
{% endblock head %} {% endblock head %}
{% block body_class%}animated{% endblock %} {% block body_class%}animated{% endblock %}
{% block main %} {% block main %}

View file

@ -5,10 +5,17 @@
<meta property="og:title" content="Phantasmapolis"/> <meta property="og:title" content="Phantasmapolis"/>
<meta content="https://phantas.ma/static/jpg/phantasmopolis.jpg" name="thumbnail"/> <meta content="https://phantas.ma/static/jpg/phantasmopolis.jpg" name="thumbnail"/>
<meta content="https://phantas.ma/static/jpg/phantasmopolis.jpg" name="image_src"/> <meta content="https://phantas.ma/static/jpg/phantasmopolis.jpg" name="image_src"/>
<meta property="og:url" content="https://phantas.ma/polis"/> <meta property="og:url" content="https://phantas.ma/polis"/>
<meta property="og:image" content="https://phantas.ma/static/jpg/phantasmopolis.jpg"/> <meta property="og:type" content="website"/>
<meta property="og:site_name" content="Phantas.ma/polis" /> <meta property="og:title" content="Phantasmapolis" />
<meta property="og:description" content="Looking back to the future"/> <meta property="og:description" content="Looking back to the future"/>
<meta property="og:image" content="https://phantas.ma/static/jpg/phantasmopolis.jpg"/>
<meta property="twitter:card" content="summary_large_image"/>
<meta property="twitter:title" content="Phantasmapolis" />
<meta property="twitter:description" content="Looking back to the future"/>
<meta property="twitter:image" content="https://phantas.ma/static/jpg/phantasmopolis.jpg"/>
{% endblock head %} {% endblock head %}
{% block body_class%}animated animated-text body--home{% endblock %} {% block body_class%}animated animated-text body--home{% endblock %}
{% block main %} {% block main %}