+
-
+
+ —
+
{{ simpleDateFormat(article.metadata.date) }}
+ —
+ {{ simpleDateFormat(article.metadata.updated) }}
![]()
-
-
-
+
+
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index 7970d7f..773a4e9 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -4,11 +4,10 @@ import { listArticles, updateDynamicContent } from '@lib/articles'
import type { ArticleMetadata } from '@interfaces'
import { simpleDateFormat } from '@lib/dates'
import { HOME_COUNT, PROD, PUBLISHED_ON, TITLE } from '@lib/config'
-import PageFooter from '@components/PageFooter.vue'
-import { stripHTML } from '@/lib/strings'
-import NavBar from '@components/NavBar.vue'
+import { stripHTML } from '@lib/strings'
const articles = ref
([])
+const loading = ref(true)
onBeforeMount(async () => {
const newArticles = (await listArticles())
@@ -16,6 +15,7 @@ onBeforeMount(async () => {
.slice(0, HOME_COUNT)
articles.value.splice(0, articles.value.length, ...newArticles)
window.document.title = stripHTML(TITLE) + ' — Home'
+ loading.value = false
await updateDynamicContent()
})
onMounted(updateDynamicContent)
@@ -23,13 +23,12 @@ onUpdated(updateDynamicContent)
-
-
+
- {{ simpleDateFormat(metadata.date) }}
-
-
+
diff --git a/src/views/NotFoundView.vue b/src/views/NotFoundView.vue
index a19d37b..55408ad 100644
--- a/src/views/NotFoundView.vue
+++ b/src/views/NotFoundView.vue
@@ -1,18 +1,16 @@
-
-
-
-
-
+