aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/shortcodes
AgeCommit message (Collapse)AuthorFilesLines
2021-08-31Use `path.Join` when joining pathsXhmikosR1-1/+1
2021-08-31example: remove unneeded escape charactersXhmikosR1-1/+1
2021-08-31Minor shortcode tweaks and consistency changesXhmikosR7-33/+37
2021-08-31Tweak scss-docs shortcodeXhmikosR1-18/+28
2021-07-28Use a streamlined way to trigger component dismiss (#34170)GeoSot1-0/+15
* use a streamlined way to trigger component dismiss * add documentation Co-authored-by: XhmikosR <[email protected]>
2021-02-03Tweak scss-docs shortcodeXhmikosR1-1/+1
Should work now with indented start/end capture statements
2020-11-13example.html: remove extra whitespace (#32143)XhmikosR1-1/+1
If we don't pass `class` to the `placeholder` shortcode, this resulted in two spaces before the `alt` attribute: ```html {{< example >}} {{< placeholder width="64" height="64" >}} {{< /example >}} ``` ```html <img src="..." alt="..."> ```
2020-10-22Update bs-table shortcode (#31803)XhmikosR1-7/+5
2020-10-13Revert "Improve callout shortcode. (#31802)" (#31871)XhmikosR1-1/+1
This reverts commit 5c6925385ee926a749ead6a4f2ebbfc64e701f36.
2020-10-12Improve callout shortcode. (#31802)XhmikosR1-1/+1
Remove the `markdownify` call, and instead rely on Hugo's proper syntax; `{{% callout %}}` when we want to the content to be processed as Markdown. This allows for stuff like: {{% callout info %}} ##### I'm an info callout! ```css .foo { color: #fff; } ``` {{< example >}} <div class="alert alert-warning alert-dismissible fade show" role="alert"> <strong>Holy guacamole!</strong> You should check in on some of those fields below. <button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button> </div> {{< /example >}} {{% /callout %}}
2020-09-04docs(placeholder): drop role=img and use aria-hidden for decorative SVG ↵Gaël Poupard1-1/+1
placeholders (#31575) Co-authored-by: XhmikosR <[email protected]>
2020-06-03shortcodes/example.html: allow specifying the highlighting languageXhmikosR1-1/+2
2020-05-07Add a param shortcode to work around the escaped characters in hashesRegis Philibert1-0/+12
2020-04-26Create a new table shortcode so we can easily add Bootstrap table classes to ↵Mark Otto1-0/+11
Markdown tables
2020-04-24Prevent nested tables style leaksMartijn Cuppens1-0/+30
2020-04-06Create `scss-docs` shortcode to get some snippets from the Scs… (#30502)Martijn Cuppens1-0/+33
Co-authored-by: XhmikosR <[email protected]>
2020-02-06docs(SVG placeholder): add focusable=false to placeholder SVGs (#30075)Gaël Poupard1-1/+1
Co-authored-by: XhmikosR <[email protected]>
2019-11-04Tighten regex a bit.XhmikosR1-2/+2
If we need to make this more robust in the future, we can revert this as needed.
2019-11-04example.html: use double quotesXhmikosR1-3/+3
2019-11-04Example shortcode: use a regex and simplify logic.Christopher Morrissey1-32/+3
2019-09-06Move shortcodes used only once where they are needed.XhmikosR2-39/+0
2019-09-02Docs: simplify a few Hugo `range`s. (#29333)XhmikosR1-1/+1
2019-08-31Fix shortcodes/example.html class bug. (#29344)XhmikosR1-8/+9
It always used the first placeholder's class before.
2019-08-04docs: Fix badges after #28458. (#29199)XhmikosR1-1/+1
2019-03-13Fix bugify.Bjørn Erik Pedersen1-40/+0
2019-03-13Add a docsref shortcode.XhmikosR1-0/+1
This allows for the build to fail if a reference isn't found.
2019-03-13Switch to Hugo.XhmikosR9-0/+179
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!