mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-27 18:30:32 +01:00
Implement nuxt-content
This commit is contained in:
@@ -41,8 +41,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
formatDate(date) {
|
||||
const dateFormat = new Date(date)
|
||||
return date === 'Today' ? 'Today' : this.$t('month_' + dateFormat.getMonth()) + " " + dateFormat.getFullYear()
|
||||
const dateFormat = date.split('-')
|
||||
return date === 'Today' ? 'Today' : this.$t('month.' + dateFormat[0]) + " " + dateFormat[1]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user