pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

index.tt (4321B)


      1 <!-- SPDX-License-Identifier: AGPL-3.0-or-later
      2      SPDX-FileCopyrightText: 2021-2025 JayVii <jayvii[AT]posteo[DOT]de>
      3 -->
      4 
      5 <!DOCTYPE html>
      6 <html>
      7   <head>
      8     <meta charset="utf-8">
      9     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     10     <title>[% feed.title %]</title>
     11     <meta name="description" content="[% feed.description %]">
     12     [% IF feed.author %]
     13     <meta name="author" content="[% feed.author %]">
     14     [% END %]
     15     <link rel="icon" type="image/png" href="assets/favicon.png">
     16     <link rel="icon" type="image/png" sizes="16x16"
     17       href="assets/favicon_16.png"
     18     />
     19     <link rel="icon" type="image/png" sizes="32x32"
     20       href="assets/favicon_32.png"
     21     />
     22     <link rel="icon" type="image/png" sizes="64x64"
     23       href="assets/favicon_64.png"
     24     />
     25     <link rel="icon" type="image/png" sizes="128x128"
     26       href="assets/favicon_128.png"
     27     />
     28     <link rel="apple-touch-icon" href="assets/favicon.png">
     29     <link rel="stylesheet" type="text/css" href="assets/css/simple.min.css">
     30     <link rel="stylesheet" type="text/css" href="assets/css/custom.css">
     31     <link rel="alternate" title="[%feed.title %]" type="application/atom+xml"
     32       href="<!--XML-->"
     33     />
     34     <link rel="alternate" title="[%feed.title %]" type="application/opml+xml"
     35       href="<!--OPML-->"
     36     />
     37     <link crossorigin="use-credentials" rel="manifest" href="<!--MANIFEST-->">
     38     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     39     <meta name="robots" content="noindex">
     40   </head>
     41 
     42   <body>
     43 
     44     <header>
     45       <nav>
     46         <!-- "Overview" -->
     47         <a href="/">Overview</a>
     48         <!-- RSS Button -->
     49         <a
     50           href="<!--XML-->"
     51           title="Subscribe to all these feeds via your own RSS reader"
     52         >RSS</a>
     53         <!-- OPML Button -->
     54         <a
     55           href="<!--OPML-->"
     56           title="Import all these feeds into your own RSS reader"
     57         >OPML</a>
     58         <!-- Privacy Policy -->
     59         <a href="https://www.jayvii.de/privacy/#newsjayviide" target="_blank">
     60           Privacy
     61         </a>
     62       </nav>
     63       <!-- Feed Title -->
     64       <h1>[% feed.title | html %]</h1>
     65       <p>[% feed.description | html %]</p>
     66     </header>
     67 
     68     <main>
     69 
     70         <!--
     71           This is updated by find-and-replace
     72           WORKAROUND: [% feed.modified %] is hardcoded to UTC
     73         -->
     74         <p>
     75           <!--UPDATED-->
     76         </p>
     77 
     78         <!-- Sub Feed Entries -->
     79         <!--SUBFEED-->
     80 
     81         <!-- Content Entries -->
     82         [% FOREACH entry IN feed.entries %]
     83         <section
     84           data-inactive="[% entry.issued | html %]"
     85           data-invisible="[% entry.issued | html %]"
     86           data-duplicate="[% entry.link | url | html %]"
     87         >
     88           <!-- Headline -->
     89           <h3 style="margin-bottom:5px;">
     90             <a href="[% entry.link | url | html %]"
     91               target="_blank"
     92               rel="nofollow ugc"
     93             >
     94               [% entry.title | html %]
     95             </a>
     96           </h3>
     97           <!-- Information -->
     98           <div style="width:100%;margin-bottom:1em;">
     99             <em style="margin-right:0.25em;color:var(--border);">
    100               <!--DOMAIN src="[% entry.link | url | html %]">-->
    101             </em>
    102             [% IF entry.issued %]
    103             <em style="margin-left:0.25em;color:var(--border);">
    104               [% entry.issued | html %]
    105             </em>
    106             [% END %]
    107           </div>
    108           <!-- Content -->
    109           <div class="article_content">
    110             [% IF entry.summary.body %]
    111               <!--start-->[% entry.summary.body  %]<!--end-->
    112             [% ELSE %]
    113               <!--start-->[% entry.content.body %]<!--end-->
    114             [% END %]
    115           </div>
    116         </section>
    117         [% END %]
    118 
    119     </main>
    120 
    121     <footer>
    122       <h4>Disclaimer:</h4>
    123       <p>
    124         The news headlines, content or attitudes of the editors and authors of
    125         the news outlets, blogs and newspapers featured here do not necessarily
    126         reflect the opinions and attitudes of the operators of this
    127         <em>Newsplanet</em> instance and this website. <em>Newsplanet</em> is a
    128         news aggregator that brings together content from many different
    129         sources, but has no influence on the editorial content directly.
    130       </p>
    131     </footer>
    132 
    133   </body>
    134 </html>