Move header to a partial
This commit is contained in:
parent
e4f43deae1
commit
5af5670f06
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ static/fonts/*
|
||||
.webassets-cache
|
||||
scss/assets
|
||||
.pytest_cache/
|
||||
.venv/
|
||||
|
BIN
static/img/foo.png
Normal file
BIN
static/img/foo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 357 KiB |
@ -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
9
templates/header.html.to
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user