We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cce1c commit 0d7da2aCopy full SHA for 0d7da2a
__/js/main.js
@@ -1,13 +1,14 @@
1
/* Akai (pandoc HTML5 template)
2
* designer: soimort
3
- * last updated: 2017-03-24
+ * last updated: 2018-04-13
4
*/
5
6
document.addEventListener('DOMContentLoaded', function() {
7
8
// convert dates to human-readable format
9
var options = { year: 'numeric', month: 'long', day: 'numeric' },
10
date = document.getElementsByTagName('h3')[0];
11
- date.innerText = new Date(date.innerText).toLocaleDateString('en-GB', options);
+ if (date)
12
+ date.innerText = new Date(date.innerText).toLocaleDateString('en-GB', options);
13
14
});
0 commit comments