njpma/app/templates/text.html

39 lines
1.4 KiB
HTML
Raw Normal View History

2021-10-10 15:06:43 +00:00
{% extends "base.html" %}
2021-10-30 15:38:11 +00:00
{% 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"/>
2021-11-24 11:50:26 +00:00
<meta property="og:url" content="https://njp.ma{{ text.get_absolute_url }}"/>
<meta property="og:site_name" content="njp.ma"/>
2021-10-30 15:38:11 +00:00
<meta property="og:description" content="{{ text.byline|striptags }}"/>
2021-10-31 11:17:38 +00:00
<meta name="title" content="{{ text.title }}"/>
<meta name="description" content="{{ text.byline|striptags }}"/>
2021-11-24 11:50:26 +00:00
<meta property="og:site_name" content="njp.ma"/>
2021-10-31 11:17:38 +00:00
<meta property="og:description" content="{% for director in text.data.director %}{{ director|safe }}{% endfor %}"/>
<meta property="twitter:card" content="summary_large_image"/>
<meta property="twitter:title" content="{{ text.title | safe }}"/>
<meta property="twitter:description" content="{{ text.byline|striptags }}"/>
2021-10-30 15:38:11 +00:00
{% endblock head %}
2021-10-10 15:06:43 +00:00
{% block main %}
<div id="ascroll"></div>
{% endblock %}
{% block end %}
<script>
var config = {{ text.json | safe }};
2021-11-21 09:09:26 +00:00
var pandoraURL = "{{ pandora_url }}";
2021-11-24 11:45:15 +00:00
var streamPrefix = "{{ stream_prefix }}";
2021-10-10 15:06:43 +00:00
</script>
2021-11-24 08:20:50 +00:00
<script src="/static/js/api.js?2021112223"></script>
2021-11-21 10:41:03 +00:00
{% if text.data.view == 'player' %}
2021-11-22 22:07:37 +00:00
<script src="/static/js/player.js?2021112223"></script>
2021-11-21 10:41:03 +00:00
{% else %}
2021-11-22 22:07:37 +00:00
<script src="/static/js/ascroll.js?2021112223"></script>
2021-11-21 10:41:03 +00:00
{% endif %}
2021-10-10 15:06:43 +00:00
{% endblock %}