Skip to content

Commit

Permalink
fix: default template is in valid YAML format (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Mar 13, 2023
1 parent 5a8816b commit f9b313c
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Notes_for_Logseq.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ You should use the page template below instead of the default one
{created-at-block}- _Created at {created-at}._{end-created-at-block}
{updated-at-block}- _Last updated at {updated-at}._{end-updated-at-block}
{source-url-block}- _Source URL: []({source-url})._{end-source-url-block}
{source-url-block}- _Source URL []({source-url})._{end-source-url-block}
{tags-block}
Expand Down
4 changes: 2 additions & 2 deletions Templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This example puts the note title at the top, preceded by `#`. The tags are liste
{tags-block}
---
Tags: {tags}
Tags {tags}
---
{end-tags-block}
Expand All @@ -77,7 +77,7 @@ As a starting point, you can edit the `sampleTemplate.tmpl` default template. Do
{tags-array-block}
---
Tags: {tags-array}
Tags {tags-array}
---
{end-tags-array-block}
Expand Down
4 changes: 2 additions & 2 deletions sampleTemplate.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

{created-at-block}_Created at {created-at}._{end-created-at-block}
{updated-at-block}_Last updated at {updated-at}._{end-updated-at-block}
{source-url-block}_Source URL: []({source-url})._{end-source-url-block}
{source-url-block}_Source URL []({source-url})._{end-source-url-block}


{tags-block}
Tagged:
Tagged
```
{tags}
```
Expand Down
4 changes: 2 additions & 2 deletions sampleTemplate_logseq.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

{created-at-block}- _Created at {created-at}._{end-created-at-block}
{updated-at-block}- _Last updated at {updated-at}._{end-updated-at-block}
{source-url-block}- _Source URL: []({source-url})._{end-source-url-block}
{source-url-block}- _Source URL []({source-url})._{end-source-url-block}


{tags-block}
- Tagged:
- Tagged
-
```
{tags}
Expand Down
2 changes: 1 addition & 1 deletion sampleTemplate_tags-array.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{tags-array-block}
---
Tags: {tags-array}
Tags {tags-array}

---
{end-tags-array-block}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/templates/default-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Tag(s): {tags}
{created-at-block} Created at: {created-at}{end-created-at-block}
{updated-at-block} Updated at: {updated-at}{end-updated-at-block}
{source-url-block} Source URL: {source-url}{end-source-url-block}
{source-url-block} Source URL {source-url}{end-source-url-block}
{location-block} Where: {location}{end-location-block}
`;
2 changes: 1 addition & 1 deletion test/data/keephtml-template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Tag(s): {tags}

{created-at-block} Created at: {created-at}{end-created-at-block}
{updated-at-block} Updated at: {updated-at}{end-updated-at-block}
{source-url-block} Source URL: {source-url}{end-source-url-block}
{source-url-block} Source URL {source-url}{end-source-url-block}
{link-to-original-block} Link to original content: {link-to-original}{end-link-to-original-block}
{location-block} Where: {location}{end-location-block}

4 changes: 2 additions & 2 deletions test/data/multimeta-template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{tags-block} Tag(s): {tags}{end-tags-block}
{created-at-block} Created at: {created-at}{end-created-at-block}
{updated-at-block} Updated at: {updated-at}{end-updated-at-block}
{source-url-block} Source URL: {source-url}{end-source-url-block}
{source-url-block} Source URL {source-url}{end-source-url-block}
{notebook-block} Notebook: {notebook}{end-notebook-block}
{location-block} Where: {location}{end-location-block}

Expand All @@ -14,7 +14,7 @@

{created-at-block} Created at: {created-at}{end-created-at-block}
{updated-at-block} Updated at: {updated-at}{end-updated-at-block}
{source-url-block} Source URL: {source-url}{end-source-url-block}
{source-url-block} Source URL {source-url}{end-source-url-block}
{notebook-block} Notebook: {notebook}{end-notebook-block}
{location-block} Where: {location}{end-location-block}

2 changes: 1 addition & 1 deletion test/data/nolocation-template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Tag(s): {tags}

{created-at-block} Created at: {created-at}{end-created-at-block}
{updated-at-block} Updated at: {updated-at}{end-updated-at-block}
{source-url-block} Source URL: {source-url}{end-source-url-block}
{source-url-block} Source URL {source-url}{end-source-url-block}

2 changes: 1 addition & 1 deletion test/data/notebook-template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Tag(s): {tags}

{created-at-block} Created at: {created-at}{end-created-at-block}
{updated-at-block} Updated at: {updated-at}{end-updated-at-block}
{source-url-block} Source URL: {source-url}{end-source-url-block}
{source-url-block} Source URL {source-url}{end-source-url-block}
{notebook-block} Notebook: {notebook}{end-notebook-block}
{location-block} Where: {location}{end-location-block}

2 changes: 1 addition & 1 deletion test/data/tags-array_template.templ
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{tags-array-block}
---
Tags: {tags-array}
Tags {tags-array}

---
{end-tags-array-block}
Expand Down
2 changes: 1 addition & 1 deletion test/data/template_logseq.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

{created-at-block}- _Created at {created-at}._{end-created-at-block}
{updated-at-block}- _Last updated at {updated-at}._{end-updated-at-block}
{source-url-block}- _Source URL: []({source-url})._{end-source-url-block}
{source-url-block}- _Source URL []({source-url})._{end-source-url-block}


{tags-block}
Expand Down
2 changes: 1 addition & 1 deletion test/data/test -note with tags array.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


---
Tags: ["tag1","tag2"]
Tags ["tag1","tag2"]

---

Expand Down
4 changes: 2 additions & 2 deletions test/data/test-hugeHtml.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tag(s): #Press-column-fragments
Created at: 2015-07-27T17:57:37+01:00
Updated at: 2015-07-27T17:57:38+01:00
Source URL: http://www.theguardian.com/world/2015/jul/27/dying-for-christianity-millions-at-risk-amid-rise-in-persecution-across-the-globe
Source URL http://www.theguardian.com/world/2015/jul/27/dying-for-christianity-millions-at-risk-amid-rise-in-persecution-across-the-globe
Notebook: huge-html

---
Expand Down Expand Up @@ -346,6 +346,6 @@ View more comments

Created at: 2015-07-27T17:57:37+01:00
Updated at: 2015-07-27T17:57:38+01:00
Source URL: http://www.theguardian.com/world/2015/jul/27/dying-for-christianity-millions-at-risk-amid-rise-in-persecution-across-the-globe
Source URL http://www.theguardian.com/world/2015/jul/27/dying-for-christianity-millions-at-risk-amid-rise-in-persecution-across-the-globe
Notebook: huge-html

2 changes: 1 addition & 1 deletion test/data/test-image-dataUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

Created at: 2021-07-17T18:35:45+01:00
Updated at: 2021-07-17T23:33:56+01:00
Source URL: https://unsplash.com/photos/3ym6i13Y9LU
Source URL https://unsplash.com/photos/3ym6i13Y9LU

2 changes: 1 addition & 1 deletion test/data/test-imageWithoutSrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ Some of my qualifications may not be obvious at the moment (e.g. how can scalabi

Created at: 2020-01-13T18:38:07+00:00
Updated at: 2020-08-30T18:46:33+01:00
Source URL: https://medium.com/@nmckinnonblog/microservices-42b09caeb73d
Source URL https://medium.com/@nmckinnonblog/microservices-42b09caeb73d

2 changes: 1 addition & 1 deletion test/data/test-noteWithSourceUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ note with source-url

Created at: 2018-10-06T12:46:58+01:00
Updated at: 2018-10-06T12:46:58+01:00
Source URL: https://en.wikipedia.org/wiki/Evernote
Source URL https://en.wikipedia.org/wiki/Evernote

2 changes: 1 addition & 1 deletion test/data/test-webclip_article.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ sharer.js, passport-evernote-auth, passport-evernote, share-buttons, _yarle_\-_e

Created at: 2020-10-18T08:25:40+01:00
Updated at: 2020-10-18T08:25:40+01:00
Source URL: https://www.google.com/search?sxsrf=ALeKk03bpXQ9mBvZPr4siq9b90rD9F_scA%3A1603005812287&ei=dO2LX9qUEcX1qwGn5brgBQ&q=yarle+evernote&oq=yarle+evernote&gs_lcp=CgZwc3ktYWIQAzIECCMQJzoHCCMQsAMQJzoHCAAQsAMQQzoHCC4QsAMQQzoJCAAQsAMQBxAeOgcIABCwAxAKOgUIABDJAzoCCAA6BAgAEAo6BAguEAo6BwguEMkDEA06BggAEA0QCjoGCAAQDRAeOggIABANEAoQHjoICAAQDRAFEB46CAgAEBYQChAeOgUIIRCgAToHCAAQyQMQDToECAAQDVDdEViJKmD_MGgDcAB4AYAB7gSIAf0RkgEJMC45LjEuNS0xmAEAoAEBqgEHZ3dzLXdpesgBCsABAQ&sclient=psy-ab&ved=0ahUKEwjano6Azr3sAhXF-ioKHaeyDlwQ4dUDCA0&uact=5
Source URL https://www.google.com/search?sxsrf=ALeKk03bpXQ9mBvZPr4siq9b90rD9F_scA%3A1603005812287&ei=dO2LX9qUEcX1qwGn5brgBQ&q=yarle+evernote&oq=yarle+evernote&gs_lcp=CgZwc3ktYWIQAzIECCMQJzoHCCMQsAMQJzoHCAAQsAMQQzoHCC4QsAMQQzoJCAAQsAMQBxAeOgcIABCwAxAKOgUIABDJAzoCCAA6BAgAEAo6BAguEAo6BwguEMkDEA06BggAEA0QCjoGCAAQDRAeOggIABANEAoQHjoICAAQDRAFEB46CAgAEBYQChAeOgUIIRCgAToHCAAQyQMQDToECAAQDVDdEViJKmD_MGgDcAB4AYAB7gSIAf0RkgEJMC45LjEuNS0xmAEAoAEBqgEHZ3dzLXdpesgBCsABAQ&sclient=psy-ab&ved=0ahUKEwjano6Azr3sAhXF-ioKHaeyDlwQ4dUDCA0&uact=5

2 changes: 1 addition & 1 deletion test/data/test-webclip_bookmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Yet Another Rope Ladder from Evernote. Contribute to akosbalasko/yarle developme

Created at: 2020-10-17T16:07:59+01:00
Updated at: 2020-10-17T16:07:59+01:00
Source URL: https://github.com/akosbalasko/yarle
Source URL https://github.com/akosbalasko/yarle

2 changes: 1 addition & 1 deletion test/data/test-webclip_screenshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

Created at: 2020-10-17T16:08:28+01:00
Updated at: 2020-10-17T16:08:28+01:00
Source URL: https://github.com/akosbalasko/yarle
Source URL https://github.com/akosbalasko/yarle

2 changes: 1 addition & 1 deletion test/data/test-webclip_simplifiedarticle.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ sharer.js, passport-evernote-auth, passport-evernote, share-buttons, _yarle_\-_e

Created at: 2020-10-18T08:24:57+01:00
Updated at: 2020-10-18T08:24:57+01:00
Source URL: https://www.google.com/search?sxsrf=ALeKk03bpXQ9mBvZPr4siq9b90rD9F_scA%3A1603005812287&ei=dO2LX9qUEcX1qwGn5brgBQ&q=yarle+evernote&oq=yarle+evernote&gs_lcp=CgZwc3ktYWIQAzIECCMQJzoHCCMQsAMQJzoHCAAQsAMQQzoHCC4QsAMQQzoJCAAQsAMQBxAeOgcIABCwAxAKOgUIABDJAzoCCAA6BAgAEAo6BAguEAo6BwguEMkDEA06BggAEA0QCjoGCAAQDRAeOggIABANEAoQHjoICAAQDRAFEB46CAgAEBYQChAeOgUIIRCgAToHCAAQyQMQDToECAAQDVDdEViJKmD_MGgDcAB4AYAB7gSIAf0RkgEJMC45LjEuNS0xmAEAoAEBqgEHZ3dzLXdpesgBCsABAQ&sclient=psy-ab&ved=0ahUKEwjano6Azr3sAhXF-ioKHaeyDlwQ4dUDCA0&uact=5
Source URL https://www.google.com/search?sxsrf=ALeKk03bpXQ9mBvZPr4siq9b90rD9F_scA%3A1603005812287&ei=dO2LX9qUEcX1qwGn5brgBQ&q=yarle+evernote&oq=yarle+evernote&gs_lcp=CgZwc3ktYWIQAzIECCMQJzoHCCMQsAMQJzoHCAAQsAMQQzoHCC4QsAMQQzoJCAAQsAMQBxAeOgcIABCwAxAKOgUIABDJAzoCCAA6BAgAEAo6BAguEAo6BwguEMkDEA06BggAEA0QCjoGCAAQDRAeOggIABANEAoQHjoICAAQDRAFEB46CAgAEBYQChAeOgUIIRCgAToHCAAQyQMQDToECAAQDVDdEViJKmD_MGgDcAB4AYAB7gSIAf0RkgEJMC45LjEuNS0xmAEAoAEBqgEHZ3dzLXdpesgBCsABAQ&sclient=psy-ab&ved=0ahUKEwjano6Azr3sAhXF-ioKHaeyDlwQ4dUDCA0&uact=5

2 changes: 1 addition & 1 deletion test/data/test.dots.in.enex.File.Name.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


---
Tags: ["tag1","tag2"]
Tags ["tag1","tag2"]

---

Expand Down
2 changes: 1 addition & 1 deletion test/yarle-special-cases.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ dateFormat: undefined,
skipEnexFileNameFromOutputPath: false,
keepMDCharactersOfENNotes: false,
monospaceIsCodeBlock: false,
currentTemplate: '{title-block}- #{title}#{end-title-block}\r\n\r\n- \r\n ---\r\n\r\n\r\n{content-block}{content}{end-content-block}\r\n\r\n- \r\n ---\r\n\r\n{created-at-block}- _Created at {created-at}._{end-created-at-block}\r\n{updated-at-block}- _Last updated at {updated-at}._{end-updated-at-block}\r\n{source-url-block}- _Source URL: []({source-url})._{end-source-url-block}\r\n\r\n\r\n{tags-block}\r\n- Tagged: \r\n- \r\n```\r\n{tags}\r\n```\r\n{end-tags-block}',
currentTemplate: '{title-block}- #{title}#{end-title-block}\r\n\r\n- \r\n ---\r\n\r\n\r\n{content-block}{content}{end-content-block}\r\n\r\n- \r\n ---\r\n\r\n{created-at-block}- _Created at {created-at}._{end-created-at-block}\r\n{updated-at-block}- _Last updated at {updated-at}._{end-updated-at-block}\r\n{source-url-block}- _Source URL []({source-url})._{end-source-url-block}\r\n\r\n\r\n{tags-block}\r\n- Tagged: \r\n- \r\n```\r\n{tags}\r\n```\r\n{end-tags-block}',
logseqSettings: {
journalNotes: false,
},
Expand Down

0 comments on commit f9b313c

Please sign in to comment.