forked from TrueCloudLab/distribution
docs: add hugo site
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
f7b3869062
commit
e2ae76f1f2
291 changed files with 2833 additions and 2 deletions
23
docs/themes/hugo-geekdoc/layouts/shortcodes/progress.html
vendored
Normal file
23
docs/themes/hugo-geekdoc/layouts/shortcodes/progress.html
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{- $value := default 0 (.Get "value") -}}
|
||||
{{- $title := .Get "title" -}}
|
||||
{{- $icon := .Get "icon" -}}
|
||||
|
||||
|
||||
<div class="gdoc-progress">
|
||||
<div class="gdoc-progress__label flex justify-between">
|
||||
<div class="gdoc-progress__label--name flex align-center">
|
||||
{{ with $icon -}}
|
||||
<svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
|
||||
{{- end }}
|
||||
{{ with $title }}<span>{{ . }}</span>{{ end }}
|
||||
</div>
|
||||
<div>{{ $value }}%</div>
|
||||
</div>
|
||||
<div class="gdoc-progress__wrap">
|
||||
<div
|
||||
class="gdoc-progress__bar"
|
||||
data-percent="{{ $value }}"
|
||||
style="width: {{ $value }}%;"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue