Added 'last updated' timestamp info
This commit is contained in:
parent
859a1ea212
commit
a3a4685819
2 changed files with 8 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ env.addFilter("formatDate", function(dateString) {
|
|||
return formattedDate !== 'Invalid Date' ? formattedDate : dateString;
|
||||
});
|
||||
|
||||
const buildDate = new Date();
|
||||
env.addGlobal('now', `${buildDate.toLocaleDateString()} ${buildDate.toLocaleTimeString()}` );
|
||||
|
||||
// parse XML or JSON feeds
|
||||
function parseFeed(response) {
|
||||
const contentType = response.headers.get("content-type")
|
||||
|
|
|
|||
|
|
@ -39,5 +39,10 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% 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>
|
||||
</html>
|
||||
Loading…
Reference in a new issue