Add statics

This commit is contained in:
Andros Fenollosa 2021-07-19 00:00:10 +02:00
parent ffadc71ab4
commit b18d7a396a
9 changed files with 37 additions and 22 deletions

View File

@ -23,9 +23,11 @@ jobs:
run: | run: |
rm -rf docs/index.html rm -rf docs/index.html
mv dist/index.html docs mv dist/index.html docs
cp -rf resources/static/ docs
git config user.email "action@github.com" git config user.email "action@github.com"
git config user.name "GitHub Action" git config user.name "GitHub Action"
git add docs/index.html git add docs/index.html
git commit -m "$(date +"%F")" git add docs/static/
git commit -m "$(date +"%F")"
git push origin main git push origin main

BIN
newsreader-logo.xcf Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

View File

@ -0,0 +1,32 @@
{
"name": "RSSPaper",
"short_name": "RSSPaper",
"theme_color": "#ffffff",
"icons": [
{
"src": "./static/img/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "./static/img/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "./static/img/icons/android-chrome-maskable-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./static/img/icons/android-chrome-maskable-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"start_url": ".",
"display": "standalone",
"background_color": "#ffffff"
}

View File

@ -3,8 +3,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="manifest" href="manifest.json" /> <link rel="manifest" href="static/manifest.json" />
<link rel="icon" type="image/png" href="img/icons/default.png"> <link rel="icon" type="image/png" href="static/img/icons/default.png">
<meta name="theme-color" content="#3c790a"> <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="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="author" content="Tu nombre">
@ -283,9 +283,6 @@
<h2 class="article__feed"><a target="_blank" href="{{ article.feed.link }}">{{ article.feed.title }}</a> <span class="article__date">{{ article.published-date-formatter }}</span></h2> <h2 class="article__feed"><a target="_blank" href="{{ article.feed.link }}">{{ article.feed.title }}</a> <span class="article__date">{{ article.published-date-formatter }}</span></h2>
</div> </div>
</header> </header>
<main class="container article__main">
{{ article.description.value|safe }}
</main>
</article> </article>
{% endfor %} {% endfor %}
</main> </main>
@ -296,21 +293,5 @@
Generated with <a class="footer__link" href="https://github.com/tanrax/RSSpaper">RSSpaper</a> and a lot of <span class="footer__heard">❤️</span> Generated with <a class="footer__link" href="https://github.com/tanrax/RSSpaper">RSSpaper</a> and a lot of <span class="footer__heard">❤️</span>
</p> </p>
</footer> </footer>
<script defer>
function getRandomNumber(min, max) {
return Math.random() * (max - min) + min;
}
function getRandomHexColor() {
return '#'.concat(Math.floor(Math.random() * 16777215).toString(16));
}
// Random background
document.querySelectorAll('.article__random-background').forEach((canvas) => {
canvas.style.backgroundImage = `linear-gradient(${getRandomNumber(0, 360)}deg, ${getRandomHexColor()}, ${getRandomHexColor()})`;
});
</script>
</body> </body>
</html> </html>