Hier, wie versprochen, meine aktuellen Snippets, die ich in VSCode verwende, wenn ich Beiträge für meinen Blog oder das Wiki in Markdown schreibe, das dann von Hugo gerendert wird.
Vielleicht ist für jemanden etwas Nützliches dabei.
"nat_sphere": {
"scope": "markdown",
"prefix": "md-nat-sphere",
"body": [
"{{< sphere src=\"$1\" caption=\"$2\" osmurl=\"$3\" osmembedurl=\"$4\" imgsize=\"$5\" >}}"
],
"description": "360° Photosphere"
},
"nat_gallery": {
"scope": "markdown",
"prefix": "md-nat_gallery",
"body": [
"{{< nat_gallery match=\"images/*\" >}}"
],
"description": "Natenoms own gallery"
},
"notice": {
"scope": "markdown",
"prefix": "md-notice",
"body": [
"{{< notice ${1|hinweis,tipp,info,warnung,update|} >}}",
"${TM_SELECTED_TEXT}$0",
"{{< /notice >}}"
],
"description": "Notice, tip, info, …"
},
"codewarning": {
"scope": "markdown",
"prefix": "md-codewarning",
"body": "{{< codewarning >}}",
"description": "Codewarning wegen Copy & Paste in die Shell hinein."
},
"video": {
"scope": "markdown",
"prefix": "md-video",
"body": [
"{{< video src=\"$1\" caption=\"$2\" type=\"video/mp4\" linktext=\"\" >}}"
],
"description": "Video"
},
"figure": {
"scope": "markdown",
"prefix": "md-figure",
"body": [
"{{< figure src=\"$1\" link=\"$2\" alt=\"$3\" title=\"$4\" caption=\"$5\" width=\"\" float=\"\" >}}"
],
"description": "Bilder einfügen"
},
"disclaimer": {
"scope": "markdown",
"prefix": "md-disclaimer",
"body": [
"{{< disclaimer >}}"
],
"description": "Disclaimer für Beiträge über Produkte"
},
"details": {
"scope": "markdown",
"prefix": "md-details",
"body": [
"{{< details title=\"$1\" >}}",
"${TM_SELECTED_TEXT}$0",
"{{< /details >}}"
],
"description": "Ausklappbarer Details"
},
"clear": {
"scope": "markdown",
"prefix": "md-clear",
"body": [
"{{< clear >}}"
],
"description": "Float clear"
},
"datetime": {
"prefix": "md-datetime",
"body": [
"$CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T${CURRENT_HOUR}:$CURRENT_MINUTE:$CURRENT_SECOND+02:00"
],
"description": "Date/Time for blog post."
},
"blockquote": {
"scope": "markdown",
"prefix": "md-blockquote",
"body": [
"{{< blockquote cite=\"$1\" link=\"$2\" linktext=\"\" >}}",
"${TM_SELECTED_TEXT}$0",
"{{< /blockquote >}}"
],
"description": "Zitat"
},
"frontmatter-blog": {
"scope": "markdown",
"prefix": "md-frontmatter-blog",
"body": [
"---",
"title: \"$1\"",
"# linkTitle: ",
"slug: ${2/[\\ ]/-/g}",
"date: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T${CURRENT_HOUR}:$CURRENT_MINUTE:$CURRENT_SECOND+02:00",
"# featured: false",
"draft: false",
"# comment: true",
"# toc: true",
"# reward: false",
"# pinned: false",
"# carousel: false",
"# reward: false",
"author: Natenom",
"#description: ",
"categories:"
" - $3",
"tags:",
" - $4",
"# series: ",
"#comments:",
"# host: social.anoxinon.de",
"# username: natenom",
"# id: ",
"---"
],
"description": "Front Matter Blog"
},
"blog-template-fahrradstatistik": {
"scope": "markdown",
"prefix": "md-blog-template-fahrradstatistik",
"body": [
"---",
"title: \"Meine Fahrradstatistik für ${1:monat} ${CURRENT_YEAR}\"",
"slug: fahrradstatistik-${1/(.*)/${1:/downcase}/}-${CURRENT_YEAR}",
"author: Natenom",
"date: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T${CURRENT_HOUR}:$CURRENT_MINUTE:$CURRENT_SECOND+02:00",
"categories:",
"- Mobilität",
"tags:",
"- ${1}",
"- Fahrrad",
"- Mobilität",
"- Statistiken",
"- Strecke",
"",
"---",
"",
"<!--more-->",
"- Gefahrene Kilometer: ${0} km ([${1}]() 2022: km)",
"- Reine Fahrzeit: h (${1} 2022: h min)",
"- Höhenmeter (nur hoch): hm (${1} 2022: hm)",
"- Gesamtkilometer 2023: km (gleicher Zeitraum 2022: km)",
"- Regentage: ",
"- Schneetage: ",
"- Kalorienverbrauch: kcal",
"- Durchschnittliche Geschwindigkeit: km/h",
"- Durchschnittlicher Puls: ",
"- Höchster Puls: ",
"- Aktuelles Gewicht: kg"
],
"description": "Blog Template Fahrradkilometer"
},
"blog-template-microblog": {
"scope": "markdown",
"prefix": "md-blog-template-microblog",
"body": [
"---",
"title: \"Microblog: ${1:Titel}\"",
"slug: ${2/[\\ ]/-/g}",
"author: Natenom",
"date: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T${CURRENT_HOUR}:$CURRENT_MINUTE:$CURRENT_SECOND+02:00",
"categories:",
"- ${3:Allgemein}",
"tags:",
"- Microblog",
"",
"---",
"",
"$0"
],
"description": "Blog Template Microblog"
},
"more": {
"scope": "markdown",
"prefix": "md-more",
"body": [
"<!--more-->",
"$0"
],
"description": "More anchor"
},
"codefence": {
"scope": "markdown",
"prefix": "md-codefence",
"body": [
"```${1|apacheconf,awk,bash,c,c#,coffeescript,css,diff,go,html,ini,json,julia,markdown,plaintext,python,ruby,toml,xml,javascript|}",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "More anchor"
},
"table": {
"scope": "markdown",
"prefix": "md-table",
"body": [
"| ${1} | ${2} |",
"| ------|------ |",
"| ${3} | ${4} |",
"| | |",
],
"description": "Table"
}
Kommentare
Bisher gibt es hier keine Kommentare.
Kommentar oder Anmerkung für diesen Blogbeitrag
Öffentlicher Kommentar per E-Mail: Hier klicken
Nicht öffentliche Anmerkung per E-Mail: Hier klicken
Sonstige Kontaktaufnahme: Kontakt