mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2026-01-22 03:07:37 +01:00
refactor
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="{{ conf['SITE_DESCRIPTION'] }}">
|
||||
<meta name="author" content="{{ conf['SITE_AUTHOR'] }}">
|
||||
<meta name="title" content="{{ conf['SITE_TITLE'] }}">
|
||||
|
||||
<link rel="shortcut icon" href="/defaultFavicon.ico">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
@@ -14,16 +17,16 @@
|
||||
<script src="/static/js/bootstrap.min.js"></script>
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{ conf['siteTitle'] }}" />
|
||||
<meta property="og:description" content="{{ conf['siteDescription'] }}" />
|
||||
<meta property="og:title" content="{{ conf['SITE_TITLE'] }}" />
|
||||
<meta property="og:description" content="{{ conf['SITE_DESCRIPTION'] }}" />
|
||||
<meta property="og:url" content="{{ url_for(request.endpoint) }}" />
|
||||
<meta property="og:image" content="{{ conf['siteLogo'] }}">
|
||||
<meta property="og:image" content="{{ conf['SITE_LOG_URL'] }}">
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
"url": "{{ conf['siteURL'] }}",
|
||||
"logo": "{{ conf['siteLogo'] }}"
|
||||
"url": "{{ conf['SITE_BASE_URL'] }}",
|
||||
"logo": "{{ conf['SITE_LOGO_URL'] }}"
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
{% include 'head.html' %}
|
||||
|
||||
<title>{{ conf["siteTitle"] }}</title>
|
||||
|
||||
</head>
|
||||
<body style="background-color: #eae9e9">
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
|
||||
{% include 'head.html' %}
|
||||
|
||||
<title>{{ conf["siteTitle"] }}</title>
|
||||
|
||||
<!-- Load the Twitch embed script -->
|
||||
<!-- <script src="https://embed.twitch.tv/embed/v1.js"></script> -->
|
||||
<script src="https://sslrelay.atlantishq.de/twitch"></script>
|
||||
@@ -55,7 +53,7 @@
|
||||
|
||||
<div id="twitch-consent-placeholder" class="card bg-dark text-white">
|
||||
<img style="min-width: 80%; min-height: 200px;"
|
||||
class="card-img" src="/static/pictures/{{ conf['twitch-placeholder-img'] }}" >
|
||||
class="card-img" src="/pictures/{{ conf['twitch-placeholder-img'] }}" >
|
||||
<div class="card-img-overlay">
|
||||
<label class="switch mt-3 mt-0-u440">
|
||||
<input id="toogle-twitch" class="custom-control-input"
|
||||
@@ -97,7 +95,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for section in vereinSections %}
|
||||
{% for section in sections %}
|
||||
<div class="{% if loop.index %2 == 1 %} bg-secondary {% else %} bg-dark {% endif %} pt-2 pb-2">
|
||||
<div class="container text-color-special">
|
||||
<div class="row" {% if loop.index %2 == 1 %} style="flex-direction: row-reverse;" {% endif %}>
|
||||
|
||||
@@ -15,15 +15,15 @@
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
|
||||
{% if conf["teamspeak-server"] %}
|
||||
{% if conf["TEAMSPEAK_SERVER"] %}
|
||||
<li class="nav-item right">
|
||||
<a class="nav-link" href="ts3server://{{ conf['teamspeak-server'] }}">Teamspeak</a>
|
||||
<a class="nav-link" href="ts3server://{{ conf['TEAMSPEAK_SERVER'] }}">Teamspeak</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if conf["discord-server"] %}
|
||||
{% if conf["DISCORD_SERVER"] %}
|
||||
<li class="nav-item right">
|
||||
<a class="nav-link" href="{{ conf['discord-server'] }}">Discord</a>
|
||||
<a class="nav-link" href="{{ conf['DISCORD_SERVER'] }}">Discord</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
@@ -32,21 +32,21 @@
|
||||
<!-- right side -->
|
||||
<ul class="navbar-nav">
|
||||
|
||||
{% if conf["instagram"] %}
|
||||
{% if conf["INSTAGRAM"] %}
|
||||
<li class="nav-item right">
|
||||
<a class="nav-link" href="{{ conf['instagram'] }}">Instagram</a>
|
||||
<a class="nav-link" href="{{ conf['INSTAGRAM'] }}">Instagram</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if conf["facebook"] %}
|
||||
{% if conf["FACEBOOK"] %}
|
||||
<li class="nav-item right">
|
||||
<a class="nav-link" href="{{ conf['facebook'] }}">Facebook</a>
|
||||
<a class="nav-link" href="{{ conf['FACEBOOK'] }}">Facebook</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if conf["twitter"] %}
|
||||
{% if conf["TWITTER"] %}
|
||||
<li>
|
||||
<a class="nav-link" href="{{ conf['twitter'] }}">Twitter</a>
|
||||
<a class="nav-link" href="{{ conf['TWITTER'] }}">Twitter</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
<div class="col image-min-dimensions">
|
||||
<img class="img-responsive w-100 image-max-dimensions"
|
||||
src="/static/pictures/{{ p['image'] }}"></img>
|
||||
src="/pictures/{{ p['image'] }}"></img>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user