mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-04-01 21:13:11 +00:00
added jobs, news, contact; added site.json backend; lazy loading images
This commit is contained in:
26
src/news.njk
26
src/news.njk
@@ -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>
|
||||
Reference in New Issue
Block a user