Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/title-bar.html')
-rw-r--r--layouts/partials/title-bar.html36
1 files changed, 21 insertions, 15 deletions
diff --git a/layouts/partials/title-bar.html b/layouts/partials/title-bar.html
index 2bd2ff8..e4928f4 100644
--- a/layouts/partials/title-bar.html
+++ b/layouts/partials/title-bar.html
@@ -5,20 +5,26 @@
- title: the title text
*/}}
<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">
+ {{ if .title }}
+ {{ $title_length := 10 }}
+ {{ with .length }}
+ {{ $title_length = . }}
{{ end }}
- </div>
+ {{ if eq .align "left" }}
+ <div class="anim-wrapper col-md-{{ $title_length }} section-title-left">
+ <h2 class="section-heading anim zoomIn">{{ .title }}</h2>
+ <hr class="section-hr anim slideRight">
+ </div>
+ {{ else if eq .align "right" }}
+ <div class="anim-wrapper col-md-{{ $title_length }} col-md-offset-{{ sub 12 $title_length }} section-title-right">
+ <h2 class="section-heading anim zoomIn">{{ .title }}</h2>
+ <hr class="section-hr anim slideLeft">
+ </div>
+ {{ else }}
+ <div class="anim-wrapper col-md-{{ $title_length }} col-md-offset-{{ div (sub 12 $title_length) 2 }} section-title-center">
+ <h2 class="section-heading anim zoomIn">{{ .title }}</h2>
+ <hr class="section-hr anim zoomIn">
+ </div>
+ {{ end }}
+ {{ end }}
</div> \ No newline at end of file