add meta tags

This commit is contained in:
j 2021-10-30 16:38:11 +01:00
parent 407d4fb173
commit 3d2d9700cd
3 changed files with 29 additions and 0 deletions

View file

@ -1,4 +1,16 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
<meta name="title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/>
<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="image_src"/>
<meta property="og:title" content="{{ film.data.title }} {{ film.data.tile.zh }}"/>
<meta property="og:type" content="movie"/>
<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:site_name" content="Phantas.ma"/>
<meta property="og:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
{% endblock head %}
{% block body_class%}animated{% endblock %} {% block body_class%}animated{% endblock %}
{% block main %} {% block main %}
<style> <style>

View file

@ -1,4 +1,12 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
<meta name="title" content="Phantasmapolis"/>
<meta name="description" content="Looking back to the future"/>
<meta property="og:title" content="Phantasmapolis"/>
<meta property="og:url" content="https://phantas.ma/polis"/>
<meta property="og:site_name" content="Phantas.ma/polis" />
<meta property="og:description" content="Looking back to the future"/>
{% endblock head %}
{% block body_class%}animated animated-text body--home{% endblock %} {% block body_class%}animated animated-text body--home{% endblock %}
{% block main %} {% block main %}
<div class="index"> <div class="index">

View file

@ -1,4 +1,13 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
<meta name="title" content="{{ text.title | safe }}"/>
<meta name="description" content="{{ text.byline|striptags }}"/>
<meta property="og:title" content="{{ text.title }}"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="https://phantas.ma{{ text.get_absolute_url }}"/>
<meta property="og:site_name" content="Phantas.ma"/>
<meta property="og:description" content="{{ text.byline|striptags }}"/>
{% endblock head %}
{% block main %} {% block main %}
<div id="ascroll"></div> <div id="ascroll"></div>
{% endblock %} {% endblock %}