-
Notifications
You must be signed in to change notification settings - Fork 38
Custom shortcodes (and partials)
Other than the shortcodes and partial templates implemented in Hugo, here are some other that you can use on this website.
These can be used on general content pages.
These are like alerts, but they are more "friendly," sort-to-speak. These are based fom Bootstrap 4 docs.
Type | Aliases |
---|---|
info |
note , abstract , summary , tldr , todo , tip , hint , important
|
success |
check , done
|
warning |
caution , attention
|
danger |
failure , fail , missing , error , bug
|
From top to bottom: info
, success
, warning
, danger
This admonition will have the type info
.
{{< admonition info >}}
_Already translated: **Italian, Japanese, Portuguese, Slovenian and Spanish**. We won't be accepting any new translators for these languages_
{{< /admonition >}}
See the respective partial variation.
{{< youtube "nQ4N9zlzj0M" >}}
See the respective partial variation.
{{< scss "assets/css/base.scss" >}}
These can be used on layout pages and the shortcode itself.
Using this shortcode will result in an image with the play button in the middle, at which can be clicked to display a modal with the video.
Accepts a dictonary as an argument, usually contains the video ID.
Currently, it only supports YouTube, but may be expanded if needed.
{{ partial "youtube" (dict "id" "nQ4N9zlzj0M") }}
This can be used if you want to use .scss
instead of .css
. Using this link will compile the .scss
into .css
, and then embeds the compiled .css
into the page.
{{ partial "scss" "assets/css/base.scss" }}
© 2024 Scratch Addons contributors. Licensed under the terms of GNU General Public License v3.0.
Any issues? Have questions? Tell them here.
- Themes
- Changelog data structure
- Specific Hugo changes
- Blog
- Internationalization/Localization/Translation (i18n)
- Feedback presend warning
- Addon Docs
- Integration status dashboard