move DRAFT-template into a templates directory & integrate with Obsidian

This commit is contained in:
Colin 2023-01-30 23:44:24 +00:00
parent 80c6ec95bd
commit a16b140fd6
4 changed files with 35 additions and 6 deletions

16
.obsidian/core-plugins.json vendored Normal file
View File

@ -0,0 +1,16 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"canvas",
"page-preview",
"templates",
"note-composer",
"command-palette",
"editor-status",
"markdown-importer",
"word-count",
"file-recovery"
]

3
.obsidian/templates.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"folder": "content/templates"
}

View File

@ -1,6 +0,0 @@
+++
title = "Template Blog Entry"
description = "remove DRAFT prefix and add a date field to link this from the index and feeds"
+++
digging around the site, huh? :-)

View File

@ -0,0 +1,16 @@
+++
title = "#todo:FILLME"
description = "#todo:FILLME"
date = {{date:YYYY-MM-DD}}
+++
#todo: remove the "DRAFT-" prefix from this filename to publish.
## instantiation (Obsidian)
1. create a new file, blog/DRAFT-YYYY-MM-DD-title
2. ctrl + P => "insert template"
## instantiation (manual)
1. `cp templates/DRAFT-blog-article.md blog/DRAFT-YYYY-MM-DD-title`