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:
|
run arg:
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -d "public" ] && [ "{{arg}}" = "build" ]; then
|
if [ -d "public" ] && [ "{{arg}}" = "build" ]; then
|
||||||
|
|
|
@ -13,7 +13,19 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
{% if header %}
|
||||||
|
<header id="header">
|
||||||
|
{{ header | safe }}
|
||||||
|
<hr>
|
||||||
|
</header>
|
||||||
|
{% endif %}
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
{% if footer %}
|
||||||
|
<footer id="footer">
|
||||||
|
<hr>
|
||||||
|
{{ footer | safe }}
|
||||||
|
</footer>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ metadata.title }}</h1>
|
|
||||||
<article>{{ content | safe }}</article>
|
<article>{{ content | safe }}</article>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue