From 93771ab1bce9745341b1c220203ebca6a954eb67 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 20 Jun 2022 11:45:10 -0500 Subject: [PATCH] Create new 'feeds' page to merge OPDS/RSS pages --- templates/Footer.php | 5 +---- www/css/core.css | 8 +++++++ www/feeds/index.php | 51 ++++++++++++++++++++++++++++++++++++++++++++ www/rss/index.php | 22 ------------------- 4 files changed, 60 insertions(+), 26 deletions(-) create mode 100644 www/feeds/index.php delete mode 100644 www/rss/index.php diff --git a/templates/Footer.php b/templates/Footer.php index e615cee3..342e2bb1 100644 --- a/templates/Footer.php +++ b/templates/Footer.php @@ -20,10 +20,7 @@ GitHub
  • - OPDS -
  • -
  • - RSS + Ebook Feeds
  • Content produced by or for Standard Ebooks L3C is dedicated to the public domain via the CC0 1.0 Universal Public Domain Dedication.

    diff --git a/www/css/core.css b/www/css/core.css index 42a07064..74eb92fa 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -2475,6 +2475,14 @@ aside button.close:active{ transform: skewX(45deg) scale(1.05); } +ul.feed p{ + margin: 0; +} + +ul.feed p:last-child{ + font-style: italic; +} + @media (hover: none) and (pointer: coarse){ /* target ipads and smartphones without a mouse */ /* For iPad, unset the height so it matches the other elements */ select[multiple]{ diff --git a/www/feeds/index.php b/www/feeds/index.php new file mode 100644 index 00000000..58b568e6 --- /dev/null +++ b/www/feeds/index.php @@ -0,0 +1,51 @@ + 'A list of available feeds of Standard Ebooks ebooks.']) ?> +
    +
    +

    Ebook Feeds

    +

    We offers several feeds that you can use to get notified about new ebooks, or to browse and download from our catalog directly in your ereader.

    +
    +

    RSS feeds

    +

    Currently there’s only one RSS feed available.

    +
      +
    • +

      New releases (RSS 2.0)

      +

      /rss/new-releases

      +

      A list of the thirty latest Standard Ebooks ebook releases, most-recently-released first.

      +
    • +
    +
    +
    +

    OPDS feeds

    +

    OPDS feeds are designed for use with ereading systems like KOreader or Calibre, or with ereaders like Foliate. They allow you to search, browse, and download from our catalog, directly in your ereader.

    + +
    +

    OPDS how-tos and resources

    + +
    +
    +
    +
    + diff --git a/www/rss/index.php b/www/rss/index.php deleted file mode 100644 index 020878e2..00000000 --- a/www/rss/index.php +++ /dev/null @@ -1,22 +0,0 @@ - 'A list of available RSS feeds of Standard Ebooks ebooks.']) ?> -
    -
    -

    RSS Feeds

    -

    Currently there is only one RSS feed available:

    -
      -
    • -

      New releases: A list of the 30 latest Standard Ebooks ebook releases, most-recently-released first.

      -
    • -
    - -

    You may also be interested in our OPDS feed, which is designed for use with ebook libraries like Calibre:

    - -
    -
    -