implement base-wide.html as an extension of base.html
not quite sure why I didn't think of this initially... too much hacking
This commit is contained in:
parent
e8377adcf5
commit
65bc028524
@ -1,38 +1,2 @@
|
|||||||
<!doctype html>
|
{% extends "base.html" %}
|
||||||
<html lang="en">
|
{% block site_class %}class="wide-site-wrap"{% endblock %}
|
||||||
<title>{{ title }}</title>
|
|
||||||
{% if title %}<meta property="og:title" content="{{ title }}">{% endif %}
|
|
||||||
{% if description %}<meta property="og:description" content="{{ description }}">{% endif %}
|
|
||||||
{% if image %}<meta property="og:image" content="{{ image }}">{% endif %}
|
|
||||||
<meta property="og:url" content="{{ base_url }}">
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename=user_style) }}">
|
|
||||||
<link rel="icon" href="{% if config.FAVICON %}{{ config.FAVICON }}{% else %}{{ url_for('static', filename='img/favicon.png') }}{% endif %}">
|
|
||||||
|
|
||||||
<div class="wide-site-wrap">
|
|
||||||
{% block header %}
|
|
||||||
<div class="header">
|
|
||||||
<div class="nav">
|
|
||||||
{% for nav in navs %}
|
|
||||||
<a href="{{ nav.1 }}">{{ nav.0 }}</a>
|
|
||||||
{% if not loop.last %} » {% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<div class="styles">
|
|
||||||
<a href="?style=dark">[dark]</a>
|
|
||||||
<a href="?style=light">[light]</a>
|
|
||||||
<a href="?style=plain">[plain]</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
{% block body %}
|
|
||||||
<div class="content">
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
<footer>
|
|
||||||
<i>Last modified: {{ mtime }}</i>
|
|
||||||
</footer>
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
</html>
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<link rel="stylesheet" href="{{ url_for('static', filename=user_style) }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename=user_style) }}">
|
||||||
<link rel="icon" href="{% if config.FAVICON %}{{ config.FAVICON }}{% else %}{{ url_for('static', filename='img/favicon.png') }}{% endif %}">
|
<link rel="icon" href="{% if config.FAVICON %}{{ config.FAVICON }}{% else %}{{ url_for('static', filename='img/favicon.png') }}{% endif %}">
|
||||||
|
|
||||||
<div class="site-wrap">
|
<div {% block site_class %}class="site-wrap"{% endblock %}>
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user