diff options
author | Alexis Hovorka <[email protected]> | 2022-10-25 16:38:14 -0600 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2022-10-25 16:38:14 -0600 |
commit | c2dc2e772e76a0baebf5e8042e5cdd3889bdd6cd (patch) | |
tree | 2d93c25e72a079b2ab27624173482c1ba08f73c9 | |
parent | abe43ca47608a5274085240e73597eda969fb829 (diff) |
[fix] Patch up a couple oversights
-rw-r--r-- | posts/tags.njk | 2 | ||||
-rw-r--r-- | static/main.js | 2 | ||||
-rw-r--r-- | static/style.css | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/posts/tags.njk b/posts/tags.njk index cba0555..f984630 100644 --- a/posts/tags.njk +++ b/posts/tags.njk @@ -21,6 +21,8 @@ eleventyComputed: {% for post in taglist | reverse %} <section> <h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2> + {%- set postDate = post.date.toISOString().slice(0,10) %} + <p class="post-date"><time datetime="{{ postDate }}">{{ postDate }}</time></p> {{ post | excerpt | safe }} </section> <hr> diff --git a/static/main.js b/static/main.js index 002a4fe..317bd18 100644 --- a/static/main.js +++ b/static/main.js @@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", () => { [...d[q]("mark")].forEach(e => e.tabIndex = "-1"); // Trigger like button animation - d.querySelector("#like-post").addEventListener("click", function() { + d.querySelector("#like-post")?.addEventListener("click", function() { setTimeout(() => this[l].remove("like-anim"), 700); this[l].add("like-anim"); this[l].add("liked"); diff --git a/static/style.css b/static/style.css index 0fbbc9e..3e981ff 100644 --- a/static/style.css +++ b/static/style.css @@ -333,7 +333,6 @@ pre { padding: 0 2rem; background: #e6e6e6; overflow-x: auto; - line-height: 1em; } kbd { |