From 4f7044dc7aebb5eac6b3b63da4df7114b8683428 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 6 Dec 2020 12:39:27 +0100 Subject: [PATCH] Fix NaN bug + Move searching tag --- components/Formation.vue | 2 +- pages/blog/index.vue | 52 ++++++++++++++++++++-------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/components/Formation.vue b/components/Formation.vue index febf312..f46f555 100644 --- a/components/Formation.vue +++ b/components/Formation.vue @@ -42,7 +42,7 @@ export default { methods: { formatDate(date) { const dateFormat = new Date(date) - return this.$t('month_' + dateFormat.getMonth()) + " " + dateFormat.getFullYear() + return date === 'Today' ? 'Today' : this.$t('month_' + dateFormat.getMonth()) + " " + dateFormat.getFullYear() } } } diff --git a/pages/blog/index.vue b/pages/blog/index.vue index eb97d2b..932eb47 100644 --- a/pages/blog/index.vue +++ b/pages/blog/index.vue @@ -8,36 +8,36 @@ -

{{ $t('blog_no_posts') }}

-
-
-

{{ $t('blog_tags_search') }}

-
-
- - - -
- {{ $t('blog_tags_search_back') }} +
+

{{ $t('blog_tags_search') }}

+
+
+ + +
-
-
-
- {{ $t(tag.label.code) }} -
+ {{ $t('blog_tags_search_back') }} +
+
+
+
+ {{ $t(tag.label.code) }}
+
+

{{ $t('blog_no_posts') }}

+