Commit 2fd33b2b authored by Yashu Mittal's avatar Yashu Mittal 👍🏻

Fix date format

parent d2e00db7
......@@ -2,5 +2,6 @@ import '~/assets/css/style.scss'
import DefaultLayout from '~/layouts/Default.vue'
export default Vue => {
Vue.use(require('vue-moment'))
Vue.component('Layout', DefaultLayout)
}
......@@ -13,7 +13,7 @@
<article :class="postClass">
<header class="post-full-header">
<section class="post-full-meta">
<time class="post-full-meta-date" :datetime="$page.post.date">{{$page.post.date}}</time>
<time class="post-full-meta-date" :datetime="$page.post.date | moment('d, MMMM YYYY')">{{ $page.post.date | moment("d, MMMM YYYY") }}</time>
<span class="date-divider">/</span>
<a
:href="'/tag/' + $page.post.tags.title"
......@@ -94,7 +94,6 @@ export default {
}
};
</script>
// Fixme the date format (format: "D MMMM YYYY")
<page-query>
query BlogPost ($path: String!) {
post (path: $path) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment