aboutsummaryrefslogtreecommitdiff
path: root/themes/docsy/layouts/shortcodes/blocks/link-down.html
blob: 6395866338b8befc858cc7a5a9e943bb57a53727 (plain)
1
2
3
4
5
6
7
{{ with .Parent }}
{{ $id := $.Get "id" | default (printf "td-block-%d" ( add .Ordinal 1 ))  }}
{{ $color := $.Get "color" | default "blue" }}
<a class="btn btn-link text-{{ $color }}" href="#{{ $id }}"><i class="fa fa-chevron-circle-down" style="font-size: 400%"></i></a>
{{ else }}
{{ errorf "The link-down shortcode is supposed to be nested inside a shortcode"}}
{{ end }}