Skip to content

Instantly share code, notes, and snippets.

@emisjerry
Created September 12, 2021 02:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emisjerry/ba75ee14716df47bfb65b22336a292c8 to your computer and use it in GitHub Desktop.
Save emisjerry/ba75ee14716df47bfb65b22336a292c8 to your computer and use it in GitHub Desktop.
Template for QuickAdd (Templater)
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 1
---
created: <% tp.date.now("YYYY-MM-DD HH:mm") %>
aliases: <% tp.file.title %>
status: {{VALUE:🌱,🌞,🌲}}
tags: 
```js quickadd
let aInput = await this.quickAddApi.checkboxPrompt(
  ["blog", "yt-videos", "obsidian", "autohotkey", "windows"], 
  ["blog","yt-videos"]);
const input = aInput.join(", ");
return `  [ ${input} ]`;
```
blog: 
---

<%tp.file.title%>

<% tp.web.random_picture("1600x900", tp.file.title) %> <% tp.file.cursor (1) %>

相關連結

教學影片

<iframe width="650" height="315" src="https://www.youtube.com/embed/$$" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

##

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment