Update index to include the bits

bits are in templates/index/*.html
they can't go into content/ because ... *reasons*
This commit is contained in:
Case Duckworth 2021-11-21 13:49:45 -06:00
parent 5bd0ae4fd1
commit 930736ccbb
5 changed files with 24 additions and 16 deletions

View File

@ -15,19 +15,3 @@ in our [manifesto](/docs/manifesto),
namely *anti-commoditization*,
*self-reliance*,
and *radical cooperation*.
## news
## join us!
if you like to bake, want to learn more about baking,
or just love bread, come [join us](/join)!
it's easy to apply for membership and we're looking forward to having you.
## bakers
> in order of their most recent bake
{{ users() }}

View File

@ -1,4 +1,9 @@
{% extends "base.html" %}
{% block main_content %}
{{ section.content | safe }}
{% include "index/news.html" %}
{% include "index/join.html" %}
{% include "index/bakers.html" %}
{% endblock main_content %}

View File

@ -1,3 +1,5 @@
<h2>bakers</h2>
<p class="description">in order of their most recent bake</p>
{% set user_data = load_data(path="static/users.toml") %}
<ul>
{% for u in user_data.all -%}

View File

@ -0,0 +1,6 @@
<h2>join us!</h2>
<p>
if you like to bake, want to learn more about baking,
or just love bread, come <a href="/join">join us</a>!
it's easy to apply for membership and we're looking forward to having you.
</p>

11
templates/index/news.html Normal file
View File

@ -0,0 +1,11 @@
<h2>news</h2>
<ul>
{% set s = get_section(path="news/_index.md") %}
{% for p in s.pages %}
{% if loop.index > 3 %}
<li><a href="/news#news-item-4">older news</a></li>
{% break %}
{% endif %}
<li><a href="{{ p.permalink }}">{{ p.title }}</a></li>
{% endfor %}
</ul>