M .build.yml => .build.yml +5 -1
@@ 1,8 1,9 @@
-image: alpine/latest
+image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- zola
+ - prettier
environment:
site: truita.es
tasks:
@@ 10,6 11,9 @@ tasks:
cd $site
zola build
rm public/404.html
+ - format: |
+ cd $site/public
+ prettier -w .
- package: |
cd $site
tar -C public -cvz . > ../site.tar.gz
M templates/base.html => templates/base.html +4 -4
@@ 1,21 1,21 @@
<!doctype html>
{% if page %}
{% set section = page %}
-{% endif %}
+{% endif -%}
<html lang="en">
<head>
- {% block head %}
+ {%- block head -%}
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="/style.css" />
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<link rel="icon" type="image/png" href="/bubbles.png" />
- {% endblock head %}
+ {%- endblock head %}
</head>
<body>
<header>
<h1>{% if section.path != "/" %}<a href="/">{% endif %}{{ config.title }}{% if section.path != "/" %}</a>{% endif %}</h1>
<nav>
- {% if section.path != "/projects/" %}<a href="/projects">{% endif %}Projects{% if section.path != "/projects" %}</a>{% endif %} —
+ {% if section.path != "/projects/" %}<a href="/projects">{% endif %}Projects{% if section.path != "/projects/" %}</a>{% endif %} —
{% if section.path != "/blog/" %}<a href="/blog">{% endif %}Blog{% if section.path != "/blog/" %}</a>{% endif %}
</nav>
</header>
M templates/blog/section.html => templates/blog/section.html +0 -1
@@ 4,5 4,4 @@
{% for page in section.pages %}
<p>{{ page.date | date(format="%d %B, %Y") }}<br><a href="{{ page.permalink }}">{{ page.title }}</a></p>
{% endfor %}
-</ul>
{% endblock content %}