mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
frontmatter: add expanded parameter for shortcodes #911
This commit is contained in:
parent
57f2618bbe
commit
f696f60f4e
2 changed files with 54 additions and 10 deletions
|
@ -199,7 +199,7 @@
|
||||||
},
|
},
|
||||||
"Expand": {
|
"Expand": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% expand title=\"[[&title]]\" open=\"[[&open]]\" %}}[[&content]]{{% /expand %}}"
|
"{{% expand title=\"[[&title]]\" expanded=\"[[&expanded]]\" %}}[[&content]]{{% /expand %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt einen ein-/ausklappbaren Textblock an",
|
"description": "Zeigt einen ein-/ausklappbaren Textblock an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -222,8 +222,8 @@
|
||||||
"true"
|
"true"
|
||||||
],
|
],
|
||||||
"default": "",
|
"default": "",
|
||||||
"name": "open",
|
"name": "expanded",
|
||||||
"title": "Textblock initial ausklappen",
|
"title": "Inhalt initial ausklappen",
|
||||||
"type": "choice"
|
"type": "choice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -406,7 +406,7 @@
|
||||||
},
|
},
|
||||||
"Notice": {
|
"Notice": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% notice title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /notice %}}"
|
"{{% notice title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" expanded=\"[[&expanded]]\" %}}[[&content]]{{% /notice %}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt eine konfigurierbare Text-Box an",
|
"description": "Zeigt eine konfigurierbare Text-Box an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -461,6 +461,17 @@
|
||||||
"name": "icon",
|
"name": "icon",
|
||||||
"title": "Font Awesome Icon",
|
"title": "Font Awesome Icon",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "expanded",
|
||||||
|
"title": "Inhalt initial ausklappen",
|
||||||
|
"type": "choice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -479,7 +490,7 @@
|
||||||
},
|
},
|
||||||
"Resources": {
|
"Resources": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
|
"{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" expanded=\"[[&expanded]]\" /%}}"
|
||||||
],
|
],
|
||||||
"description": "Zeigt eine Liste von Resourcen eines Page Bundles an",
|
"description": "Zeigt eine Liste von Resourcen eines Page Bundles an",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -545,6 +556,17 @@
|
||||||
"name": "icon",
|
"name": "icon",
|
||||||
"title": "Font Awesome Icon",
|
"title": "Font Awesome Icon",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "expanded",
|
||||||
|
"title": "Resourceliste initial ausklappen",
|
||||||
|
"type": "choice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -199,7 +199,7 @@
|
||||||
},
|
},
|
||||||
"Expand": {
|
"Expand": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% expand title=\"[[&title]]\" open=\"[[&open]]\" %}}[[&content]]{{% /expand %}}"
|
"{{% expand title=\"[[&title]]\" expanded=\"[[&expanded]]\" %}}[[&content]]{{% /expand %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays an expandable/collapsable section of text",
|
"description": "Displays an expandable/collapsable section of text",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -222,8 +222,8 @@
|
||||||
"true"
|
"true"
|
||||||
],
|
],
|
||||||
"default": "",
|
"default": "",
|
||||||
"name": "open",
|
"name": "expanded",
|
||||||
"title": "Initially expand section",
|
"title": "Initially expand content",
|
||||||
"type": "choice"
|
"type": "choice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -406,7 +406,7 @@
|
||||||
},
|
},
|
||||||
"Notice": {
|
"Notice": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% notice title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /notice %}}"
|
"{{% notice title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" expanded=\"[[&expanded]]\" %}}[[&content]]{{% /notice %}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a configurable box of text",
|
"description": "Displays a configurable box of text",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -461,6 +461,17 @@
|
||||||
"name": "icon",
|
"name": "icon",
|
||||||
"title": "Font Awesome icon",
|
"title": "Font Awesome icon",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "expanded",
|
||||||
|
"title": "Initially expand content",
|
||||||
|
"type": "choice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -479,7 +490,7 @@
|
||||||
},
|
},
|
||||||
"Resources": {
|
"Resources": {
|
||||||
"body": [
|
"body": [
|
||||||
"{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" /%}}"
|
"{{% resources title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" expanded=\"[[&expanded]]\" /%}}"
|
||||||
],
|
],
|
||||||
"description": "Displays a list of resources contained in a page bundle",
|
"description": "Displays a list of resources contained in a page bundle",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
@ -545,6 +556,17 @@
|
||||||
"name": "icon",
|
"name": "icon",
|
||||||
"title": "Font Awesome icon",
|
"title": "Font Awesome icon",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"choices": [
|
||||||
|
"",
|
||||||
|
"false",
|
||||||
|
"true"
|
||||||
|
],
|
||||||
|
"default": "",
|
||||||
|
"name": "expanded",
|
||||||
|
"title": "Initially expand resource list",
|
||||||
|
"type": "choice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue