Skip to content

Commit

Permalink
fix: use multiline string for title and author in default template
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed May 11, 2023
1 parent bd7c77c commit c7e5daf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@ 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 c7e5daf

Please sign in to comment.