resources: deprecate attachments shortcode in frontmatter CMS config #22

This commit is contained in:
Sören Weber 2024-03-24 00:42:55 +01:00
parent ff36532d74
commit 93578d810d
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 134 additions and 134 deletions

View file

@ -1,72 +1,5 @@
{ {
"frontMatter.content.snippets": { "frontMatter.content.snippets": {
"Attachments": {
"body": [
"{{% attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
],
"description": "Zeigt eine Liste der Dateianhänge der Seite an",
"fields": [
{
"default": "",
"name": "title",
"title": "Titel",
"type": "string"
},
{
"default": "",
"name": "pattern",
"title": "Regex zum Filtern der Dateinamen",
"type": "string"
},
{
"choices": [
"",
"asc",
"desc"
],
"default": "",
"name": "sort",
"title": "Ausgabereihenfolge",
"type": "choice"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent",
"code"
],
"default": "",
"name": "style",
"title": "Stil-Schema",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS-Farbwert",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome Icon",
"type": "string"
}
]
},
"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 %}}"
@ -532,6 +465,73 @@
} }
] ]
}, },
"Resources": {
"body": [
"{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
],
"description": "Zeigt eine Liste von Resourcen eines Page Bundles an",
"fields": [
{
"default": "",
"name": "title",
"title": "Titel",
"type": "string"
},
{
"default": "",
"name": "pattern",
"title": "Regex zum Filtern der Dateinamen",
"type": "string"
},
{
"choices": [
"",
"asc",
"desc"
],
"default": "",
"name": "sort",
"title": "Ausgabereihenfolge",
"type": "choice"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent",
"code"
],
"default": "",
"name": "style",
"title": "Stil-Schema",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS-Farbwert",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome Icon",
"type": "string"
}
]
},
"Site Param": { "Site Param": {
"body": [ "body": [
"{{% siteparam name=\"[[&name]]\" %}}" "{{% siteparam name=\"[[&name]]\" %}}"

View file

@ -1,72 +1,5 @@
{ {
"frontMatter.content.snippets": { "frontMatter.content.snippets": {
"Attachments": {
"body": [
"{{% attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
],
"description": "Displays a list of files attached to the page",
"fields": [
{
"default": "",
"name": "title",
"title": "Title",
"type": "string"
},
{
"default": "",
"name": "pattern",
"title": "Regex for filtering file names",
"type": "string"
},
{
"choices": [
"",
"asc",
"desc"
],
"default": "",
"name": "sort",
"title": "Sorting order",
"type": "choice"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent",
"code"
],
"default": "",
"name": "style",
"title": "Style scheme",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS color value",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
}
]
},
"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 %}}"
@ -532,6 +465,73 @@
} }
] ]
}, },
"Resources": {
"body": [
"{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
],
"description": "Displays a list of resources contained in a page bundle",
"fields": [
{
"default": "",
"name": "title",
"title": "Title",
"type": "string"
},
{
"default": "",
"name": "pattern",
"title": "Regex for filtering file names",
"type": "string"
},
{
"choices": [
"",
"asc",
"desc"
],
"default": "",
"name": "sort",
"title": "Sorting order",
"type": "choice"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent",
"code"
],
"default": "",
"name": "style",
"title": "Style scheme",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS color value",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
}
]
},
"Site Param": { "Site Param": {
"body": [ "body": [
"{{% siteparam name=\"[[&name]]\" %}}" "{{% siteparam name=\"[[&name]]\" %}}"