mirror of
https://github.com/tanrax/RSSPAPER.git
synced 2025-01-31 08:26:03 -05:00
146 lines
4.7 KiB
HTML
146 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>{{ title }}</title>
|
||
<link rel="icon" type="image/png" href="favicon.png">
|
||
<meta name="theme-color" content="#3c790a">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
|
||
<meta name="author" content="Tu nombre">
|
||
<meta name="generator" content="RSSpaper">
|
||
<meta name="keywords" content="html, css, javascript">
|
||
<meta name="description" content="My news">
|
||
<meta property="og:image" content="img/screenshot.png">
|
||
<meta property="og:title" content="The Rock">
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:url" content="">
|
||
<meta name="twitter:card" content="summary">
|
||
<meta name="twitter:site" content="@cuenta">
|
||
<meta name="twitter:creator" content="@cuenta">
|
||
<meta property="og:image:secure_url" content="https://...">
|
||
<meta property="og:image:type" content="image/jpeg">
|
||
<meta property="og:image:width" content="400">
|
||
<meta property="og:image:height" content="300">
|
||
<meta property="og:image:alt" content="">
|
||
<!-- Normalize -->
|
||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
|
||
<!-- End Normalize -->
|
||
<!-- Fonts -->
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
|
||
<!-- End Fonts -->
|
||
<!-- CSS -->
|
||
<style>
|
||
/* Global */
|
||
:root {
|
||
--color-black: black;
|
||
}
|
||
body {
|
||
margin: 0;
|
||
padding: 0;
|
||
font-family: 'Newsreader', serif;
|
||
color: var(--color-black);
|
||
}
|
||
img, video, iframe {
|
||
width: 100%;
|
||
}
|
||
a {
|
||
color: var(--color-black);
|
||
text-decoration: none;
|
||
}
|
||
pre {
|
||
overflow-x: auto;
|
||
}
|
||
.container {
|
||
max-width: 62rem;
|
||
margin: 0 auto;
|
||
padding: 1rem;
|
||
}
|
||
|
||
.title {
|
||
text-align: center;
|
||
font-size: 4rem;
|
||
font-weight: normal;
|
||
margin-bottom: 0;
|
||
margin-top: 1rem;
|
||
}
|
||
.subtitle {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
margin-top: -1rem;
|
||
font-weight: normal;
|
||
font-size: 1.5rem;
|
||
}
|
||
.subtitle__separator {
|
||
font-size: 3rem;
|
||
font-weight: bold;
|
||
}
|
||
.separator {
|
||
border: 0;
|
||
background: var(--color-black);
|
||
height: 1px;
|
||
}
|
||
.footer__text {
|
||
text-align: center;
|
||
padding: 1rem 0;
|
||
}
|
||
.footer__link {
|
||
font-weight: bold;
|
||
}
|
||
.footer__heard {
|
||
display: inline-block;
|
||
margin-left: .3rem;
|
||
}
|
||
.article__title, .article__feed {
|
||
font-weight: normal;
|
||
}
|
||
</style>
|
||
<style media="all and (max-width: 600px)">
|
||
/* Mobile */
|
||
body {
|
||
background: red;
|
||
}
|
||
</style>
|
||
<style media="all and (min-width: 601px)">
|
||
/* Desktop */
|
||
body {
|
||
}
|
||
</style>
|
||
<!-- End CSS -->
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<header class="header">
|
||
<h1 class="title">{{ title }}</h1>
|
||
<h2 class="subtitle"><span class="subtitle__separator">~</span> <span class="subtitle__text">My static generate newspaper</span> <span class="subtitle__separator">~</span></h2>
|
||
<hr class="separator">
|
||
</header>
|
||
<main class="main">
|
||
{% for item in data %}
|
||
<section class="feed">
|
||
{% for article in item.feed.entries %}
|
||
<article class="feed__article article">
|
||
<header class="article__header">
|
||
<h1 class="article__title">{{ article.title }}</h1>
|
||
<h2 class="article__feed">{{ item.feed.title }}</h2>
|
||
</header>
|
||
<main class="article__main">
|
||
{{ article.description.value|safe }}
|
||
</main>
|
||
</article>
|
||
{% endfor %}
|
||
</section>
|
||
{% endfor %}
|
||
</main>
|
||
</div>
|
||
<footer class="footer">
|
||
<hr class="separator">
|
||
<p class="footer__text">
|
||
Generated with <a class="footer__link" href="https://github.com/tanrax/RSSpaper">RSSpaper</a> and a lot of <span class="footer__heard">❤️</span>️
|
||
</p>
|
||
</footer>
|
||
</body>
|
||
</html>
|