Merge pull request 'adding some jinja2 stuff to layout.html' (#4) from layout into master

Reviewed-on: https://git.vebit.xyz/muli/wtf-public-website/pulls/4
This commit is contained in:
muli 2021-02-17 22:25:49 +01:00
commit c167fbb342
2 changed files with 51 additions and 19 deletions

View File

@ -3,16 +3,20 @@
<div class="header__top_box"> <div class="header__top_box">
<div class="header__logo_box"> <div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite"> <a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|url }}" style="height: 7rem;"> {% if '/images/wtf_logo.svg'|asseturl is defined -%}
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}" style="height: 7rem;">
{%- endif %}
</a> </a>
</div> </div>
<nav class="header__secondary_nav"> <nav class="header__secondary_nav">
<ul class="secondary_nav__navlist"> <ul class="secondary_nav__navlist">
<!-- {% for alt in get_alts(this) %}
{%- if this.alt != alt %}
<li class="secondary_nav__navitem"> <li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="#">EN</a> <a class="secondary_nav__navlink" href="{{ '.'|url(alt=alt) }}">{{ alt|title|upper }}</a>
</li> </li>
--> {% endif -%}
{% endfor %}
<li class="secondary_nav__navitem"> <li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a> <a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a>
</li> </li>

View File

@ -1,8 +1,24 @@
<!doctype html> <!doctype html>
<html lang="de"> <html
{%- if alt %} lang="{{ alt }}"
<head> {%- endif %}>
<!-- <!--
__ ____________________
\ \ \_______. .________|
\ \ / /| | ________
\ \ . / / | | | ____|
\ \ / \ / / | | | |__
\ \/ . \/ / | | | __|
\ / \ / | | | |
\/ \/ |_| |_|
*WTF Kooperative eG*
Werkkooperative der
Technikfreundinnen
-->
<head>
{#
Namensschema der CSS-Klassen nach BEM (Block Element Modifier, Namensschema der CSS-Klassen nach BEM (Block Element Modifier,
http://getbem.com/naming/). Mit der Erweiterung, dass Modifier einzeln http://getbem.com/naming/). Mit der Erweiterung, dass Modifier einzeln
mit Bindestrich angegeben werden. Also: mit Bindestrich angegeben werden. Also:
@ -15,20 +31,32 @@
dazu ist: dazu ist:
.navlist__navitem.-active .navlist__navitem.-active
--> -#}
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Werkkooperative der Technikfreundinnen eG</title> <title>Werkkooperative der Technikfreundinnen eG</title>
<meta name="description" content=""> <meta name="description" content="">
<link rel="stylesheet" href="{{ '/css/reset.css'|url }}"> {% if '/css/reset.css'|asseturl is defined -%}
<link rel="stylesheet" href="{{ '/css/fonts.css'|url }}"> <link rel="stylesheet" href="{{ '/css/reset.css'|asseturl }}">
<link rel="stylesheet" href="{{ '/css/style.css'|url }}"> {%- endif %}
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"> {% if '/css/fonts.css'|asseturl is defined -%}
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"> <link rel="stylesheet" href="{{ '/css/fonts.css'|asseturl }}">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-96x96.png"> {%- endif %}
<link rel="manifest" href="manifest.json"> <link rel="stylesheet" href="{{ '/css/style.css'|asseturl }}">
{% if 'apple-touch-icon.png'|asseturl is defined -%}
<link rel="apple-touch-icon" sizes="180x180" href="{{ 'apple-touch-icon.png'|asseturl }}">
{%- endif %}
{% if 'favicon-32x32.png'|asseturl is defined -%}
<link rel="icon" type="image/png" sizes="32x32" href="{{ 'favicon-32x32.png'|asseturl }}">
{%- endif %}
{% if 'favicon-96x96.png'|asseturl is defined -%}
<link rel="icon" type="image/png" sizes="16x16" href="{{ 'favicon-96x96.png'|asseturl }}">
{%- endif %}
{% if 'manifest.json'|asseturl is defined -%}
<link rel="manifest" href="{{ 'manifest.json'|asseturl }}">
{%- endif %}
</head> </head>
<body> <body>
<header> <header>