Updated for teaching.

This commit is contained in:
Benjamin A. Shelton 2025-11-10 13:38:42 -07:00
commit 73f5484fb5
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
7 changed files with 371 additions and 16 deletions

View file

@ -0,0 +1,78 @@
---
layout: base
---
<main id="main" class="main inner box-flex pt-800 pb-1100" tabindex="-1">
<header class="page-header">
<h1 class="page-title">{{ title }}</h1>
{% if sub_heading %}
<p class="sub-heading">{{ sub_heading }}</p>
{% endif %}
</header>
<div class="content flow">
{{ content | safe }}
</div>
<div class="bg-white pt-1100 pb-1100">
<div class="posts inner box-grid">
{% for post in notes %}
<article class="card">
{# post image #}
{% if post.data.post_image %}
<a class="box-block" href="{{ post.url | url }}">
<span class="card-header box-block">
<span class="card-categories">
{% for item in post.data.tags %}
{%- if item !== 'blog' -%}
<span class="category box-block bg-secondary color-primary text-300">{{ item | capitalize }}</span>
{%- endif -%}
{% endfor %}
</span>
<img class="card-image" data-src="{{ post.data.post_image | url }}" alt="{{ post.data.image_alt }}">
</span>
</a>
{% endif %}
<div class="card-content pt-700 pb-900 pl-300 pr-300">
<h2><a class="card-title-link color-primary weight-regular hover-color-secondary" href="{{ post.url | url }}">{{ post.data.title }}</a></h2>
<time class="datetime color-grey text-400" datetime="{{ post.date | timestamp }}">
{{ post.date | dateDisplay }}
</time>
</div>
</article>
{% endfor %}
</div>
</div>
</main>