73 lines
2.7 KiB
HTML
73 lines
2.7 KiB
HTML
{% block doctype -%}
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
{%- endblock doctype %}
|
|
<html lang="en">
|
|
<head>
|
|
{% block head -%}
|
|
{% block head_meta -%}
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<meta name="description"
|
|
content="{%- block desc -%}
|
|
{{ config.description }}
|
|
{%- endblock desc -%}">
|
|
{%- endblock head_meta %}
|
|
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
|
{% block head_links -%}
|
|
<link rel="stylesheet" media="screen" type="text/css"
|
|
href="https://fontlibrary.org/face/cmu-typewriter" >
|
|
<link rel="stylesheet" type="text/css" href="/breadpunk.css" >
|
|
<link rel="icon" type="image/png" href="/breadpunk.png">
|
|
{%- endblock head_links %}
|
|
{%- endblock head %}
|
|
</head>
|
|
<body>
|
|
{% block body -%}
|
|
<div id="header">
|
|
{% block header -%}
|
|
<div class="nav">
|
|
{% block sitenav -%}
|
|
<ul>
|
|
<li><a href="/">breadpunk</a></li>
|
|
<li><a href="/join">join</a></li>
|
|
<li><a href="/news">news</a></li>
|
|
<li><a href="/docs">docs</a></li>
|
|
</ul>
|
|
{%- endblock sitenav %}
|
|
</div>
|
|
{% block users -%}
|
|
<marquee id="users">
|
|
{% set user_data = load_data(path="static/users.toml") %}
|
|
{{ user_data.all | length }} bakers /
|
|
{{ user_data.login | length }} online now
|
|
</marquee>
|
|
{%- endblock users %}
|
|
{%- endblock header -%}
|
|
</div>
|
|
<div id="main">
|
|
{%- block main -%}
|
|
<div class="header">
|
|
{%- block main_header %}
|
|
<h1>
|
|
{%- if page.title -%}{{ page.title }}
|
|
{%- elif section.title -%}{{ section.title }}
|
|
{%- endif -%}
|
|
</h1>
|
|
{%- if page.description -%}
|
|
<p class="subtitle">{{ page.description }}</p>
|
|
{%- elif section.description -%}
|
|
<p class="subtitle">{{ section.description }}</p>
|
|
{%- endif -%}
|
|
{%- endblock main_header -%}
|
|
</div>
|
|
{%- block main_content %}{% endblock main_content -%}
|
|
{%- endblock main -%}
|
|
</div>
|
|
<div id="footer">
|
|
{%- block footer -%}
|
|
{%- endblock footer -%}
|
|
</div>
|
|
{%- endblock body %}
|
|
</body>
|
|
</html>
|