forked from rho_n/hpr_generator
Implement dynamic generation of last 5 weeks in index
This commit is contained in:
parent
e4565a5168
commit
d7bff1dd6a
@ -63,12 +63,25 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<h1>Previous five weeks</h1>
|
<h1>Previous five weeks</h1>
|
||||||
</header>
|
</header>
|
||||||
<h3 class="title"><a href="eps.php?id=3618">hpr3618 :: The nnn terminal file manager</a> hosted by <a href="correspondents.php?hostid=318">Archer72</a>
|
<!--% FOREACH last_5_weeks_episodes IN DBI.query('
|
||||||
|
SELECT
|
||||||
|
substr(\'0000\' || Episodes.id, -4, 4) AS [id],
|
||||||
|
CASE Episodes.is_explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS is_explicit ,
|
||||||
|
Episodes.published, Episodes.license, Episodes.title, Episodes.summary, Episodes.series, Episodes.show_notes,
|
||||||
|
substr(\'0000\' || Contributors.id, -4, 4) AS [host_id],
|
||||||
|
Contributors.handle, Contributors.email, Contributors.avatar
|
||||||
|
FROM Episodes INNER JOIN Contributors ON Episodes.correspondent_id = Contributors.id
|
||||||
|
WHERE Episodes.published BETWEEN date(\'now\', \'-35 days\') AND date(\'now\', \'-8 days\')
|
||||||
|
ORDER BY published DESC
|
||||||
|
')
|
||||||
|
%-->
|
||||||
|
<h3 class="title"><a href="episodes/hpr<!--% last_5_weeks_episodes.id %-->.html">hpr<!--% last_5_weeks_episodes.id %--> :: <!--% last_5_weeks_episodes.title %--></a> hosted by <a href="correspondents/host<!--% last_5_weeks_episodes.id %-->.html"><!--% last_5_weeks_episodes.handle %--></a>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="meta"><strong>Released:</strong> 2022-06-15. <strong>Duration:</strong> 00:07:14. <strong>Flag:</strong> Clean. <strong>Series:</strong> <a href="series.php?id=11">Lightweight Apps</a>. <br>
|
<p class="meta"><strong>Released:</strong> <!--% last_5_weeks_episodes.published %-->. <strong>Duration:</strong> 00:07:14. <strong>Flag:</strong> <!--% last_5_weeks_episodes.is_explicit %-->. <strong>Series:</strong> <a href="series.php?id=11"><!--% last_5_weeks_episodes.series %--></a>. <br>
|
||||||
<strong>Tags:</strong> <em>nnn, file manager, lightweight apps, vim, zathura, calibre</em>.<br>
|
<strong>Tags:</strong> <em>nnn, file manager, lightweight apps, vim, zathura, calibre</em>.<br>
|
||||||
The nnn terminal file manager and common uses
|
<!--% last_5_weeks_episodes.summary %-->
|
||||||
</p>
|
</p>
|
||||||
|
<!--% END %-->
|
||||||
</article>
|
</article>
|
||||||
<h1>Older Shows</h1>
|
<h1>Older Shows</h1>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user