w5isp.com/templates/section.html
Graham McIntire c1f07190f3
Scheduled post publishing + transistor amplifier post
Filter future-dated posts out of blog/homepage listings and add a
daily 05:05 UTC rebuild so posts go live on their date automatically.

New interactive post on BJT amplification with five canvas scenes
(valve, load line, transfer curve, amplifier in action, gain).
Shared scene.css for future interactive posts. Post is dated
2026-04-23 and will appear in listings once the date arrives.

Also drop IDEAS.md with candidate topics for future posts.
2026-04-22 10:58:27 -05:00

47 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ section.title }} - {{ config.title }}{% endblock title %}
{% block content %}
<h1>{{ section.title }}</h1>
<div>
{{ section.content | safe }}
</div>
<ul class="blog">
{% set current_ts = now(timestamp=true) %}
{% for page in paginator.pages %}
{% set page_ts = page.date | date(format="%s") | int %}
{% if page_ts <= current_ts %}
<li>
<article>
<h2><a href="{{ page.permalink }}">{{ page.title }}</a></h2>
{% if page.date %}
<p>published: <time datetime="{{ page.date | date(format="%Y-%m-%d") }}">{{ page.date | date(format="%Y-%m-%d") }}</time></p>
{% endif %}
{% if page.taxonomies.tags %}
<p class="tags">
tags: [
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
]
{% endif %}
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</article>
</li>
{% endif %}
{% endfor %}
</ul>
<nav>
{% if paginator.previous %}
<a href="{{ paginator.previous }}">&lt; Prev</a>
{% endif %}
<span>Page {{ paginator.current_index }} of {{ paginator.number_pagers }}</span>
{% if paginator.next %}
<a href="{{ paginator.next }}">Next &gt;</a>
{% endif %}
</nav>
{% endblock content %}