site_header start
This commit is contained in:
@ -22,6 +22,9 @@
|
||||
href="https://michalvanko.dev/feed.json"
|
||||
/>
|
||||
|
||||
<!-- Tailwind output file -->
|
||||
<link rel="stylesheet" href="/styles/output.css" />
|
||||
|
||||
<link rel="stylesheet" href="/print.css" media="print" />
|
||||
<link rel="stylesheet" href="/fonts.css" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
@ -31,8 +34,9 @@
|
||||
<link rel="icon" type="image/png" href="/m-logo-192.png" />
|
||||
</head>
|
||||
<body>
|
||||
{% block content %} Placeholder {% endblock %} {# footer, should be not
|
||||
dependant on the each individual handler but it should have it's own handler
|
||||
#} {{ site_footer|safe }}
|
||||
{% include "site_header.html" %}
|
||||
{% block content %} Placeholder {% endblock %}
|
||||
{# footer, should be not dependant on the each individual handler but it should have it's own handler #}
|
||||
{{ site_footer|safe }}
|
||||
</body>
|
||||
</html>
|
||||
|
31
axum_server/templates/site_header.html
Normal file
31
axum_server/templates/site_header.html
Normal file
@ -0,0 +1,31 @@
|
||||
<header class="min-h-full bg-blue-50">
|
||||
<nav class="">
|
||||
<section>
|
||||
<ul class="">
|
||||
{% for link in header_props.links %}
|
||||
<li>
|
||||
<a
|
||||
rel="prefetch"
|
||||
class=""
|
||||
href="{{link.href}}"
|
||||
>
|
||||
{{link.label}}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<aside class="logo-section ">
|
||||
<a class="logo" href=".">
|
||||
<img
|
||||
class=""
|
||||
src="/m-logo.svg"
|
||||
alt="m logo"
|
||||
width="44px"
|
||||
height="44px"
|
||||
/>
|
||||
</a>
|
||||
</aside>
|
||||
</section>
|
||||
</nav>
|
||||
</header>
|
Reference in New Issue
Block a user