Skip to content
Snippets Groups Projects
Verified Commit 20c5b809 authored by Jake's avatar Jake :speech_balloon:
Browse files

updated html

parent 2db592b1
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
{%- import 'macros/content_renderer.html' as content_renderer with context -%} {%- import 'macros/content_renderer.html' as content_renderer with context -%}
{%- import 'macros/nav.html' as nav with context -%} {%- import 'macros/nav.html' as nav with context -%}
<html lang="{%- block html_lang -%}{{ l }}{%- endblock html_lang -%}"> <html lang="{{ l }}" xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
{% block head %} {% block head %}
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>{% block title %}{{ t[l].title_prefix }}{{ t[l].sitename }}{{ t[l].title_suffix }}{%endblock%}</title> <title>{% block title %}{{ t[l].title_prefix }}{{ t[l].sitename }}{{ t[l].title_suffix }}{%endblock%}</title>
<!-- <base target="_blank"> --> <!-- <base target="_blank"> -->
<!-- <meta HTTP-EQUIV="REFRESH" content="500; url=#"> --> <!-- <meta HTTP-EQUIV="REFRESH" content="500; url=#"> -->
...@@ -24,31 +24,37 @@ ...@@ -24,31 +24,37 @@
<!-- <link rel="icon" type="image/png" sizes="192x192" href="static/img/favicon-192x192.png"/> <!-- <link rel="icon" type="image/png" sizes="192x192" href="static/img/favicon-192x192.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="static/img/favicon-32x32.png"/>--> <link rel="icon" type="image/png" sizes="32x32" href="static/img/favicon-32x32.png"/>-->
<!-- <link rel="icon" type="image/x-icon" sizes="16x16" href="static/img/favicon.ico"/> --> <!-- <link rel="icon" type="image/x-icon" sizes="16x16" href="static/img/favicon.ico"/> -->
{#{%- if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ t[l].atom.title|e }}" />
{% endif -%}#}
{% block extra_head %}{% endblock extra_head %} {% block extra_head %}{% endblock extra_head %}
{% endblock head %} {% endblock head %}
</head> </head>
<body> <body id="top">
<!--<nav id="controls">
</nav>-->
<header> <header>
{% block header %} {% block site_header %}
<h1><a href="{{ siteurl }}/{{ l }}/" title="{{ t[l].banner.title|e }}" ><img alt="{{ t[l].banner.alt|e }}" src="{{ siteurl }}/{{ theme.static_dir }}/images/banner-logo.png"><span>{{ t[l].banner.prefix|e }}{{ t[l].sitename|e }}{{ t[l].banner.suffix|e }}</span></a></h1> <h1><a href="{{ siteurl }}/{{ l }}/" title="{{ t[l].banner.title|e }}" ><img alt="{{ t[l].banner.alt|e }}" src="{{ siteurl }}/{{ theme.static_dir }}/images/banner-logo.png"><span>{{ t[l].banner.prefix|e }}{{ t[l].sitename|e }}{{ t[l].banner.suffix|e }}</span></a></h1>
{% block extra_header %}{% endblock extra_header %} {% block extra_header %}{% endblock extra_header %}
{% endblock header %} {% endblock site_header %}
</header> </header>
<div class="nav-container"> <div id="sitemenu-container">
<label for="show-header-menu" class="show-header-menu">&#9776;</label> <label for="show-header-menu" class="show-header-menu">&#9776;</label>
<input type="checkbox" id="show-header-menu" role="button"> <input type="checkbox" id="show-header-menu" role="button">
<label for="show-header-menu" class="show-header-menu-bg"> </label> <label for="show-header-menu" class="show-header-menu-bg"> </label>
{{ nav.render_menu(config.menuitems, l) }} {{ nav.render_menu(config.menuitems, l) }}
</div> </div>
<main> <!--<nav class="breadcrumb">
{% block content %} <ul>
{% endblock content %} {% block breadcrumb %}
{% endblock breadcrumb %}
</ul>
</nav>-->
<main class="content">
{% block main %}
{% endblock main %}
</main> </main>
<footer> {% block page_footer %}
{% block footer %} {% endblock page_footer %}
<footer id="site-footer">
{#- TODO besserer footer -#} {#- TODO besserer footer -#}
<div> <div>
<a href="https://asta.uni-goettingen.de/impressum/datenschutz/">Datenschutz</a> <a href="https://asta.uni-goettingen.de/impressum/datenschutz/">Datenschutz</a>
...@@ -56,8 +62,6 @@ ...@@ -56,8 +62,6 @@
<div> <div>
<div>Fachgruppe Informatik Göttingen, 2022.</div> <div>Fachgruppe Informatik Göttingen, 2022.</div>
<!-- blablabla datenschutz,impressum etc... --> <!-- blablabla datenschutz,impressum etc... -->
{% block extra_footer %}{% endblock extra_footer %}
{% endblock footer %}
</footer> </footer>
</body> </body>
<!-- The Cake Is A Lie! --> <!-- The Cake Is A Lie! -->
......
{% extends "base.html" %} {% extends "base.html" %}
{% block html_lang %}{{ page.lang }}{% endblock %}
{% block title %}{{ page.title|striptags }}{% endblock %} {% block title %}{{ page.title|striptags }}{% endblock %}
{% block extra_head %} {% block extra_head %}
...@@ -14,7 +12,7 @@ ...@@ -14,7 +12,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block content %} {% block main %}
<article> <article>
{% block page_header %} {% block page_header %}
<header> <header>
...@@ -30,70 +28,71 @@ ...@@ -30,70 +28,71 @@
{{ render.sections(s, l) }} {{ render.sections(s, l) }}
{%- endcall -%} {%- endcall -%}
{% endblock %} {% endblock %}
{% block page_footer %} </article>
<footer> {% endblock %}
<div>
{{ t[l].page.authors_prefix }}
<ul>
{% for author in page.authors %}
<li> {{ author.name|e }} </li>
{% endfor %}
</ul>
{{ t[l].page.authors_suffix }}
</div>
<div> {% block page_footer %}
{{ t[l].page.published_prefix }} <footer class="page-footer content">
<abbr title="{{ page.date_created.isoformat() }}"> <div>
{{ page.date_created.isoformat() }} {{ t[l].page.authors_prefix }}
</abbr> <ul>
{{ t[l].page.published_suffix }} {% for author in page.authors %}
</div> <li> {{ author.name|e }} </li>
{% endfor %}
</ul>
{{ t[l].page.authors_suffix }}
</div>
<div>{{ t[l].page.modified_prefix }} <div>
<abbr title="{{ page.date_modified.isoformat() }}"> {{ t[l].page.published_prefix }}
{{ page.date_modified.isoformat() }} <abbr title="{{ page.date_created.isoformat() }}">
</abbr> {{ page.date_created.isoformat() }}
{{ t[l].page.modified_suffix }} </abbr>
</div> {{ t[l].page.published_suffix }}
</div>
<div> <div>{{ t[l].page.modified_prefix }}
{{ t[l].page.category_prefix }} <abbr title="{{ page.date_modified.isoformat() }}">
{{ link.render_tag(page.category,l) }} {{ page.date_modified.isoformat() }}
{{ t[l].page.category_suffix }} </abbr>
</div> {{ t[l].page.modified_suffix }}
</div>
<div> <div>
{{ t[l].page.tags_prefix }} {{ t[l].page.category_prefix }}
<ul> {{ link.render_tag(page.category,l) }}
{% for tag in page.tags %} {{ t[l].page.category_suffix }}
<li> </div>
{{ link.render_tag(tag,l) }}
</li>
{% endfor %}
</ul>
{{ t[l].page.tags_suffix }}
</div>
<div> <div>
{{ t[l].page.languages_prefix }} {{ t[l].page.tags_prefix }}
<ul class="languages"> <ul>
{%- for tlang in t['supported'] -%} {% for tag in page.tags %}
<li> <li>
{{ link.render(['slug',page.slug,tlang]|join(':'),t[tlang]['langname'],l) }} {{ link.render_tag(tag,l) }}
</li> </li>
{%- endfor -%} {% endfor %}
</ul> </ul>
{{ t[l].page.languages_suffix }} {{ t[l].page.tags_suffix }}
</div> </div>
<div> <div>
{{ t[l].page.slug_prefix }} {{ t[l].page.languages_prefix }}
<code>{{ page.slug|e }}</code> <ul class="languages">
{{ t[l].page.slug_suffix }} {%- for tlang in t['supported'] -%}
</div> <li>
{{ link.render(['slug',page.slug,tlang]|join(':'),t[tlang]['langname'],l) }}
</li>
{%- endfor -%}
</ul>
{{ t[l].page.languages_suffix }}
</div>
</footer> <div>
{% endblock %} {{ t[l].page.slug_prefix }}
</article> <code>{{ page.slug|e }}</code>
{{ t[l].page.slug_suffix }}
</div>
</footer>
{% endblock %} {% endblock %}
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{%- endcall -%} {%- endcall -%}
{%- endblock -%} {%- endblock -%}
{% block content %} {% block main %}
<section> <section>
{{ render.section({"type": "tag", "tag": tag, "num": None}, l) }} {{ render.section({"type": "tag", "tag": tag, "num": None}, l) }}
</section> </section>
{% endblock content %} {% endblock main %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment