init
This commit is contained in:
commit
017bf6e067
115 changed files with 19650 additions and 0 deletions
18
templates/obsidian/new-note-cover.md
Normal file
18
templates/obsidian/new-note-cover.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<%*
|
||||
const title = await tp.system.prompt("Note title");
|
||||
if (!title) { return; }
|
||||
const slug = title.toLowerCase().replace(/[^a-z0-9\s-]/g, '').trim().replace(/\s+/g, '-');
|
||||
const publishDate = tp.date.now("YYYY-MM-DD");
|
||||
await tp.file.move(`content/notes/${tp.date.now("YYYY/MM/DD")}/${slug}`);
|
||||
tR += `---
|
||||
title: "${title}"
|
||||
publishDate: ${publishDate}
|
||||
description: ""
|
||||
cover: "./${slug}.jpg"
|
||||
coverAlt: ""
|
||||
tags: []
|
||||
draft: false
|
||||
syndication:
|
||||
---
|
||||
`;
|
||||
%>
|
||||
16
templates/obsidian/new-note.md
Normal file
16
templates/obsidian/new-note.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<%*
|
||||
const title = await tp.system.prompt("Note title");
|
||||
if (!title) { return; }
|
||||
const slug = title.toLowerCase().replace(/[^a-z0-9\s-]/g, '').trim().replace(/\s+/g, '-');
|
||||
const publishDate = tp.date.now("YYYY-MM-DD");
|
||||
await tp.file.move(`content/notes/${tp.date.now("YYYY/MM/DD")}/${slug}`);
|
||||
tR += `---
|
||||
title: "${title}"
|
||||
publishDate: ${publishDate}
|
||||
description: ""
|
||||
tags: []
|
||||
draft: false
|
||||
syndication:
|
||||
---
|
||||
`;
|
||||
%>
|
||||
17
templates/obsidian/new-post.md
Normal file
17
templates/obsidian/new-post.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<%*
|
||||
const title = await tp.system.prompt("Post title");
|
||||
if (!title) { return; }
|
||||
const slug = title.toLowerCase().replace(/[^a-z0-9\s-]/g, '').trim().replace(/\s+/g, '-');
|
||||
const publishDate = tp.date.now("YYYY-MM-DDTHH:mm:ss+01:00");
|
||||
await tp.file.move(`content/blog/posts/${tp.date.now("YYYY/MM/DD")}/${slug}`);
|
||||
tR += `---
|
||||
title: "${title}"
|
||||
description: ""
|
||||
publishDate: ${publishDate}
|
||||
tags: []
|
||||
category: general
|
||||
draft: true
|
||||
syndication:
|
||||
---
|
||||
`;
|
||||
%>
|
||||
Loading…
Add table
Add a link
Reference in a new issue