mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Add index pages for RSS/Atom roots
This commit is contained in:
parent
1266c5859b
commit
ee545502af
4 changed files with 76 additions and 5 deletions
35
www/rss/index.php
Normal file
35
www/rss/index.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?
|
||||
require_once('Core.php');
|
||||
|
||||
?><?= Template::Header(['title' => 'RSS Ebook Feeds', 'description' => 'A list of available RSS 2.0 feeds of Standard Ebooks ebooks.']) ?>
|
||||
<main>
|
||||
<article>
|
||||
<h1>RSS 2.0 feeds</h1>
|
||||
<p>RSS feeds are an alternative to Atom feeds. They contain less information than Atom feeds, but might be better supported by some RSS readers.</p>
|
||||
<ul class="feed">
|
||||
<li>
|
||||
<p><a href="/rss/new-releases">New releases</a></p>
|
||||
<p class="url"><?= SITE_URL ?>/rss/new-releases</p>
|
||||
<p>The thirty latest Standard Ebooks, most-recently-released first.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="/rss/all">All ebooks</a></p>
|
||||
<p class="url"><?= SITE_URL ?>/rss/all</p>
|
||||
<p>All Standard Ebooks, most-recently-released first.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<section id="rss-ebooks-by-subject">
|
||||
<h3>Ebooks by subject</h3>
|
||||
<ul class="feed">
|
||||
<? foreach(SE_SUBJECTS as $subject){ ?>
|
||||
<li>
|
||||
<p><a href="/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?>"><?= Formatter::ToPlainText($subject) ?></a></p>
|
||||
<p><a href="/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?>"></a></p>
|
||||
<p class="url"><?= SITE_URL ?>/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
<?= Template::Footer() ?>
|
Loading…
Add table
Add a link
Reference in a new issue