1
0
forked from notBrad/bubo-rss

Added 'last updated' timestamp info

This commit is contained in:
George Mandis 2019-11-28 16:18:16 -08:00
parent 859a1ea212
commit a3a4685819
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,9 @@ env.addFilter("formatDate", function(dateString) {
return formattedDate !== 'Invalid Date' ? formattedDate : dateString; return formattedDate !== 'Invalid Date' ? formattedDate : dateString;
}); });
const buildDate = new Date();
env.addGlobal('now', `${buildDate.toLocaleDateString()} ${buildDate.toLocaleTimeString()}` );
// parse XML or JSON feeds // parse XML or JSON feeds
function parseFeed(response) { function parseFeed(response) {
const contentType = response.headers.get("content-type") const contentType = response.headers.get("content-type")

View File

@ -39,5 +39,10 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<hr>
<p>
Last updated {{ now }}. Powered by <a href="https://github.com/georgemandis/bubo-rss">Bubo Reader</a>, a project by <a href="https://george.mand.is">George Mandis</a>
</p>
</body> </body>
</html> </html>