Don't save errant thoughts
This commit is contained in:
parent
9e9a9cf359
commit
7052689860
1 changed files with 10 additions and 9 deletions
|
@ -3,14 +3,15 @@ import { DateTime } from 'luxon';
|
|||
export default {
|
||||
date: 'git Created',
|
||||
type: 'thought',
|
||||
permalink: function ({ page }) {
|
||||
// console.log(arguments);
|
||||
const { date, fileSlug, outputFileExtension } = page;
|
||||
const today = DateTime.fromJSDate(date).toUTC();
|
||||
permalink: false,
|
||||
// permalink: function ({ page }) {
|
||||
// // console.log(arguments);
|
||||
// const { date, fileSlug, outputFileExtension } = page;
|
||||
// const today = DateTime.fromJSDate(date).toUTC();
|
||||
|
||||
return `/thought/${today.year}/${String(today.month).padStart(2, '0')}/${String(today.day).padStart(
|
||||
2,
|
||||
'0'
|
||||
)}/${fileSlug}.${outputFileExtension}`;
|
||||
},
|
||||
// return `/thought/${today.year}/${String(today.month).padStart(2, '0')}/${String(today.day).padStart(
|
||||
// 2,
|
||||
// '0'
|
||||
// )}/${fileSlug}.${outputFileExtension}`;
|
||||
// },
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue