Skip to content

Error retrieving item data: Unexpected end of json input #187

Answered by tallguyjenks
ChengYuChuan asked this question in Q&A
Discussion options

You must be logged in to vote

to start, at the top of the template file, change:

<%"---"%>
tags: 📥️/📜️/🟥️
publish: true
aliases: 
  - {{title}}
  - {{citekey}}
<%"---"%>

<%*
	let title = "{{title}}";
	let date = tp.date.now("YYYY-MM-DD");
	await tp.file.rename(`& ${date} ${title}`);
_%>

to

<%"---"%>
tags: 📥️/📜️/🟥️
publish: true
aliases: 
  - {{title | replace(":", "") | replace("#", "") | replace("^", "") | replace("|", "") | replace("\[", "") | replace("\]", "") | replace("\\", "") | replace("/", "")}}
  - {{citekey}}
<%"---"%>

<%*
	let title = "{{title | replace(':', '') | replace('#', '') | replace('^', '') | replace('|', '') | replace('\[', '') | replace('\]', '') | replace('\\', '') | replace('/', '')}}";
	let…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ChengYuChuan
Comment options

@tallguyjenks
Comment options

Answer selected by tallguyjenks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants