Move header to a partial

This commit is contained in:
Luis Cielak 2018-05-24 12:09:27 -04:00 committed by Brian Duggan
parent e4f43deae1
commit 5af5670f06
4 changed files with 19 additions and 15 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ static/fonts/*
.webassets-cache
scss/assets
.pytest_cache/
.venv/

BIN
static/img/foo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

View File

@ -4,24 +4,18 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}JEDI{% end %}</title>
{% for url in assets['css'].urls() %}
{% for url in assets['css'].urls() %}
<link rel="stylesheet" href="{{ url }}" type="text/css">
{% end %}
{% end %}
</head>
<body>
<header class="usa-header usa-header-basic" role="banner">
<div class="usa-nav-container">
<div class="usa-navbar">
<div class="usa-logo" id="basic-logo">
<em class="usa-logo-text"><a href="/" title="Home" aria-label="Home">Jedi</a></em>
</div>
</div>
</div>
</header>
<div class='usa-grid'>
{% block content %}
these are not the droids you are looking for
{% end %}
{% include 'header.html.to' %}
<div class='usa-grid'>
{% block content %}
these are not the droids you are looking for
{% end %}
</div>
</body>
</html>

9
templates/header.html.to Normal file
View File

@ -0,0 +1,9 @@
<header class="usa-header usa-header-basic" role="banner">
<div class="usa-nav-container">
<div class="usa-navbar">
<div class="usa-logo" id="basic-logo">
<em class="usa-logo-text"><a href="/" title="Home" aria-label="Home">Jedi</a></em>
</div>
</div>
</div>
</header>