added jobs, news, contact; added site.json backend; lazy loading images

This commit is contained in:
Spencer Flagg
2022-09-20 14:58:56 +02:00
parent 1152f2dfea
commit 025a86da0f
22 changed files with 319 additions and 44 deletions

View File

@@ -13,4 +13,30 @@ layout: layouts/peripheral.njk
<span>News</span>
</h1>
</div>
</section>
<section id="news">
{# <h2>{{ jobs|length }} {{ "Open Position" if jobs|length == 1 else "Open Positions" }}</h2> #}
<ul class="news">
{% for post in news %}
<li class="post">
<a href="{{ post.guid }}">
{% if post.creator %}
<span class="creator">{{ post.creator }}</span>
{% endif %}
{% if post.creator.includes('@') %}
<p class="twitter-text">{{ post.title }}</p>
{% else %}
<h3>{{ post.title }}</h3>
{% endif %}
<h4>{{ post.pubDate }}</h4>
{% if post.description %}
<p>{{ post.description }}</p>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</section>