Introduce base.html for inheritance of common page elements

main
Georg Krause 2019-05-16 12:10:01 +02:00
parent 0607186bb0
commit 87d4fbfb0b
4 changed files with 141 additions and 184 deletions

View File

@ -77,3 +77,7 @@ a.pure-button-primary {
.content a:hover {
color: #ff9900;
}
.footer {
z-index: 100;
}

View File

@ -0,0 +1,55 @@
<!doctype html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ SITE_SUBHEADING }}">
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pure-min.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/grids-responsive-min.css">
<!--<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/marketing-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/layouts/marketing.css">
<!--<![endif]-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/responsive-style.css">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
<link rel="icon" type="image/x-icon" href="{{ SITEURL }}/theme/images/luppp.svg" sizes="32x32">
</head>
<body>
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading" href="/">{{ SITENAME }}</a>
<ul class="pure-menu-list">
{% for title, link in LINKS %}
<li class="pure-menu-item"><a href="{{ link }}" class="pure-menu-link">{{ title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% block content %}{% endblock %}
<div class="footer l-box is-center">
{{ FOOTER }}
</div>
</body>
</html>

View File

@ -1,49 +1,6 @@
<!doctype html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ SITE_SUBHEADING }}">
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pure-min.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/grids-responsive-min.css">
<!--<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/marketing-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/layouts/marketing.css">
<!--<![endif]-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/responsive-style.css">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
<link rel="icon" type="image/x-icon" href="{{ SITEURL }}/theme/images/luppp.svg" sizes="32x32">
</head>
<body>
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading" href="/">{{ SITENAME }}</a>
<ul class="pure-menu-list">
{% for title, link in LINKS %}
<li class="pure-menu-item"><a href="{{ link }}" class="pure-menu-link">{{ title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% extends "base.html" %}
{% block content %}
<div class="splash-container">
<div class="splash">
<h1 class="splash-head">{{ SPLASH_HEADING }}</h1>
@ -102,8 +59,7 @@
<div class="ribbon l-box-lrg pure-g">
<div class="l-box-lrg is-center pure-u-1 pure-u-md-1-2 pure-u-lg-2-5">
<img width="200" alt="File Icons" class="pure-img-responsive"
src="{{ SITEURL }}/theme/images/luppp.svg">
<img width="200" alt="File Icons" class="pure-img-responsive" src="{{ SITEURL }}/theme/images/luppp.svg">
</div>
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-3-5">
@ -127,12 +83,7 @@
</div>
<div class="footer l-box is-center">
{{ FOOTER }}
</div>
</div>
</body>
</html>
{% endblock %}

View File

@ -1,67 +1,14 @@
<!doctype html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ SITE_SUBHEADING }}">
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pure-min.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/grids-responsive-min.css">
<!--<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/marketing-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/layouts/marketing.css">
<!--<![endif]-->
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/responsive-style.css">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
<link rel="icon" type="image/x-icon" href="{{ SITEURL }}/theme/images/luppp.svg" sizes="32x32">
</head>
<body>
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading" href="/">{{ SITENAME }}</a>
<ul class="pure-menu-list">
{% for title, link in LINKS %}
<li class="pure-menu-item"><a href="{{ link }}" class="pure-menu-link">{{ title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% extends "base.html" %}
{% block content %}
<div class="content">
<h2 id="GetLuppp" class="content-head is-center">{{ CONTENT_HEADING }}</h2>
<h2 id="GetLuppp" class="content-head is-center">{{ page.title }}</h2>
<div class="pure-g">
<div class="l-box-lrg pure-u-md-1-5"></div>
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
{{ CONTENT }}
{{ page.content }}
</div>
</div>
</div>
<div class="footer l-box is-center">
{{ FOOTER }}
</div>
</div>
</body>
</html>
{% endblock %}