diff --git a/exampleSite/content/en/shortcodes/progress.md b/exampleSite/content/en/shortcodes/progress.md new file mode 100644 index 0000000..2a863e1 --- /dev/null +++ b/exampleSite/content/en/shortcodes/progress.md @@ -0,0 +1,29 @@ +--- +title: Progress +--- + +A progress bar shows how far a process has progressed. + +## Attributes + +| Name | Description | default | +| ---------------- | -------------------------------------------------------------------------- | --------- | +| value | progress value | 0 | +| icon (optional) | icon to use, need to be an icon from an [SVG sprite](/features/icon-sets/) | undefined | +| title (optional) | progress title | undefined | + +## Usage + + +```tpl +{{* progress title=Eating value=65 icon=gdoc_heart */>}} +``` + + +## Example + + + +{{< progress title=Eating value=65 icon=gdoc_heart >}} + + diff --git a/layouts/shortcodes/progress.html b/layouts/shortcodes/progress.html new file mode 100644 index 0000000..244f92e --- /dev/null +++ b/layouts/shortcodes/progress.html @@ -0,0 +1,23 @@ +{{- $value := default 0 (.Get "value") -}} +{{- $title := .Get "title" -}} +{{- $icon := .Get "icon" -}} + + +