Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown content front matter, use createdAt and updatedAt like Nuxt does #69

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/blog/BlogListModelByYear.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
path: content.path,
meta: {
locale: content.locale ? content.locale : 'en-CA',
date: content.date,
date: content.createdAt,
},
}"
class="font-serif text-xl italic no-underline"
Expand Down
10 changes: 5 additions & 5 deletions components/global/AppContentDate.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<time v-if="content.date" :datetime="datetime" :title="textual">
<time v-if="content.createdAt" :datetime="datetime" :title="textual">
{{ yyyymmdd }}
</time>
</template>
Expand Down Expand Up @@ -35,7 +35,7 @@
},
computed: {
yyyymmdd(): string {
const { date } = this.content
const date = this.content?.createdAt
let out = ''
if (date) {
const first = date.split('T')[0]
Expand All @@ -44,8 +44,8 @@
return out
},
datetime(): string {
const { date } = this.content
return date
const createdAt = this.content?.createdAt
return createdAt
},
textual(): string {
return this.formatDate({
Expand All @@ -60,7 +60,7 @@
let out = ''
try {
const locale = this.content?.locale ?? 'fr-CA'
out = this.content?.date ?? ''
out = this.content?.createdAt ?? ''
const { temporalDate = '' } = getPrettyfiedTemporalDate(
this.content,
locale,
Expand Down
4 changes: 2 additions & 2 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: À propos
locale: fr-CA
created: 2009-07-09
updated: 2023-02-18
createdAt: 2009-07-09
updatedAt: 2023-02-18
canonical: https://renoirboulanger.com/about/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2005/09/first-post.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Premier billet
locale: fr-CA
created: 2005-09-16
updated: 2017-11-10
createdAt: 2005-09-16
updatedAt: 2017-11-10
canonical: 'https://renoirboulanger.com/blog/2005/09/first-post/'
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2005/09/journee-blanche-d-inquietudes.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Journée blanche d’inquiétudes
locale: fr-CA
created: 2005-09-23
updated: 2023-11-15
createdAt: 2005-09-23
updatedAt: 2023-11-15
canonical: https://renoirboulanger.com/blog/2005/09/journee-blanche-d-inquietudes/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2005/09/redondance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: >-
Redondance des serveurs : stratégie pour améliorer la résilience des sites web
locale: fr-CA
created: 2005-09-21
updated: 2023-11-15
createdAt: 2005-09-21
updatedAt: 2023-11-15
canonical: https://renoirboulanger.com/blog/2005/09/redondance/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2005/12/detection-langue.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Detection de langue en PHP
locale: fr-CA
created: 2005-12-22
updated: 2024-08-08
createdAt: 2005-12-22
updatedAt: 2024-08-08
canonical: https://renoirboulanger.com/blog/2005/12/detection-langue/
status: publish
revising: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Une erreur de manipulation qui a coûté
locale: fr-CA
created: 2006-06-10
updated: 2023-11-15
createdAt: 2006-06-10
updatedAt: 2023-11-15
canonical: >-
https://renoirboulanger.com/blog/2006/06/une-erreur-de-manipulation-qui-a-coute/
status: publish
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2006/07/transactions-carte-credit.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Transactions carte credit
locale: fr-CA
created: 2006-07-14
updated: 2009-08-14
createdAt: 2006-07-14
updatedAt: 2009-08-14
canonical: https://renoirboulanger.com/blog/2006/07/transactions-carte-credit/
status: publish
revising: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Installer VMWare sur Ubuntu server avec le repositoire de Canonical
locale: fr-CA
created: 2006-12-21
updated: 2006-12-25
createdAt: 2006-12-21
updatedAt: 2006-12-25
canonical: 'https://renoirboulanger.com/blog/2006/12/installer-vmware-sur-ubuntu-server-avec-le-repositoire-de-canonical/'
status: publish
revising: false
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/01/le-futur-du-pc.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Le futur du PC
locale: fr-CA
created: 2007-01-25
updated: 2009-08-27
createdAt: 2007-01-25
updatedAt: 2009-08-27
canonical: https://renoirboulanger.com/blog/2007/01/le-futur-du-pc/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/02/conversion-et-resampling-image.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Conversion et resampling image
locale: fr-CA
created: 2007-02-21
updated: 2013-03-27
createdAt: 2007-02-21
updatedAt: 2013-03-27
canonical: https://renoirboulanger.com/blog/2007/02/conversion-et-resampling-image/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/02/une-machine-virtuelle-gentoo.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Une machine virtuelle Gentoo
locale: fr-CA
created: 2007-02-10
updated: 2013-03-27
createdAt: 2007-02-10
updatedAt: 2013-03-27
canonical: https://renoirboulanger.com/blog/2007/02/une-machine-virtuelle-gentoo/
status: publish
revising: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ canonical: >-
status: publish
revising: true
migrateCode: true
created: '2007-04-16'
updated: '2013-03-27'
createdAt: '2007-04-16'
updatedAt: '2013-03-27'
tags:
- linux
- tutoriels
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/04/login-ssh-sans-mot-de-passe.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: https://renoirboulanger.com/blog/2007/04/login-ssh-sans-mot-de-passe/
status: publish
revising: true
migrateCode: true
created: '2007-04-10'
updated: '2013-03-27'
createdAt: '2007-04-10'
updatedAt: '2013-03-27'
tags:
- linux
- tutoriels
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/04/periode-de-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ migrateLinks: false
migrateImages: false
gallery: false
caption: false
created: '2007-04-25'
updated: '2013-03-27'
createdAt: '2007-04-25'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/05/critique-de-roman-deception-point.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Critique de Roman Deception point
canonical: https://renoirboulanger.com/blog/2007/05/critique-de-roman-deception-point/
status: publish
revising: true
created: '2007-05-28'
updated: '2013-03-27'
createdAt: '2007-05-28'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/05/critique-de-roman-forteresse-digitale.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: >-
https://renoirboulanger.com/blog/2007/05/critique-de-roman-forteresse-digitale/
status: publish
revising: true
created: '2007-05-12'
updated: '2013-03-27'
createdAt: '2007-05-12'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/05/invitalisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Invitalisation
canonical: https://renoirboulanger.com/blog/2007/05/invitalisation/
status: publish
revising: true
created: '2007-05-19'
updated: '2013-03-27'
createdAt: '2007-05-19'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Montage de dossiers distants via SSHFS
locale: fr-CA
created: 2007-05-31
updated: 2013-03-27
createdAt: 2007-05-31
updatedAt: 2013-03-27
canonical: >-
https://renoirboulanger.com/blog/2007/05/montage-de-dossiers-distants-via-sshfs/
status: publish
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/06/critique-de-roman-le-davinci-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: https://renoirboulanger.com/blog/2007/06/critique-de-roman-le-davinci
status: publish
revising: true
caracteresBizzares: true
created: '2007-06-13'
updated: '2013-03-27'
createdAt: '2007-06-13'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ gallery: false
migrateCode: true
migrateImages: false
migrateLinks: true
created: '2007-06-14'
updated: '2013-03-27'
createdAt: 2007-06-14
updatedAt: 2013-03-27
tags:
- linux
- tutoriels
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: 'Microsoft Internet Explorer 6, une mise-à-jour obligatoire, SVP.'
locale: fr-CA
created: 2007-06-12
updated: 2013-03-27
createdAt: 2007-06-12
updatedAt: 2013-03-27
canonical: https://renoirboulanger.com/blog/2007/06/internet-explorer-6-un-upgrade-obligatoire-svp/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/06/une-boite-qui-traine.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Une boîte qui traîne
locale: fr-CA
created: 2007-06-26
updated: 2013-03-27
createdAt: 2007-06-26
updatedAt: 2013-03-27
canonical: https://renoirboulanger.com/blog/2007/06/une-boite-qui-traine/
status: publish
revising: true
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/08/farenheit-911-et-mes-impressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Le film Farenheit 9/11 de Michael More et mes impressions
canonical: https://renoirboulanger.com/blog/2007/08/farenheit-911-et-mes-impressions/
status: publish
revising: true
created: '2007-08-21'
updated: '2013-03-27'
createdAt: '2007-08-21'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/08/un-equivalent-open-du-iphone.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: https://renoirboulanger.com/blog/2007/08/un-equivalent-open-du-iphone
status: publish
revising: true
caracteresBizzares: true
created: '2007-08-14'
updated: '2013-03-27'
createdAt: '2007-08-14'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ canonical: >-
status: publish
revising: true
images: true
created: '2007-09-06'
updated: '2013-03-27'
createdAt: '2007-09-06'
updatedAt: '2013-03-27'
tags: []
categories: []
coverImage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ canonical: >-
status: publish
revising: true
migrateCode: true
created: '2007-09-25'
updated: '2013-03-27'
createdAt: '2007-09-25'
updatedAt: '2013-03-27'
tags:
- linux
- outils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ canonical: >-
status: publish
revising: true
caracteresBizzares: true
created: '2007-09-28'
updated: '2013-03-27'
createdAt: '2007-09-28'
updatedAt: '2013-03-27'
tags:
- linux
- outils
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/09/quelques-blogs-que-je-lis-frequemment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: >-
https://renoirboulanger.com/blog/2007/09/quelques-blogs-que-je-lis-frequemment/
status: publish
revising: true
created: '2007-09-18'
updated: '2013-03-27'
createdAt: '2007-09-18'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/09/revue-de-dont-make-me-think.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: https://renoirboulanger.com/blog/2007/09/revue-de-dont-make-me-think/
status: publish
revising: true
images: true
created: '2007-09-07'
updated: '2013-03-27'
createdAt: '2007-09-07'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ canonical: >-
status: publish
revising: true
images: true
created: '2007-10-12'
updated: '2013-03-27'
createdAt: '2007-10-12'
updatedAt: '2013-03-27'
tags:
- integration
- usability
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2007/10/ideologie-inboxzero.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: https://renoirboulanger.com/blog/2007/10/ideologie-inboxzero/
status: publish
revising: true
caracteresBizzares: true
created: '2007-10-15'
updated: '2013-03-27'
createdAt: '2007-10-15'
updatedAt: '2013-03-27'
tags: []
categories: []
excerpt: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ canonical: >-
https://renoirboulanger.com/blog/2007/10/tunnel-ssh-avec-session-distante-en-console-vmware/
status: publish
revising: true
created: '2007-10-03'
updated: '2013-03-27'
createdAt: '2007-10-03'
updatedAt: '2013-03-27'
tags:
- linux
- securite
Expand Down
Loading
Loading