Some tips for Something Like THIS
Some tips for Something Like THIS
Some tips I found when troubleshooting this place.
Template
Sharing is caring. I use the Templater plugin to generate 99% of my notes and I modified it a bit to handle the garden.
Some limitations I found are that changing the note name will not update the rest of the template onces built (obviously). To mitigate this, I force to include the note name since the beginning. Here is the template:
---
<%* let noteTitle = tp.file.title; noteTitle = await tp.system.prompt("Enter note title"); await tp.file.rename(noteTitle);%>
id: <% noteTitle.replace(/\s+/g, '_') %>
created_date: <% tp.file.creation_date('YYYY-MM-DD') %>
updated_date: <% tp.file.creation_date('YYYY-MM-DD') %>
type: note
tags:
dg-publish: false
dg-pinned: true
title: "<%*const titleWithoutNumbers = /^\\d{3}/.test(noteTitle) ? noteTitle.slice(4) : noteTitle; tR += titleWithoutNumbers;%>"
---
# <% noteTitle %>
The dg-pinned is to include the note above the folders, which I would like by default.
The title is taking out some of the numbers I include in my notes to order them; because w/o plugins Obsidian order things on the tree as shit. In any case I usually order them afterwards with another plugin. I don't want the numbers in my garden.
Deployment
Many times the deployment will fail. Usually it will fail because the file path is duplicated.
Delete the note from Github and redeploy it. Simple.
Random Tips
- To take out some notes to the root of your garden: use this from the docs
- To add a comment section: read this from the docs