mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +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": {
|
||||
"body": [
|
||||
"{{% expand title=\"[[&title]]\" open=\"[[&open]]\" %}}[[&content]]{{% /expand %}}"
|
||||
"{{% expand title=\"[[&title]]\" expanded=\"[[&expanded]]\" %}}[[&content]]{{% /expand %}}"
|
||||
],
|
||||
"description": "Zeigt einen ein-/ausklappbaren Textblock an",
|
||||
"fields": [
|
||||
|
@ -222,8 +222,8 @@
|
|||
"true"
|
||||
],
|
||||
"default": "",
|
||||
"name": "open",
|
||||
"title": "Textblock initial ausklappen",
|
||||
"name": "expanded",
|
||||
"title": "Inhalt initial ausklappen",
|
||||
"type": "choice"
|
||||
}
|
||||
]
|
||||
|
@ -406,7 +406,7 @@
|
|||
},
|
||||
"Notice": {
|
||||
"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",
|
||||
"fields": [
|
||||
|
@ -461,6 +461,17 @@
|
|||
"name": "icon",
|
||||
"title": "Font Awesome Icon",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"choices": [
|
||||
"",
|
||||
"false",
|
||||
"true"
|
||||
],
|
||||
"default": "",
|
||||
"name": "expanded",
|
||||
"title": "Inhalt initial ausklappen",
|
||||
"type": "choice"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -479,7 +490,7 @@
|
|||
},
|
||||
"Resources": {
|
||||
"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",
|
||||
"fields": [
|
||||
|
@ -545,6 +556,17 @@
|
|||
"name": "icon",
|
||||
"title": "Font Awesome Icon",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"choices": [
|
||||
"",
|
||||
"false",
|
||||
"true"
|
||||
],
|
||||
"default": "",
|
||||
"name": "expanded",
|
||||
"title": "Resourceliste initial ausklappen",
|
||||
"type": "choice"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -199,7 +199,7 @@
|
|||
},
|
||||
"Expand": {
|
||||
"body": [
|
||||
"{{% expand title=\"[[&title]]\" open=\"[[&open]]\" %}}[[&content]]{{% /expand %}}"
|
||||
"{{% expand title=\"[[&title]]\" expanded=\"[[&expanded]]\" %}}[[&content]]{{% /expand %}}"
|
||||
],
|
||||
"description": "Displays an expandable/collapsable section of text",
|
||||
"fields": [
|
||||
|
@ -222,8 +222,8 @@
|
|||
"true"
|
||||
],
|
||||
"default": "",
|
||||
"name": "open",
|
||||
"title": "Initially expand section",
|
||||
"name": "expanded",
|
||||
"title": "Initially expand content",
|
||||
"type": "choice"
|
||||
}
|
||||
]
|
||||
|
@ -406,7 +406,7 @@
|
|||
},
|
||||
"Notice": {
|
||||
"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",
|
||||
"fields": [
|
||||
|
@ -461,6 +461,17 @@
|
|||
"name": "icon",
|
||||
"title": "Font Awesome icon",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"choices": [
|
||||
"",
|
||||
"false",
|
||||
"true"
|
||||
],
|
||||
"default": "",
|
||||
"name": "expanded",
|
||||
"title": "Initially expand content",
|
||||
"type": "choice"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -479,7 +490,7 @@
|
|||
},
|
||||
"Resources": {
|
||||
"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",
|
||||
"fields": [
|
||||
|
@ -545,6 +556,17 @@
|
|||
"name": "icon",
|
||||
"title": "Font Awesome icon",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"choices": [
|
||||
"",
|
||||
"false",
|
||||
"true"
|
||||
],
|
||||
"default": "",
|
||||
"name": "expanded",
|
||||
"title": "Initially expand resource list",
|
||||
"type": "choice"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue