move DRAFT-template into a templates directory & integrate with Obsidian
This commit is contained in:
16
.obsidian/core-plugins.json
vendored
Normal file
16
.obsidian/core-plugins.json
vendored
Normal 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
3
.obsidian/templates.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"folder": "content/templates"
|
||||||
|
}
|
@@ -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? :-)
|
|
16
content/templates/DRAFT-blog-article.md
Normal file
16
content/templates/DRAFT-blog-article.md
Normal 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`
|
Reference in New Issue
Block a user