From a16b140fd65e8a41241a5946d9c54226b1ea8954 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 30 Jan 2023 23:44:24 +0000 Subject: [PATCH] move DRAFT-template into a templates directory & integrate with Obsidian --- .obsidian/core-plugins.json | 16 ++++++++++++++++ .obsidian/templates.json | 3 +++ content/blog/DRAFT-template.md | 6 ------ content/templates/DRAFT-blog-article.md | 16 ++++++++++++++++ 4 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 .obsidian/core-plugins.json create mode 100644 .obsidian/templates.json delete mode 100644 content/blog/DRAFT-template.md create mode 100644 content/templates/DRAFT-blog-article.md diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json new file mode 100644 index 0000000..ba444d6 --- /dev/null +++ b/.obsidian/core-plugins.json @@ -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" +] \ No newline at end of file diff --git a/.obsidian/templates.json b/.obsidian/templates.json new file mode 100644 index 0000000..a4dfb2c --- /dev/null +++ b/.obsidian/templates.json @@ -0,0 +1,3 @@ +{ + "folder": "content/templates" +} \ No newline at end of file diff --git a/content/blog/DRAFT-template.md b/content/blog/DRAFT-template.md deleted file mode 100644 index 47a0ab7..0000000 --- a/content/blog/DRAFT-template.md +++ /dev/null @@ -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? :-) diff --git a/content/templates/DRAFT-blog-article.md b/content/templates/DRAFT-blog-article.md new file mode 100644 index 0000000..83dc4f6 --- /dev/null +++ b/content/templates/DRAFT-blog-article.md @@ -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`