diff options
author | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-19 19:14:56 +0300 |
---|---|---|
committer | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-19 19:14:56 +0300 |
commit | 6f03f59987e26415b0c49b2f74fa9cad0792f802 (patch) | |
tree | 50d2fb0f17481fcf780e9871be8952cf021ce5cc | |
parent | 8428bc1a7ee2c9f583c6df9f4d0d1543f946b211 (diff) |
Makes testimonials and clients configurable
-rw-r--r-- | layouts/_default/list.html | 11 | ||||
-rw-r--r-- | layouts/partials/clients.html | 24 | ||||
-rw-r--r-- | layouts/partials/features.html | 62 | ||||
-rw-r--r-- | layouts/partials/footer.html | 62 | ||||
-rw-r--r-- | layouts/partials/nav.html | 8 | ||||
-rw-r--r-- | layouts/partials/testimonials.html | 91 | ||||
-rw-r--r-- | static/img/customer-1.png | bin | 24273 -> 0 bytes | |||
-rw-r--r-- | static/img/customer-2.png | bin | 34701 -> 0 bytes | |||
-rw-r--r-- | static/img/customer-3.png | bin | 13326 -> 0 bytes | |||
-rw-r--r-- | static/img/customer-4.png | bin | 19331 -> 0 bytes | |||
-rw-r--r-- | static/img/customer-5.png | bin | 47252 -> 0 bytes | |||
-rw-r--r-- | static/img/customer-6.png | bin | 47664 -> 0 bytes | |||
-rw-r--r-- | static/img/person-1.jpg | bin | 79232 -> 0 bytes | |||
-rw-r--r-- | static/img/person-2.jpg | bin | 56060 -> 0 bytes | |||
-rw-r--r-- | static/img/person-3.png | bin | 268482 -> 0 bytes | |||
-rw-r--r-- | static/img/person-4.jpg | bin | 147098 -> 0 bytes |
16 files changed, 52 insertions, 206 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 152a0f5..2f7fbb0 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -38,7 +38,16 @@ <div class="col-md-8"> <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <div class="clearfix"> - <p class="author-category">{{ if .Params.author }}By <a href="#">{{ .Params.author }}</a> {{ end }}in <a href="blog.html">Webdesign</a> + <p class="author-category"> + {{ if isset .Params "author" }} + By <a href="#">{{ .Params.author }}</a> + {{ end }} + {{ if isset .Params "categories" }} + {{ if gt (len .Params.categories) 0 }} + in <a href="{{ $.Site.BaseURL }}categories/{{ index .Params.categories 0 | urlize | lower }}">{{ index .Params.categories 0 }}</a> + {{ end }} + {{ end }} + </p> <p class="date-comments"> <a href="{{ .Permalink }}"><i class="fa fa-calendar-o"></i> {{ .Date.Format "January 2, 2006" }}</a> diff --git a/layouts/partials/clients.html b/layouts/partials/clients.html index 9ab5f29..f67e41c 100644 --- a/layouts/partials/clients.html +++ b/layouts/partials/clients.html @@ -1,3 +1,5 @@ +{{ if isset .Site.Params "clients" }} +{{ if gt (len .Site.Params.clients) 0 }} <section class="bar background-gray no-mb"> <div class="container"> <div class="row"> @@ -5,26 +7,12 @@ <div class="heading text-center"> <h2>Our clients</h2> </div> - <ul class="owl-carousel customers"> + {{ range .Site.Params.clients }} <li class="item"> - <img src="img/customer-1.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-2.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-3.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-4.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-5.png" alt="" class="img-responsive"> - </li> - <li class="item"> - <img src="img/customer-6.png" alt="" class="img-responsive"> + <img src="{{ .image }}" alt="{{ .name }}" class="img-responsive"> </li> + {{ end }} </ul> <!-- /.owl-carousel --> </div> @@ -32,3 +20,5 @@ </div> </div> </section> +{{ end }} +{{ end }} diff --git a/layouts/partials/features.html b/layouts/partials/features.html index 3fe5e9a..f3e4149 100644 --- a/layouts/partials/features.html +++ b/layouts/partials/features.html @@ -1,67 +1,23 @@ +{{ if isset .Site.Params "features" }} +{{ if gt (len .Site.Params.features) 0 }} <section class="bar background-white"> <div class="container"> <div class="col-md-12"> - - <div class="row"> + {{ range .Site.Params.features }} <div class="col-md-4"> <div class="box-simple"> <div class="icon"> - <i class="fa fa-desktop"></i> + <i class="{{ .icon }}"></i> </div> - <h3>Webdesign</h3> - <p>Fifth abundantly made Give sixth hath. Cattle creature i be don't them behold green moved fowl Moved life us beast good yielding. Have bring.</p> - </div> - </div> - <div class="col-md-4"> - <div class="box-simple"> - <div class="icon"> - <i class="fa fa-print"></i> - </div> - <h3>Print</h3> - <p>Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil. Prepare garrets it expense windows shewing do an.</p> - </div> - </div> - <div class="col-md-4"> - <div class="box-simple"> - <div class="icon"> - <i class="fa fa-globe"></i> - </div> - <h3>SEO and SEM</h3> - <p>Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect.</p> - </div> - </div> - </div> - - <div class="row"> - <div class="col-md-4"> - <div class="box-simple"> - <div class="icon"> - <i class="fa fa-lightbulb-o"></i> - </div> - <h3>Consulting</h3> - <p>Fifth abundantly made Give sixth hath. Cattle creature i be don't them behold green moved fowl Moved life us beast good yielding. Have bring.</p> - </div> - </div> - <div class="col-md-4"> - <div class="box-simple"> - <div class="icon"> - <i class="fa fa-envelope-o"></i> - </div> - <h3>Email Marketing</h3> - <p>Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil. Prepare garrets it expense windows shewing do an.</p> - </div> - </div> - <div class="col-md-4"> - <div class="box-simple"> - <div class="icon"> - <i class="fa fa-user"></i> - </div> - <h3>UX</h3> - <p>Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect.</p> + <h3>{{ .name }}</h3> + <p>{{ .description }}</p> </div> </div> + {{ end }} </div> </div> </div> </section> +{{ end }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f539214..0bf19d0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@ <footer id="footer"> <div class="container"> - <div class="col-md-3 col-sm-6"> + <div class="col-md-4 col-sm-6"> <h4>About us</h4> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p> @@ -27,18 +27,18 @@ <hr class="hidden-md hidden-lg hidden-sm"> </div> - <!-- /.col-md-3 --> + <!-- /.col-md-4 --> - <div class="col-md-3 col-sm-6"> + <div class="col-md-4 col-sm-6"> - <h4>Blog</h4> + <h4>Recent posts</h4> <div class="blog-entries"> {{ range first 3 (where .Site.Pages "Type" "post") }} <div class="item same-height-row clearfix"> <div class="image same-height-always"> <a href="#"> - {{ if .Params.image }} + {{ if isset .Params "image" }} <img src="{{ .Site.BaseURL}}{{ .Params.image }}" alt="" class="img-responsive"> {{ end }} </a> @@ -53,9 +53,9 @@ <hr class="hidden-md hidden-lg"> </div> - <!-- /.col-md-3 --> + <!-- /.col-md-4 --> - <div class="col-md-3 col-sm-6"> + <div class="col-md-4 col-sm-6"> <h4>Contact</h4> @@ -73,49 +73,8 @@ <hr class="hidden-md hidden-lg hidden-sm"> </div> - <!-- /.col-md-3 --> + <!-- /.col-md-4 --> - - - <div class="col-md-3 col-sm-6"> - - <h4>Photostream</h4> - - <div class="photostream"> - <div> - <a href="#"> - <img src="{{ .Site.BaseURL }}img/detailsquare.jpg" class="img-responsive" alt="#"> - </a> - </div> - <div> - <a href="#"> - <img src="{{ .Site.BaseURL }}img/detailsquare2.jpg" class="img-responsive" alt="#"> - </a> - </div> - <div> - <a href="#"> - <img src="{{ .Site.BaseURL }}img/detailsquare3.jpg" class="img-responsive" alt="#"> - </a> - </div> - <div> - <a href="#"> - <img src="{{ .Site.BaseURL }}img/detailsquare3.jpg" class="img-responsive" alt="#"> - </a> - </div> - <div> - <a href="#"> - <img src="{{ .Site.BaseURL }}img/detailsquare2.jpg" class="img-responsive" alt="#"> - </a> - </div> - <div> - <a href="#"> - <img src="{{ .Site.BaseURL }}img/detailsquare.jpg" class="img-responsive" alt="#"> - </a> - </div> - </div> - - </div> - <!-- /.col-md-3 --> </div> <!-- /.container --> </footer> @@ -131,10 +90,11 @@ _________________________________________________________ --> <div class="container"> <div class="col-md-12"> <p class="pull-left">© 2015. Your company / name goes here</p> - <p class="pull-right">Template by <a href="http://bootstrapious.com/free-templates">Bootstrapious</a> + <p class="pull-right"> + Template by <a href="http://bootstrapious.com/free-templates">Bootstrapious</a>. + Ported by <a href="http://devcows.com">DevCows</a> <!-- Not removing these links is part of the licence conditions of the template. Thanks for understanding :) --> </p> - </div> </div> </div> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index bf8e016..fe08596 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -4,7 +4,7 @@ <div class="container"> <div class="navbar-header"> - <a class="navbar-brand home" href="index.html"> + <a class="navbar-brand home" href="{{ .Site.BaseURL }}"> <img src="{{ .Site.BaseURL }}img/logo.png" alt="Universal logo" class="hidden-xs hidden-sm"> <img src="{{ .Site.BaseURL }}img/logo-small.png" alt="Universal logo" class="visible-xs visible-sm"><span class="sr-only">Universal - go to homepage</span> </a> @@ -19,10 +19,10 @@ <div class="navbar-collapse collapse" id="navigation"> <ul class="nav navbar-nav navbar-right"> - {{ $local := . }} - {{ range .Site.Menus.main.ByWeight }} + {{ $root := . }} + {{ range .Site.Params.menu }} <li class="dropdown"> - <a href="{{ $local.Site.BaseURL }}{{ .URL }}">{{ .Name }}</a> + <a href="{{ .url | absURL }}">{{ .name }}</a> </li> {{ end }} </ul> diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html index 37c4866..1adec28 100644 --- a/layouts/partials/testimonials.html +++ b/layouts/partials/testimonials.html @@ -1,3 +1,5 @@ +{{ if isset .Site.Params "testimonials" }} +{{ if gt (len .Site.Params.testimonials) 0 }} <section class="bar background-pentagon no-mb"> <div class="container"> <div class="row"> @@ -8,100 +10,27 @@ <p class="lead">We have worked with many clients and we always like to hear they come out from the cooperation happy and satisfied. Have a look what our clients said about us.</p> - - <!-- *** TESTIMONIALS CAROUSEL *** - _________________________________________________________ --> + <!-- *** TESTIMONIALS CAROUSEL *** --> <ul class="owl-carousel testimonials same-height-row"> + {{ range .Site.Params.testimonials }} <li class="item"> <div class="testimonial same-height-always"> <div class="text"> - <p>One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, - slightly domed and divided by arches into stiff sections.</p> - </div> - <div class="bottom"> - <div class="icon"><i class="fa fa-quote-left"></i> - </div> - <div class="name-picture"> - <img class="" alt="" src="img/person-1.jpg"> - <h5>John McIntyre</h5> - <p>CEO, TransTech</p> - </div> - </div> - </div> - </li> - <li class="item"> - <div class="testimonial same-height-always"> - <div class="text"> - <p>The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's happened to me? " he - thought. It wasn't a dream.</p> - </div> - <div class="bottom"> - <div class="icon"><i class="fa fa-quote-left"></i> - </div> - <div class="name-picture"> - <img class="" alt="" src="img/person-2.jpg"> - <h5>John McIntyre</h5> - <p>CEO, TransTech</p> - </div> - </div> - </div> - </li> - <li class="item"> - <div class="testimonial same-height-always"> - <div class="text"> - <p>His room, a proper human room although a little too small, lay peacefully between its four familiar walls.</p> - - <p>A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. - </p> - </div> - <div class="bottom"> - <div class="icon"><i class="fa fa-quote-left"></i> - </div> - <div class="name-picture"> - <img class="" alt="" src="img/person-3.png"> - <h5>John McIntyre</h5> - <p>CEO, TransTech</p> - </div> - </div> - </div> - </li> - <li class="item"> - <div class="testimonial same-height-always"> - <div class="text"> - <p>It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. - Drops of rain could be heard hitting the pane, which made him feel quite sad.</p> - </div> - - <div class="bottom"> - <div class="icon"><i class="fa fa-quote-left"></i> - </div> - <div class="name-picture"> - <img class="" alt="" src="img/person-4.jpg"> - <h5>John McIntyre</h5> - <p>CEO, TransTech</p> - </div> - </div> - </div> - </li> - <li class="item"> - <div class="testimonial same-height-always"> - <div class="text"> - <p>It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. - Drops of rain could be heard hitting the pane, which made him feel quite sad. Gregor then turned to look out the window at the dull weather. Drops of rain could be heard hitting the pane, which made him feel quite sad.</p> + <p>{{ .text }}</p> </div> - <div class="bottom"> <div class="icon"><i class="fa fa-quote-left"></i> </div> <div class="name-picture"> - <img class="" alt="" src="img/person-4.jpg"> - <h5>John McIntyre</h5> - <p>CEO, TransTech</p> + <img class="" alt="" src="{{ .avatar | absURL }}"> + <h5>{{ .name }}</h5> + <p>{{ .position }}</p> </div> </div> </div> </li> + {{ end }} </ul> <!-- /.owl-carousel --> @@ -112,3 +41,5 @@ </div> </section> <!-- /.bar --> +{{ end }} +{{ end }} diff --git a/static/img/customer-1.png b/static/img/customer-1.png Binary files differdeleted file mode 100644 index 131bef2..0000000 --- a/static/img/customer-1.png +++ /dev/null diff --git a/static/img/customer-2.png b/static/img/customer-2.png Binary files differdeleted file mode 100644 index aefb5b0..0000000 --- a/static/img/customer-2.png +++ /dev/null diff --git a/static/img/customer-3.png b/static/img/customer-3.png Binary files differdeleted file mode 100644 index 69cd03e..0000000 --- a/static/img/customer-3.png +++ /dev/null diff --git a/static/img/customer-4.png b/static/img/customer-4.png Binary files differdeleted file mode 100644 index c906944..0000000 --- a/static/img/customer-4.png +++ /dev/null diff --git a/static/img/customer-5.png b/static/img/customer-5.png Binary files differdeleted file mode 100644 index bdd6625..0000000 --- a/static/img/customer-5.png +++ /dev/null diff --git a/static/img/customer-6.png b/static/img/customer-6.png Binary files differdeleted file mode 100644 index b9b6797..0000000 --- a/static/img/customer-6.png +++ /dev/null diff --git a/static/img/person-1.jpg b/static/img/person-1.jpg Binary files differdeleted file mode 100644 index 11c4cb3..0000000 --- a/static/img/person-1.jpg +++ /dev/null diff --git a/static/img/person-2.jpg b/static/img/person-2.jpg Binary files differdeleted file mode 100644 index 1abb3e9..0000000 --- a/static/img/person-2.jpg +++ /dev/null diff --git a/static/img/person-3.png b/static/img/person-3.png Binary files differdeleted file mode 100644 index cfa6fbd..0000000 --- a/static/img/person-3.png +++ /dev/null diff --git a/static/img/person-4.jpg b/static/img/person-4.jpg Binary files differdeleted file mode 100644 index d08cf7e..0000000 --- a/static/img/person-4.jpg +++ /dev/null |