|
|
|
@ -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>© {{ blog.author }}</p>
|
|
|
|
|