diff --git a/index.html b/index.html index 48dc8d3..cf9b85c 100644 --- a/index.html +++ b/index.html @@ -41,7 +41,7 @@

Pinned posts

@@ -65,7 +65,7 @@ posts.forEach(post => { const li = document.createElement('li'); const a = document.createElement('a'); - a.textContent = post.title + " | " + post.date; + a.textContent = post.title + " // " + post.date; a.href = post.type === 'html' ? 'posts/' + post.file : 'post.html?file=' + encodeURIComponent(post.file); diff --git a/posts/list.php b/posts/list.php index f26a593..6d5dba8 100644 --- a/posts/list.php +++ b/posts/list.php @@ -40,6 +40,7 @@ foreach ($files as $file) { 'title' => $title, 'type' => $ext, 'created' => $date ?: $created, + 'date' => date('F j, Y', $date ?: $created), ]; }