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 (4268B)


      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-duplicate="[% entry.link | url | html %]"
     86         >
     87           <!-- Headline -->
     88           <h3 style="margin-bottom:5px;">
     89             <a href="[% entry.link | url | html %]"
     90               target="_blank"
     91               rel="nofollow ugc"
     92             >
     93               [% entry.title | html %]
     94             </a>
     95           </h3>
     96           <!-- Information -->
     97           <div style="width:100%;margin-bottom:1em;">
     98             <em style="margin-right:0.25em;color:var(--border);">
     99               <!--DOMAIN src="[% entry.link | url | html %]">-->
    100             </em>
    101             [% IF entry.issued %]
    102             <em style="margin-left:0.25em;color:var(--border);">
    103               [% entry.issued | html %]
    104             </em>
    105             [% END %]
    106           </div>
    107           <!-- Content -->
    108           <div class="article_content">
    109             [% IF entry.summary.body %]
    110               <!--start-->[% entry.summary.body  %]<!--end-->
    111             [% ELSE %]
    112               <!--start-->[% entry.content.body %]<!--end-->
    113             [% END %]
    114           </div>
    115         </section>
    116         [% END %]
    117 
    118     </main>
    119 
    120     <footer>
    121       <h4>Disclaimer:</h4>
    122       <p>
    123         The news headlines, content or attitudes of the editors and authors of
    124         the news outlets, blogs and newspapers featured here do not necessarily
    125         reflect the opinions and attitudes of the operators of this
    126         <em>Newsplanet</em> instance and this website. <em>Newsplanet</em> is a
    127         news aggregator that brings together content from many different
    128         sources, but has no influence on the editorial content directly.
    129       </p>
    130     </footer>
    131 
    132   </body>
    133 </html>