update templates, recipe
This commit is contained in:
parent
9d38ed70fb
commit
8585f25816
3 changed files with 17 additions and 1 deletions
5
justfile
5
justfile
|
@ -1,3 +1,8 @@
|
|||
build:
|
||||
@just run build
|
||||
serve:
|
||||
@just run build
|
||||
@just run serve
|
||||
run arg:
|
||||
#!/bin/sh
|
||||
if [ -d "public" ] && [ "{{arg}}" = "build" ]; then
|
||||
|
|
|
@ -13,7 +13,19 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
{% if header %}
|
||||
<header id="header">
|
||||
{{ header | safe }}
|
||||
<hr>
|
||||
</header>
|
||||
{% endif %}
|
||||
{% block content %}{% endblock %}
|
||||
{% if footer %}
|
||||
<footer id="footer">
|
||||
<hr>
|
||||
{{ footer | safe }}
|
||||
</footer>
|
||||
{% endif %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ metadata.title }}</h1>
|
||||
<article>{{ content | safe }}</article>
|
||||
{% endblock %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue