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 {
|
export default {
|
||||||
date: 'git Created',
|
date: 'git Created',
|
||||||
type: 'thought',
|
type: 'thought',
|
||||||
permalink: function ({ page }) {
|
permalink: false,
|
||||||
// console.log(arguments);
|
// permalink: function ({ page }) {
|
||||||
const { date, fileSlug, outputFileExtension } = page;
|
// // console.log(arguments);
|
||||||
const today = DateTime.fromJSDate(date).toUTC();
|
// 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(
|
// return `/thought/${today.year}/${String(today.month).padStart(2, '0')}/${String(today.day).padStart(
|
||||||
2,
|
// 2,
|
||||||
'0'
|
// '0'
|
||||||
)}/${fileSlug}.${outputFileExtension}`;
|
// )}/${fileSlug}.${outputFileExtension}`;
|
||||||
},
|
// },
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue