snippets: add frontmatter snippet for running post

Co-Authored-by: iGor milhit <igor@milhit.ch>
kickstart
iGor milhit 2023-12-19 08:41:45 +01:00
parent cda7ff36e3
commit 52284e5a47
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 38 additions and 0 deletions

View File

@ -133,6 +133,44 @@ return {
}
)
),
s(
{
trig = "run",
name = "YAML frontmatter for a running note",
dscr = "Insert a YAML frontmatter for running notes.\n\nIt has a date for the title, a datetime with the locale daylight saving time for the date and id field, some prefilled tags. Other specific metadata for running are to be filled. This snippet should be adapted when following another plan."
},
fmt(
[[
---
title: {5}
date: {6}
id: {7}
tags: [préparation marathon, campus, plan 2, {1}]
plan:
- coaching: "campus"
- type: "marathon"
- durée: "24 semaines"
séance:
- type: "{2}"
- semaine: {3}
- séance: {4}
données:
- privées: ""
- publiques: ""
---
]],
{
i(1, "tags"),
i(2, "workout type"),
i(3, "week number of the plan"),
i(4, "workout number of the week"),
f(get_date, {}),
f(get_datetime, {}),
f(get_id, {})
}
)
),
s(
{
trig="reflink",