From 6d8bc4aaa236722ae214fc545ea2df6db03ed947 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sun, 8 Sep 2024 17:31:49 +0300 Subject: [PATCH] feat: new style for article headers --- CHANGELOG.md | 2 ++ src/layouts/ArticleHead.vue | 34 +++++++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e8c807..7a21bc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - The navigation bar first appears when you enter the page, as you scroll down it will disappear, and when you scroll up it will appear again (that way it won't take up space when you're reading, so you can focus on the content) +- New style for article headers + - New date format for articles (with the hour and minute) - **Depricate the `description` field for articles** diff --git a/src/layouts/ArticleHead.vue b/src/layouts/ArticleHead.vue index c5a6d12..8ba840d 100644 --- a/src/layouts/ArticleHead.vue +++ b/src/layouts/ArticleHead.vue @@ -8,7 +8,7 @@ alt="Banner" /> -
+
Last updated on {{ @@ -24,7 +24,6 @@ ) }} -

{{ frontmatter.title }}

{{ new Date(frontmatter.date).toLocaleDateString( @@ -36,6 +35,9 @@ }, ) }} + +

{{ frontmatter.title }}

+ · {{ frontmatter.author.length > 1 ? "Authors:" : "Author:" }} - · {{ readingTime }} minutes to read + {{ readingTime }} minutes to read · {{ @@ -77,8 +79,17 @@ onMounted(() => {