mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
frontmatter: resemble documented shortcode style #672
and adding highlight shortcode
This commit is contained in:
parent
b998bec84f
commit
bb864993c4
2 changed files with 182 additions and 38 deletions
|
@ -2,7 +2,7 @@
|
||||||
"frontMatter.content.snippets": {
|
"frontMatter.content.snippets": {
|
||||||
"Attachments": {
|
"Attachments": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" />}}"
|
"{{% attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt eine Liste der Dateianhänge der Seite an",
|
"description": "Zeigt eine Liste der Dateianhänge der Seite an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
},
|
},
|
||||||
"Badge": {
|
"Badge": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" >}}[[&content]]{{< /badge >}}"
|
"{{% badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /badge %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt einen kleinen Marker im Text an",
|
"description": "Zeigt einen kleinen Marker im Text an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
},
|
},
|
||||||
"Button": {
|
"Button": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< button href=\"[[&href]]\" target=\"[[&target]]\" type=\"[[&type]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" iconposition=\"[[&iconposition]]\" >}}[[&content]]{{< /button >}}"
|
"{{% button href=\"[[&href]]\" target=\"[[&target]]\" type=\"[[&type]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" iconposition=\"[[&iconposition]]\" %}}[[&content]]{{% /button %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt eine anklickbare Schaltfläche an",
|
"description": "Zeigt eine anklickbare Schaltfläche an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
},
|
},
|
||||||
"Children": {
|
"Children": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< children description=\"[[&description]]\" depth=\"[[&depth]]\" sort=\"[[&sort]]\" showhidden=\"[[&showhidden]]\" containerstyle=\"[[&containerstyle]]\" style=\"[[&style]]\" >}}"
|
"{{% children description=\"[[&description]]\" depth=\"[[&depth]]\" sort=\"[[&sort]]\" showhidden=\"[[&showhidden]]\" containerstyle=\"[[&containerstyle]]\" style=\"[[&style]]\" %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt eine Liste der Unterseiten dieser Seite an",
|
"description": "Zeigt eine Liste der Unterseiten dieser Seite an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -287,9 +287,81 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"Highlight": {
|
||||||
|
"body": [
|
||||||
|
"````[[&type]] title=\"[[&title]]\" wrap=\"[[&wrap]]\" lineNos=\"[[&lineNos]]\" anchorLineNos=\"[[&anchorLineNos]]\" lineAnchors=\"[[&lineAnchors]]\" lineNoStart=\"[[&lineNoStart]]\" hl_Lines=\"[[&hl_Lines]]\"",
|
||||||
|
"[[&content]]",
|
||||||
|
"````"
|
||||||
|
],
|
||||||
|
"description": "Zeigt formatierten Code an",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"default": "FM_SELECTED_TEXT",
|
||||||
|
"name": "content",
|
||||||
|
"title": "Text",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "title",
|
||||||
|
"title": "Titel",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "wrap",
|
||||||
|
"title": "Zeilen umbrechen",
|
||||||
|
"type": "choice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "lineNos",
|
||||||
|
"title": "Zeilennummern anzeigen",
|
||||||
|
"type": "choice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "anchorLineNos",
|
||||||
|
"title": "Zeilennummern verlinkbar",
|
||||||
|
"type": "choice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "",
|
||||||
|
"name": "lineAnchors",
|
||||||
|
"title": "Eindeutiges Prefix für verlinkbare Zeilennummern",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "",
|
||||||
|
"name": "lineNoStart",
|
||||||
|
"title": "Erste Zeilennummer",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "",
|
||||||
|
"name": "hl_Lines",
|
||||||
|
"title": "Zu markierende Zeilen",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Icon": {
|
"Icon": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< icon [[&icon]] >}}"
|
"{{% icon [[&icon]] %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt ein Font Awesome Icon an",
|
"description": "Zeigt ein Font Awesome Icon an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -302,7 +374,7 @@
|
||||||
},
|
},
|
||||||
"Include": {
|
"Include": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< include file=\"[[&file]]\" hidefirstheading=\"[[&hidefirstheading]]\" >}}"
|
"{{% include file=\"[[&file]]\" hidefirstheading=\"[[&hidefirstheading]]\" %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt den Inhalt einer Datei an",
|
"description": "Zeigt den Inhalt einer Datei an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -447,19 +519,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Site Param": {
|
|
||||||
"body": [
|
|
||||||
"{{< siteparam [[&name]] >}}"
|
|
||||||
],
|
|
||||||
"description": "Zeigt einen \"site parameter\" an",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "name",
|
|
||||||
"title": "Name des \"site parameter\"",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"OpenAPI": {
|
"OpenAPI": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< openapi src=\"[[&src]]\" >}}"
|
"{{< openapi src=\"[[&src]]\" >}}"
|
||||||
|
@ -473,6 +532,19 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"Site Param": {
|
||||||
|
"body": [
|
||||||
|
"{{% siteparam name=\"[[&name]]\" %}}"
|
||||||
|
],
|
||||||
|
"description": "Zeigt einen \"site parameter\" an",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "name",
|
||||||
|
"title": "Name des \"site parameter\"",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Tab": {
|
"Tab": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% tab title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}",
|
"{{% tab title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"frontMatter.content.snippets": {
|
"frontMatter.content.snippets": {
|
||||||
"Attachments": {
|
"Attachments": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" />}}"
|
"{{% attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a list of files attached to the page",
|
"description": "Displays a list of files attached to the page",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
},
|
},
|
||||||
"Badge": {
|
"Badge": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" >}}[[&content]]{{< /badge >}}"
|
"{{% badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /badge %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a little marker in the text",
|
"description": "Displays a little marker in the text",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
},
|
},
|
||||||
"Button": {
|
"Button": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< button href=\"[[&href]]\" target=\"[[&target]]\" type=\"[[&type]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" iconposition=\"[[&iconposition]]\" >}}[[&content]]{{< /button >}}"
|
"{{% button href=\"[[&href]]\" target=\"[[&target]]\" type=\"[[&type]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" iconposition=\"[[&iconposition]]\" %}}[[&content]]{{% /button %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a clickable button",
|
"description": "Displays a clickable button",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
},
|
},
|
||||||
"Children": {
|
"Children": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< children description=\"[[&description]]\" depth=\"[[&depth]]\" sort=\"[[&sort]]\" showhidden=\"[[&showhidden]]\" containerstyle=\"[[&containerstyle]]\" style=\"[[&style]]\" >}}"
|
"{{% children description=\"[[&description]]\" depth=\"[[&depth]]\" sort=\"[[&sort]]\" showhidden=\"[[&showhidden]]\" containerstyle=\"[[&containerstyle]]\" style=\"[[&style]]\" %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a list of child pages for the page",
|
"description": "Displays a list of child pages for the page",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -287,9 +287,81 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"Highlight": {
|
||||||
|
"body": [
|
||||||
|
"````[[&type]] title=\"[[&title]]\" wrap=\"[[&wrap]]\" lineNos=\"[[&lineNos]]\" anchorLineNos=\"[[&anchorLineNos]]\" lineAnchors=\"[[&lineAnchors]]\" lineNoStart=\"[[&lineNoStart]]\" hl_Lines=\"[[&hl_Lines]]\"",
|
||||||
|
"[[&content]]",
|
||||||
|
"````"
|
||||||
|
],
|
||||||
|
"description": "Displays syntaxhighlighted code",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"default": "FM_SELECTED_TEXT",
|
||||||
|
"name": "content",
|
||||||
|
"title": "Text",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "title",
|
||||||
|
"title": "Title",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "wrap",
|
||||||
|
"title": "Wrap lines",
|
||||||
|
"type": "choice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "lineNos",
|
||||||
|
"title": "Display line number",
|
||||||
|
"type": "choice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "anchorLineNos",
|
||||||
|
"title": "Line numbers linkable",
|
||||||
|
"type": "choice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "",
|
||||||
|
"name": "lineAnchors",
|
||||||
|
"title": "Unique prefix for linkable line numbers",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "",
|
||||||
|
"name": "lineNoStart",
|
||||||
|
"title": "First line number",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "",
|
||||||
|
"name": "hl_Lines",
|
||||||
|
"title": "Markable lines",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Icon": {
|
"Icon": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< icon [[&icon]] >}}"
|
"{{% icon [[&icon]] %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a Font Awesome icon",
|
"description": "Displays a Font Awesome icon",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -302,7 +374,7 @@
|
||||||
},
|
},
|
||||||
"Include": {
|
"Include": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< include file=\"[[&file]]\" hidefirstheading=\"[[&hidefirstheading]]\" >}}"
|
"{{% include file=\"[[&file]]\" hidefirstheading=\"[[&hidefirstheading]]\" %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays the content of another file",
|
"description": "Displays the content of another file",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -447,19 +519,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Site Param": {
|
|
||||||
"body": [
|
|
||||||
"{{< siteparam [[&name]] >}}"
|
|
||||||
],
|
|
||||||
"description": "Displays the value of a site parameter",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"name": "name",
|
|
||||||
"title": "The name of the site parameter",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"OpenAPI": {
|
"OpenAPI": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{< openapi src=\"[[&src]]\" >}}"
|
"{{< openapi src=\"[[&src]]\" >}}"
|
||||||
|
@ -473,6 +532,19 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"Site Param": {
|
||||||
|
"body": [
|
||||||
|
"{{% siteparam name=\"[[&name]]\" %}}"
|
||||||
|
],
|
||||||
|
"description": "Displays the value of a site parameter",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "name",
|
||||||
|
"title": "The name of the site parameter",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Tab": {
|
"Tab": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% tab title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}",
|
"{{% tab title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}",
|
||||||
|
|
Loading…
Reference in a new issue