Help:Shortcode Rendered
Display something in a card to show an example.
On this page
On this page
Shortcode | |
Description | |
---|---|
Type | HTML Shortcode |
Nested? | true |
Shortcode | rendered |
Return Type | HTML |
Short Description Display “whatever” is in .Inner inside a demo-box. | |
Development | |
Maintainer | Michael Sasser |
rendered
produces a box around a rendered object with the word Rendered on
top. It is used only on this site to show rendered shortcodes in a box.
Parameters
The rendered shortcode has the following parameters:
Parameter | Description |
---|---|
.Inner | The object to display |
Examples
{{< rendered >}}
Hello
{{< /rendered >}}
Rendered
Hello
Code
Below you find the implementation of the shortcode.
HTML
Defined in layouts/shortcodes/rendered.html
.
This code is licensed under the MIT license.
<!--
Rendered Shortcode
==================
Contributors: Michael Sasser
Maintainer: Michael Sasser
License: MIT
Version: 2
Child Shortcodes: None
Parent Shortcodes: None
LAYOUT: /layouts/shortcodes/rendered.html
STYLE: /assets/scss/components/_shortcode_rendered.scss
DOCS: /content/<language>/wiki/Help:Shortcode_Rendered.md
Description
-----------
Use the rendered shortcode to display whatever is in ".Inner" inside a
a box.
Changelog
=========
Version 1
---------
Initial release
-->
<div class="my-5">
<div class="card">
<div class="card-header rendered">
<b>Rendered</b>
</div>
<!-- <div class="card-body bg-white text-black text-secondary"> -->
<div class="card-body rendered">{{ with .Inner }} {{ . }} {{ end }}</div>
</div>
</div>
Download
Copy the source code above or use the download link below to use this file on your website according to the license.
- rendered.html ❘ 821.00 Bytes
- md5 91456385faf372b63f1bc65d10112f1e
- sha1 33e1260df73bc6112bc06317a9cdca4e9d156b5b
- sha256 1969033f0b62dc22fbc0784cda85d1c18b68068ddac803df61e142e7a1c60de4
SASS
Defined in: /assets/scss/components/_shortcode_rendered.scss
This code is licensed under the MIT license.
/*
Rendered Shortcode
==================
Contributors: Michael Sasser
Maintainer: Michael Sasser
License: MIT
Version: 2
Child Shortcodes: None
Parent Shortcodes: None
LAYOUT: /layouts/shortcodes/rendered.html
STYLE: /assets/scss/components/_shortcode_rendered.scss
DOCS: /content/<language>/wiki/Help:Shortcode_Rendered.md
*/
.rendered {
background-color: $body-color-dark;
}
[data-dark-mode] .rendered {
table {
--bs-table-bg: $gray-300;
}
thead,
tbody,
tfoot,
tr,
td,
th {
border-color: $gray-300;
}
}
@include color-mode(dark) {
body .rendered {
background-color: darken($body-color-dark, 60%);
}
}
Download
Copy the source code above or use the download link below to use this file on your website according to the license.
- _shortcode_rendered.scss ❘ 672.00 Bytes
- md5 c23b9e37a6ed206484cb81f5e3cdc0c2
- sha1 c8865074489a96af3ba754bcf90a803e9ee91892
- sha256 de86d82ff5578f1ca69c81b7c1c7f4add36bc0dadd424ad776d2bbc6d91e3305
Categories | Contributors |
---|---|
Help, Contribute and Shortcode | Michael Sasser |