forked from HPR/hpr_generator
add site-newdesign configuration that generates the new design
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!--% PROCESS 'shared-avatar.tpl.html' %-->
|
||||
<article>
|
||||
<h2 class="title">Correspondents</h2>
|
||||
<p>For more information on how to become a Correspondent see our <a href="<!--% absolute_url(baseurl) %-->about.html#so_you_want_to_record_a_podcast">contribute</a></center> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.<p />
|
||||
<p>For more information on how to become a Correspondent see our <a href="<!--% absolute_url(baseurl) %-->about.html#so_you_want_to_record_a_podcast">contribute</a> page. To add a logo here, either email one to admin at hpr or setup your email on <a href="https://en.gravatar.com/">Gravatar</a>. To protect your browsing privacy we gather the images every hour and serve them directly from HPR.</p>
|
||||
<!--% USE DBI(constants.driver) %-->
|
||||
<!--% host_cnt = 0 %-->
|
||||
<table class="hosts">
|
||||
|
98
templates/content-index-newdesign.tpl.html
Normal file
98
templates/content-index-newdesign.tpl.html
Normal file
@@ -0,0 +1,98 @@
|
||||
<!--% PROCESS 'shared-avatar.tpl.html' %-->
|
||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||
<!--% PROCESS 'shared-listen-now.tpl.html' %-->
|
||||
<!--% PROCESS 'shared-show-transcript.tpl.html' %-->
|
||||
<!--% PROCESS 'shared-call_for_shows.tpl.html' %-->
|
||||
<!--% INCLUDE 'content-index-announcement.tpl.html' %-->
|
||||
<!--% PROCESS "queries-index.tpl.html" %-->
|
||||
<!--% MACRO tidy_notes(all_lines) BLOCK %-->
|
||||
<!--% lines = all_lines %-->
|
||||
<!--% after_html = all_lines %-->
|
||||
<!--% img_re = '(?six)^(.*?)\<img ([^\>]+\>)(.+)$' %-->
|
||||
<!--% lazy_re = '(?i)loading="lazy"' %-->
|
||||
<!--% WHILE (matches = lines.match(img_re)) %-->
|
||||
<!--% img_tag = matches.1 %-->
|
||||
<!--% after_html = matches.2 %-->
|
||||
<!--% matches.0 %-->
|
||||
<!--% IF (img_tag.search(lazy_re)) %-->
|
||||
<img <!--% img_tag %-->
|
||||
<!--% ELSE %-->
|
||||
<img loading="lazy" <!--% img_tag %-->
|
||||
<!--% END %-->
|
||||
<!--% lines = after_html %-->
|
||||
<!--% END %-->
|
||||
<!--% after_html %-->
|
||||
<!--% END %-->
|
||||
|
||||
<section class="welcome">
|
||||
<!--% days_till_next_episode = 0 %-->
|
||||
<!--% USE DBI(constants.driver) %-->
|
||||
<!--% USE date %-->
|
||||
<!--% calc = date.calc %-->
|
||||
<!--% episodes = DBI.query(query_next_available_episode).get_all() %-->
|
||||
<!--% last_date = episodes.0.date.split('-') %-->
|
||||
<!--% offset = (calc.Day_of_Week(last_date.0,last_date.1,last_date.2) == 5 ? 3 : 1) %-->
|
||||
<!--% slot_date = calc.Add_Delta_Days(last_date.0,last_date.1,last_date.2,offset) %-->
|
||||
<!--% now = calc.Today() %-->
|
||||
<!--% days_till_next_episode = calc.Delta_Days(now.0,now.1,now.2,slot_date.0,slot_date.1,slot_date.2) %-->
|
||||
<!--% delta = date.calc.N_Delta_YMD(2005,9,19, date.format(date.now, '%Y'),date.format(date.now, '%m'),date.format(date.now, '%d')) %-->
|
||||
|
||||
<h2>Welcome</h2>
|
||||
<p>Hacker Public Radio is a podcast that releases shows every weekday Monday to Friday. The shows are contributed by the public and can be on any topic that is of interest to hackers, makers, hobbyists, etc.</p>
|
||||
<p>We started producing shows as <a href="<!--% absolute_path(baseurl) %-->eps/index.html#twt_episodes"><em>Today with a Techie</em></a> on 2005-09-19, <!--% delta.0 %--> years, <!--% delta.1 %--> months, <!--% delta.2 %--> days ago. Our shows are produced by <a href="<!--% absolute_path(baseurl) %-->correspondents/index.html">listeners</a> like you and can be on any <a href="<!--% absolute_path(baseurl) %-->eps/index.html">topics</a> that <strong>"are of interest to <a href="https://en.wikipedia.org/wiki/hacker_(hobbyist)">hackers</a>"</strong>. If you listen to HPR then please consider contributing one show a year. If you <a href="<!--% absolute_url(baseurl) %-->about.html#so_you_want_to_record_a_podcast">record</a> your show now it could be <a href="<!--% hub_baseurl %-->calendar.php">released</a> in <strong><!--% days_till_next_episode %--></strong> days.</p>
|
||||
</section>
|
||||
|
||||
<!--% display_call_for_shows() %-->
|
||||
|
||||
<h2>Podcast</h2>
|
||||
<section class="podcast">
|
||||
<a class="podcast record" href="<!--% absolute_url(baseurl) %-->about.html#so_you_want_to_record_a_podcast">
|
||||
<p>Record</p>
|
||||
</a>
|
||||
<a class="podcast schedule" href="<!--% hub_baseurl %-->calendar.php">
|
||||
<p>Schedule</p>
|
||||
</a>
|
||||
<a class="podcast subscribe" href="<!--% absolute_path(baseurl) %-->syndication.html">
|
||||
<p>Subscribe</p>
|
||||
</a>
|
||||
<a class="podcast listen" href="<!--% absolute_path(baseurl) %-->eps/index.html">
|
||||
<p>Listen</p>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<h2>Project</h2>
|
||||
<section class="project">
|
||||
<a class="project host" href="<!--% absolute_path(baseurl) %-->correspondents/index.html">
|
||||
<p>Hosts</p>
|
||||
</a>
|
||||
<a class="project series" href="<!--% absolute_path(baseurl) %-->series/index.html">
|
||||
<p>Series</p>
|
||||
</a>
|
||||
<a class="project about" href="<!--% absolute_path(baseurl) %-->about.html">
|
||||
<p>About</p>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<div class="column-container">
|
||||
<section class="episodes">
|
||||
<h2>Latest Episodes</h2>
|
||||
<ul>
|
||||
<!--% host_cnt = 0 %-->
|
||||
<!--% FOREACH latest_episodes IN DBI.query(query_latest_episodes) %-->
|
||||
<li><a href="<!--% absolute_path(baseurl) %-->eps/hpr<!--% zero_pad_left(latest_episodes.id) %-->/index.html">hpr<!--% latest_episodes.id %--> :: <!--% latest_episodes.title %--></a></li>
|
||||
<!--% host_cnt = host_cnt + 1 %-->
|
||||
<!--% END %-->
|
||||
</ul>
|
||||
<p><a href="<!--% absolute_path(baseurl) %-->eps/index.html">View all episodes</a></p>
|
||||
</section>
|
||||
|
||||
<section class="comments">
|
||||
<h2>Latest Comments</h2>
|
||||
<ul>
|
||||
<!--% FOREACH last_5_weeks_episodes IN DBI.query(query_last_5_weeks_episodes).slice(0,4) %-->
|
||||
<li><!--% show_summary(last_5_weeks_episodes) %--></li>
|
||||
<!--% END %-->
|
||||
</ul>
|
||||
<p><a href="<!--% absolute_path(baseurl) %-->comments_viewer.html">View all comments</a></p>
|
||||
</section>
|
||||
</div>
|
2
templates/navigation-newdesign.tpl.html
Normal file
2
templates/navigation-newdesign.tpl.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||
<!-- Simple navigation for new design - content is handled in the main page template -->
|
61
templates/page-newdesign.tpl.html
Normal file
61
templates/page-newdesign.tpl.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!--% PROCESS 'shared-utils.tpl.html' %-->
|
||||
<!--% USE date %-->
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Hacker Public Radio ~ The Technology Community Podcast</title>
|
||||
<!--% IF baseurl %-->
|
||||
<base href="<!--% baseurl %-->">
|
||||
<!--% END %-->
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
|
||||
<meta http-equiv="last-modified" content="<!--% format_feed_date(date.now) %-->">
|
||||
<meta name="keywords" content="Technology, Tech News, Education, Training" />
|
||||
<meta name="description" content="Hacker Public Radio is a podcast that releases shows every weekday Monday through Friday. Our shows are produced by the community (you) and can be on any topic that is of interest to hackers and hobbyists." />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" href="<!--% absolute_url(baseurl) %-->hpr.ico" >
|
||||
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio Opus RSS" href="<!--% absolute_path(baseurl) %-->hpr_opus_rss.php" />
|
||||
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio Ogg Vorbis RSS" href="<!--% absolute_path(baseurl) %-->hpr_ogg_rss.php" />
|
||||
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio MP3 RSS" href="<!--% absolute_path(baseurl) %-->hpr_mp3_rss.php" />
|
||||
<link rel="alternate" type="application/rss+xml" title="Hacker Public Radio Comments RSS" href="<!--% absolute_path(baseurl) %-->comments.rss" />
|
||||
<link rel="license" title="CC BY-SA 4.0" href="https://creativecommons.org/licenses/by-sa/4.0/" />
|
||||
<link href="<!--% absolute_path(baseurl) %-->css/new-design.css" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.5, user-scalable=yes"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="menu">
|
||||
<button class="hamburger" id="hamburger-menu" aria-label="Toggle navigation menu">
|
||||
<img src="<!--% absolute_path(baseurl) %-->icons/menu-line.svg" class="menu-icon" alt="Menu" />
|
||||
<img src="<!--% absolute_path(baseurl) %-->icons/close-line.svg" class="close-icon" alt="Close" style="display: none;" />
|
||||
</button>
|
||||
<div class="menu-links" id="menu-links">
|
||||
<a href="<!--% absolute_path(baseurl) %-->index.html">Home</a>
|
||||
<a href="<!--% hub_baseurl %-->calendar.php">Upload</a>
|
||||
<a href="<!--% absolute_path(baseurl) %-->syndication.html">Download</a>
|
||||
<a href="<!--% absolute_path(baseurl) %-->about.html">About</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<header class="banner title">
|
||||
<img class="banner-image" src="<!--% absolute_path(baseurl) %-->images/logo.png" alt="Hacker Public Radio" aria-description="H.P.R. Hacker Public Radio https://HackerPublicRadio.org, The Community Podcast, Sharing Your Ideas, Projects, Options since 2005, New Episodes Every Weekday" usemap="#bannermap" />
|
||||
<map class="bannermap" name="bannermap">
|
||||
<area shape="rect" coords="108,187,240,343" href="<!--% absolute_path(baseurl) %-->correspondents/index.html" alt="hacker" title="hacker"/>
|
||||
<area shape="rect" coords="246,187,359,343" href="<!--% absolute_path(baseurl) %-->comments_viewer.html" alt="public" title="public" />
|
||||
<area shape="rect" coords="363,187,492,343" href="<!--% absolute_path(baseurl) %-->syndication.html" alt="radio" title="radio" />
|
||||
</map>
|
||||
</header>
|
||||
|
||||
<main id="maincontent">
|
||||
<!--% INCLUDE $content %-->
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<span>Unless otherwise stated, our shows are released under a <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.</span>
|
||||
<span>The HPR Website Design is released to the <a href="https://creativecommons.org/publicdomain/mark/1.0/" target="_blank">Public Domain</a>.</span>
|
||||
<span><em><small>This page was <a href="https://repo.anhonesthost.net/HPR/hpr_generator">generated</a> by <a href="mailto:<!--% generator_email %-->"><!--% generator_name %--></a> at <time dateTime="<!--% format_iso8601_date(date.now) %-->"><!--% format_feed_date(date.now) %--></time></small></em></span>
|
||||
</footer>
|
||||
|
||||
<script src='<!--% absolute_path(baseurl) %-->js/index.js'></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user