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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Moreno <adrian@morenomartinez.com>2016-06-19 19:14:56 +0300
committerAdrian Moreno <adrian@morenomartinez.com>2016-06-19 19:14:56 +0300
commit6f03f59987e26415b0c49b2f74fa9cad0792f802 (patch)
tree50d2fb0f17481fcf780e9871be8952cf021ce5cc /layouts/partials
parent8428bc1a7ee2c9f583c6df9f4d0d1543f946b211 (diff)
Makes testimonials and clients configurable
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/clients.html24
-rw-r--r--layouts/partials/features.html62
-rw-r--r--layouts/partials/footer.html62
-rw-r--r--layouts/partials/nav.html8
-rw-r--r--layouts/partials/testimonials.html91
5 files changed, 42 insertions, 205 deletions
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">&copy; 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 }}