Sha256: d317e3130ec1616f3068653fc87292423c06b599cbe79a34b0978e732a9afdf3

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

{{ $_hugo_config := `{ "version": 1 }` }}
<a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="btn btn-default">
  {{ $icon := .Get "icon" }}
  {{ $iconposition := .Get "icon-position" }}
  {{ if ($icon) }}
    {{ if or (not ($iconposition)) (eq $iconposition "left") }}
  <i class="{{$icon}}"></i>
    {{ end }}
  {{ end }}
  {{ .Inner }}
  {{ if and ($icon) (eq $iconposition "right")}}
  <i class="{{$icon}}"></i>
  {{ end }}
</a>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbcli-0.3.3 docs-src/themes/hugo-theme-learn/layouts/shortcodes/button.html
rbcli-0.3.2 docs-src/themes/hugo-theme-learn/layouts/shortcodes/button.html
rbcli-0.3.1 docs-src/themes/hugo-theme-learn/layouts/shortcodes/button.html
rbcli-0.3.0 docs-src/themes/hugo-theme-learn/layouts/shortcodes/button.html
rbcli-0.2.12 docs-src/themes/hugo-theme-learn/layouts/shortcodes/button.html