Added more config options for color, name, and repo, made clicking on the bare url directly redirect to the repo based on useragent, fixed one config that was being created with the wrong name, finally added a url config so oembed works on other servers without digging around in the html

This commit is contained in:
robinuniverse
2021-07-14 03:33:46 -05:00
parent e276425b74
commit f3f62f3cb4
5 changed files with 39 additions and 19 deletions

View File

@ -1,14 +1,14 @@
{% extends 'base.html' %}
{% block head %}
<title>TwitFix</title>
<meta content="TwitFix" property="og:title" />
<title>{{ appname }}</title>
<meta content="{{ appname }}" property="og:title" />
<meta content="{{ message }}" property="og:description" />
<meta content="https://github.com/robinuniverse/TwitFix" property="og:url" />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
<meta http-equiv = "refresh" content = "0; url = https://github.com/robinuniverse/TwitFix" />
<meta content="{{ repo }}" property="og:url" />
<meta content="{{ color }}" data-react-helmet="true" name="theme-color" />
<meta http-equiv = "refresh" content = "0; url = {{ repo }}" />
{% endblock %}
{% block body %}
You will be redirected to this projects github page in a moment. <a href="https://github.com/robinuniverse/TwitFix">Or click here.</a>
You will be redirected to this projects github page in a moment. <a href="{{ repo }}">Or click here.</a>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% block head %}
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
<meta property="og:site_name" content="TwitFix">
<meta content="{{ color }}" data-react-helmet="true" name="theme-color" />
<meta property="og:site_name" content="{{ appname }}">
<meta name="twitter:card" content="player" />
<meta name="twitter:title" content="{{ user }}" />
@ -27,7 +27,7 @@
<meta property="og:image" content="{{ pic }}" />
<!--!-->
<link rel="alternate" href="https://fxtwitter.com/oembed.json?desc={{ user }}&user={{ desc }}&link={{ link }}" type="application/json+oembed" title="{{ user }}">
<link rel="alternate" href="{{ url }}/oembed.json?desc={{ user }}&user={{ desc }}&link={{ link }}" type="application/json+oembed" title="{{ user }}">
<meta http-equiv = "refresh" content = "0; url = {{ vidlink }}" />
{% endblock %}