snippets: add frontmatter snippet for running post
Co-Authored-by: iGor milhit <igor@milhit.ch>main
parent
e4a0a7b220
commit
03b0239539
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue