Skip to content

Commit

Permalink
fix: wrap value in frontmatter with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Apr 28, 2023
1 parent be4b56d commit 3f996fd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Mustache from "mustache";
import { stringifyYaml } from "obsidian";
import { Article, HighlightType, PageType } from "../api";
// import { downloadFileAsAttachment } from "../main";
import {
compareHighlightsInFile,
formatDate,
Expand All @@ -11,19 +10,19 @@ import {
} from "../util";

export const DEFAULT_TEMPLATE = `---
id: {{{id}}}
title: {{{title}}}
id: "{{{id}}}"
title: "{{{title}}}"
{{#author}}
author: {{{author}}}
author: "{{{author}}}"
{{/author}}
{{#labels.length}}
tags:
{{#labels}} - {{{name}}}
{{#labels}} - "{{{name}}}"
{{/labels}}
{{/labels.length}}
date_saved: {{{dateSaved}}}
date_saved: "{{{dateSaved}}}"
{{#datePublished}}
date_published: {{{datePublished}}}
date_published: "{{{datePublished}}}"
{{/datePublished}}
---
Expand Down

0 comments on commit 3f996fd

Please sign in to comment.