Merge branch 'master' into header

This commit is contained in:
muli 2021-02-17 22:30:17 +01:00
commit fda89f43e0
5 changed files with 86 additions and 19 deletions

22
LICENCE Normal file
View File

@ -0,0 +1,22 @@
MIT License
Copyright (c) 2021 WTF Kooperative eG and Members
Copyright (c) 2021 L3D <l3d@c3woc.de>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,4 @@
_template: sitemap.xml
---
_model: none
_discoverable: no

View File

@ -3,16 +3,20 @@
<div class="header__top_box">
<div class="header__logo_box">
<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>
</div>
<nav class="header__secondary_nav">
<ul class="secondary_nav__navlist">
<!--
{% for alt in get_alts(this) %}
{%- if this.alt != alt %}
<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>
-->
{% endif -%}
{% endfor %}
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="https://meta.vebit.xyz">Login</a>
</li>

View File

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

9
templates/sitemap.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for page in [site.root] if page != this recursive %}
{%- if not page.hide_from_global_index %}
<url><loc>{{ page|url(external=true) }}</loc></url>
{{- loop(page.children) }}
{%- endif %}
{%- endfor %}
</urlset>