diff options
Diffstat (limited to 'layouts/partials/title-bar.html')
-rw-r--r-- | layouts/partials/title-bar.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/partials/title-bar.html b/layouts/partials/title-bar.html new file mode 100644 index 0000000..bc4c574 --- /dev/null +++ b/layouts/partials/title-bar.html @@ -0,0 +1,26 @@ +{{/* + Parameters: + - length: width of title bar + - align: alignment (left|center|right) + - title: the title text +*/}} +<div class="container-fluid"> + <div class="row"> + {{ $title_length := 10 }} + {{ with .length }} + {{ $title_length = . }} + {{ end }} + {{ if eq .align "left" }} + <div class="col-md-{{ $title_length }} section-title-left"> + {{ else if eq .align "right" }} + <div class="col-md-{{ $title_length }} col-md-offset-{{ sub 12 $title_length }} section-title-right"> + {{ else }} + <div class="col-md-{{ $title_length }} col-md-offset-{{ div (sub 12 $title_length) 2 }} section-title-center"> + {{ end }} + {{ with .title }} + <h2 class="section-heading">{{ . }}</h2> + <hr class="section-hr"> + {{ end }} + </div> + </div> +</div>
\ No newline at end of file |