remove phantas.ma links

This commit is contained in:
j 2021-11-24 12:50:26 +01:00
parent e7d973c75f
commit 11dc9f3f57
6 changed files with 17 additions and 32 deletions

View file

@ -11,7 +11,7 @@ def index(request):
form = forms.ContactForm(request.POST)
if form.is_valid():
message = 'From: %s\n\n%s' % (form.cleaned_data['email'], form.cleaned_data['message'])
subject = 'Phantas.ma/polis contact message'
subject = 'njp.ma contact message'
from_ = settings.CONTACT_FROM_EMAIL
to = [settings.CONTACT_TO_EMAIL]
msg = EmailMessage(subject, message, from_, to, reply_to=[form.cleaned_data['email']])

View file

@ -31,7 +31,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => {
video.classList.add('player')
video.classList.add('fullscreen')
//setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm')
video.src = `${film.prefix}stream/${film.id}.mp4`
video.src = `${film.prefix}/stream/${film.id}.mp4`
video.controls = true
video.controlsList = 'nodownload'
document.querySelector('main').appendChild(video)

View file

@ -67,12 +67,12 @@
</style>
<title>phantas.ma</title>
<title>njp.ma</title>
</head>
<body>
<div id="box">
<div id="shadowBox">
<h1 class="rainbow rainbow_text_animated">Phantas.ma</h1>
<h1 class="rainbow rainbow_text_animated">njp.ma</h1>
<h2></h2>
</div>
</div>

View file

@ -5,8 +5,8 @@
<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:site_name" content="Phantas.ma"/>
<meta property="og:url" content="https://njp.ma{{ film.get_absolute_url }}"/>
<meta property="og:site_name" content="njp.ma"/>
<meta property="og:description" content="{% for director in film.data.director %}{{ director|safe }}{% endfor %}"/>
<meta property="twitter:card" content="summary_large_image"/>

View file

@ -1,21 +1,17 @@
{% 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 content="https://phantas.ma/static/jpg/phantasmopolis.jpg" name="thumbnail"/>
<meta content="https://phantas.ma/static/jpg/phantasmopolis.jpg" name="image_src"/>
<meta name="title" content="njp.ma"/>
<meta name="description" content="This archive was initiated in the context of CAMP After Media Promises"/>
<meta property="og:title" content="njp.ma"/>
<meta property="og:url" content="https://phantas.ma/polis"/>
<meta property="og:url" content="https://njp.ma"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="Phantasmapolis" />
<meta property="og:description" content="Looking back to the future"/>
<meta property="og:image" content="https://phantas.ma/static/jpg/phantasmopolis.jpg"/>
<meta property="og:title" content="njp.ma" />
<meta property="og:description" content="This archive was initiated in the context of CAMP After Media Promises"/>
<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"/>
<meta property="twitter:title" content="njp.ma" />
<meta property="twitter:description" content="This archive was initiated in the context of CAMP After Media Promises"/>
{% endblock head %}
{% block body_class%}animated animated-text body--home{% endblock %}
{% block main %}

View file

@ -4,26 +4,15 @@
<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:url" content="https://njp.ma{{ text.get_absolute_url }}"/>
<meta property="og:site_name" content="njp.ma"/>
<meta property="og:description" content="{{ text.byline|striptags }}"/>
<meta name="title" content="{{ text.title }}"/>
<meta name="description" content="{{ text.byline|striptags }}"/>
{% if text.data.related %}
<meta content="{{ stream_prefix }}{{ text.data.related}}/loop.jpg" name="thumbnail"/>
<meta content="{{ stream_prefix }}{{ text.data.related }}/loop.jpg" name="image_src"/>
<meta property="twitter:image" content="{{ stream_prefix }}{{ text.data.related }}/loop.jpg"/>
<meta property="og:image" content="{{ stream_prefix }}{{ text.data.related }}/loop.jpg"/>
{% elif text.data.item %}
<meta content="{{ stream_prefix }}{{ text.data.item}}/loop.jpg" name="thumbnail"/>
<meta content="{{ stream_prefix }}{{ text.data.item }}/loop.jpg" name="image_src"/>
<meta property="twitter:image" content="{{ stream_prefix }}{{ text.data.item }}/loop.jpg"/>
<meta property="og:image" content="{{ stream_prefix }}{{ text.data.item }}/loop.jpg"/>
{% endif %}
<meta property="og:site_name" content="Phantas.ma"/>
<meta property="og:site_name" content="njp.ma"/>
<meta property="og:description" content="{% for director in text.data.director %}{{ director|safe }}{% endfor %}"/>
<meta property="twitter:card" content="summary_large_image"/>