...
 
Commits (2)
......@@ -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)
}
......@@ -69,7 +69,6 @@
node {
id
title
date
path
tags {
title
......
......@@ -117,7 +117,6 @@
...on Post {
id
title
date
author {
id
name
......
......@@ -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) {
......
......@@ -70,7 +70,6 @@ export default {
...on Post {
id
title
date
path
image
author {
......