Fix the default template

- Closes #9
- Closes #10
pull/11/head
Anthony J. Martinez 2 years ago
parent f5e680322a
commit 13c279b3ff

@ -12,7 +12,7 @@ pub const TEMPLATE: &str = r#"
<center>
<h1>{{ blog.name }}</h1>
<nav>
<a href="./">HOME</a>
<a href="./">Home</a>
{%- for topic in blog.topics %}
<a href="./{{ topic | slugify }}">{{ topic }}</a>
{%- endfor -%}
@ -20,9 +20,13 @@ pub const TEMPLATE: &str = r#"
</center>
</header>
<main>
{% if posts | length == 0 %}
<h3>Coming Soon!</h3>
{% else %}
{%- for post in posts %}
{{ post }}
{%- endfor -%}
{% endif %}
</main>
<footer>
<p>&#169; {{ blog.author }}</p>

Loading…
Cancel
Save