diff options
author | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-29 17:52:12 +0300 |
---|---|---|
committer | Adrian Moreno <adrian@morenomartinez.com> | 2016-06-29 17:52:12 +0300 |
commit | 8282522f548cd23a1119e4c52d5ae1df8fc46469 (patch) | |
tree | 89d95ef44935fb428c13b49b597c94f3f37d8ec3 | |
parent | 8f067fb99323e5053006053c19f2a7b3341b23cc (diff) |
Store homepage configuration in data directory
29 files changed, 156 insertions, 138 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 34b03bb..3a201bb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -29,7 +29,7 @@ theme = "universal" email = "info@devcows.com" about_us = "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>" - copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved." + copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved." date_format = "2006-01-02" logo = "img/logo.png" address = """<p><strong>Universal Ltd.</strong> @@ -41,8 +41,6 @@ theme = "universal" <strong>Great Britain</strong> </p> """ - testimonials_intro = "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." - blog_intro = "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo." [[params.menu]] name = "Home" @@ -73,126 +71,43 @@ theme = "universal" tags = true search = true +[params.carousel] + enable = true + # All carousel items are defined in their own files. You can find example items + # at 'exampleSite/data/carousel'. + # For more informtion take a look at the README. + +[params.features] + enable = true + # All features are defined in their own files. You can find example items + # at 'exampleSite/data/features'. + # For more informtion take a look at the README. + +[params.testimonials] + enable = true + # All testimonials are defined in their own files. You can find example items + # at 'exampleSite/data/testimonials'. + # For more informtion take a look at the README. + title = "Testimonials" + subtitle = "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." + [params.see_more] + enable = true icon = "fa fa-file-code-o" title = "Do you want to see less?" subtitle = "We have prepared for you more than 40 different HTML pages, including 5 variations of homepage." link_url = "#" link_text = "Check other homepages" -[[params.carousel]] - title = "Multipurpose responsive theme" - description = "<p>Business. Corporate. Agency.<br>Portfolio. Blog. E-commerce.</p>" - image = "img/carousel/template-homepage.png" - -[[params.carousel]] - title = "46 HTML pages full of features" - description = """<ul class="list-style-none"> - <li>Sliders and carousels</li> - <li>4 Header variations</li> - <li>Google maps, Forms, Megamenu, CSS3 Animations and much more</li> - <li>+ 11 extra pages showing template features</li> - </ul>""" - image = "img/carousel/template-mac.png" - -[[params.carousel]] - title = "Design" - description = """<ul class="list-style-none"> - <li>Clean and elegant design</li> - <li>Full width and boxed mode</li> - <li>Easily readable Roboto font and awesome icons</li> - <li>7 preprepared colour variations</li> - </ul>""" - image = "img/carousel/template-easy-customize.png" - -[[params.carousel]] - title = "Easy to customize" - description = """<ul class="list-style-none"> - <li>7 preprepared colour variations.</li> - <li>Easily to change fonts</li> - </ul>""" - image = "img/carousel/template-easy-code.png" - -[[params.features]] - name = "Webdesign" - icon = "fa fa-desktop" - description = "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." - -[[params.features]] - name = "Print" - icon = "fa fa-print" - description = "Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil." - -[[params.features]] - name = "SEO and SEM" - icon = "fa fa-globe" - description = "Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect." - -[[params.features]] - name = "Consulting" - icon = "fa fa-lightbulb-o" - description = "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." - -[[params.features]] - name = "Email Marketing" - icon = "fa fa-envelope-o" - description = "Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil." - -[[params.features]] - name = "UI/UX" - icon = "fa fa-user" - description = "Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect." - -[[params.testimonials]] - text = "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." - name = "John McIntyre" - position = "CEO, TransTech" - avatar = "img/testimonials/person-1.jpg" - -[[params.testimonials]] - text = "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." - name = "John McIntyre" - position = "CEO, TransTech" - avatar = "img/testimonials/person-2.jpg" - -[[params.testimonials]] - text = "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." - name = "John McIntyre" - position = "CEO, TransTech" - avatar = "img/testimonials/person-3.png" - -[[params.testimonials]] - text = "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." - name = "John McIntyre" - position = "CEO, TransTech" - avatar = "img/testimonials/person-4.jpg" - -[[params.testimonials]] - text = "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." - name = "John McIntyre" - position = "CEO, TransTech" - avatar = "img/testimonials/person-1.jpg" - -[[params.clients]] - name = "customer-1" - image = "img/clients/customer-1.png" - -[[params.clients]] - name = "customer-2" - image = "img/clients/customer-2.png" - -[[params.clients]] - name = "customer-3" - image = "img/clients/customer-3.png" - -[[params.clients]] - name = "customer-4" - image = "img/clients/customer-4.png" - -[[params.clients]] - name = "customer-5" - image = "img/clients/customer-5.png" - -[[params.clients]] - name = "customer-6" - image = "img/clients/customer-6.png" +[params.clients] + enable = true + # All clients are defined in their own files. You can find example items + # at 'exampleSite/data/clients'. + # For more informtion take a look at the README. + title = "Our Clients" + subtitle = "" + +[params.recent_posts] + enable = true + title = "From our blog" + subtitle = "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo." diff --git a/exampleSite/data/carousel/customizable.yaml b/exampleSite/data/carousel/customizable.yaml new file mode 100644 index 0000000..6112d05 --- /dev/null +++ b/exampleSite/data/carousel/customizable.yaml @@ -0,0 +1,8 @@ +weight: 4 +title: "Easy to customize" +description: > + <ul class="list-style-none"> + <li>7 preprepared colour variations.</li> + <li>Easily to change fonts</li> + </ul> +image: "img/carousel/template-easy-code.png" diff --git a/exampleSite/data/carousel/design.yaml b/exampleSite/data/carousel/design.yaml new file mode 100644 index 0000000..53ceed7 --- /dev/null +++ b/exampleSite/data/carousel/design.yaml @@ -0,0 +1,10 @@ +weight: 3 +title: "Design" +description: > + <ul class="list-style-none"> + <li>Clean and elegant design</li> + <li>Full width and boxed mode</li> + <li>Easily readable Roboto font and awesome icons</li> + <li>7 preprepared colour variations</li> + </ul> +image: "img/carousel/template-easy-customize.png" diff --git a/exampleSite/data/carousel/features.yaml b/exampleSite/data/carousel/features.yaml new file mode 100644 index 0000000..8b30ab2 --- /dev/null +++ b/exampleSite/data/carousel/features.yaml @@ -0,0 +1,10 @@ +weight: 2 +title: "46 HTML pages full of features" +description: > + <ul class="list-style-none"> + <li>Sliders and carousels</li> + <li>4 Header variations</li> + <li>Google maps, Forms, Megamenu, CSS3 Animations and much more</li> + <li>+ 11 extra pages showing template features</li> + </ul> +image: "img/carousel/template-mac.png" diff --git a/exampleSite/data/carousel/multipurpose.yaml b/exampleSite/data/carousel/multipurpose.yaml new file mode 100644 index 0000000..cde7087 --- /dev/null +++ b/exampleSite/data/carousel/multipurpose.yaml @@ -0,0 +1,4 @@ +weight: 1 +title: "Multipurpose responsive theme" +description: "<p>Business. Corporate. Agency.<br>Portfolio. Blog. E-commerce.</p>" +image: "img/carousel/template-homepage.png" diff --git a/exampleSite/data/clients/1.yaml b/exampleSite/data/clients/1.yaml new file mode 100644 index 0000000..ea827fb --- /dev/null +++ b/exampleSite/data/clients/1.yaml @@ -0,0 +1,2 @@ +name: "customer-1" +image: "img/clients/customer-1.png" diff --git a/exampleSite/data/clients/2.yaml b/exampleSite/data/clients/2.yaml new file mode 100644 index 0000000..63a599c --- /dev/null +++ b/exampleSite/data/clients/2.yaml @@ -0,0 +1,2 @@ +name: "customer-2" +image: "img/clients/customer-2.png" diff --git a/exampleSite/data/clients/3.yaml b/exampleSite/data/clients/3.yaml new file mode 100644 index 0000000..c3be20c --- /dev/null +++ b/exampleSite/data/clients/3.yaml @@ -0,0 +1,2 @@ +name: "customer-3" +image: "img/clients/customer-3.png" diff --git a/exampleSite/data/clients/4.yaml b/exampleSite/data/clients/4.yaml new file mode 100644 index 0000000..33b8981 --- /dev/null +++ b/exampleSite/data/clients/4.yaml @@ -0,0 +1,2 @@ +name: "customer-4" +image: "img/clients/customer-4.png" diff --git a/exampleSite/data/clients/5.yaml b/exampleSite/data/clients/5.yaml new file mode 100644 index 0000000..2adaaa4 --- /dev/null +++ b/exampleSite/data/clients/5.yaml @@ -0,0 +1,2 @@ +name: "customer-5" +image: "img/clients/customer-5.png" diff --git a/exampleSite/data/clients/6.yaml b/exampleSite/data/clients/6.yaml new file mode 100644 index 0000000..d28cdc5 --- /dev/null +++ b/exampleSite/data/clients/6.yaml @@ -0,0 +1,2 @@ +name: "customer-6" +image: "img/clients/customer-6.png" diff --git a/exampleSite/data/features/consulting.yaml b/exampleSite/data/features/consulting.yaml new file mode 100644 index 0000000..7f62850 --- /dev/null +++ b/exampleSite/data/features/consulting.yaml @@ -0,0 +1,4 @@ +weight: 4 +name: "Consulting" +icon: "fa fa-lightbulb-o" +description: "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." diff --git a/exampleSite/data/features/email.yaml b/exampleSite/data/features/email.yaml new file mode 100644 index 0000000..327081f --- /dev/null +++ b/exampleSite/data/features/email.yaml @@ -0,0 +1,4 @@ +weight: 5 +name: "Email Marketing" +icon: "fa fa-envelope-o" +description: "Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil." diff --git a/exampleSite/data/features/print.yaml b/exampleSite/data/features/print.yaml new file mode 100644 index 0000000..9057565 --- /dev/null +++ b/exampleSite/data/features/print.yaml @@ -0,0 +1,4 @@ +weight: 2 +name: "Print" +icon: "fa fa-print" +description: "Advantage old had otherwise sincerity dependent additions. It in adapted natural hastily is justice. Six draw you him full not mean evil." diff --git a/exampleSite/data/features/seo.yaml b/exampleSite/data/features/seo.yaml new file mode 100644 index 0000000..c0f165f --- /dev/null +++ b/exampleSite/data/features/seo.yaml @@ -0,0 +1,4 @@ +weight: 3 +name: "SEO and SEM" +icon: "fa fa-globe" +description: "Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect." diff --git a/exampleSite/data/features/uiux.yaml b/exampleSite/data/features/uiux.yaml new file mode 100644 index 0000000..1257208 --- /dev/null +++ b/exampleSite/data/features/uiux.yaml @@ -0,0 +1,4 @@ +weight: 6 +name: "UI/UX" +icon: "fa fa-user" +description: "Am terminated it excellence invitation projection as. She graceful shy believed distance use nay. Lively is people so basket ladies window expect." diff --git a/exampleSite/data/features/webdesign.yaml b/exampleSite/data/features/webdesign.yaml new file mode 100644 index 0000000..097bc1a --- /dev/null +++ b/exampleSite/data/features/webdesign.yaml @@ -0,0 +1,4 @@ +weight: 1 +name: "Webdesign" +icon: "fa fa-desktop" +description: "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." diff --git a/exampleSite/data/testimonials/1.yaml b/exampleSite/data/testimonials/1.yaml new file mode 100644 index 0000000..5eab770 --- /dev/null +++ b/exampleSite/data/testimonials/1.yaml @@ -0,0 +1,4 @@ +text: "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." +name: "John McIntyre" +position: "CEO, TransTech" +avatar: "img/testimonials/person-1.jpg" diff --git a/exampleSite/data/testimonials/2.yaml b/exampleSite/data/testimonials/2.yaml new file mode 100644 index 0000000..60c11e9 --- /dev/null +++ b/exampleSite/data/testimonials/2.yaml @@ -0,0 +1,4 @@ +text: "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." +name: "John McIntyre" +position: "CEO, TransTech" +avatar: "img/testimonials/person-2.jpg" diff --git a/exampleSite/data/testimonials/3.yaml b/exampleSite/data/testimonials/3.yaml new file mode 100644 index 0000000..9226212 --- /dev/null +++ b/exampleSite/data/testimonials/3.yaml @@ -0,0 +1,4 @@ +text: "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." +name: "John McIntyre" +position: "CEO, TransTech" +avatar: "img/testimonials/person-3.png" diff --git a/exampleSite/data/testimonials/4.yaml b/exampleSite/data/testimonials/4.yaml new file mode 100644 index 0000000..1adc7e1 --- /dev/null +++ b/exampleSite/data/testimonials/4.yaml @@ -0,0 +1,4 @@ +text: "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." +name: "John McIntyre" +position: "CEO, TransTech" +avatar: "img/testimonials/person-4.jpg" diff --git a/exampleSite/data/testimonials/5.yaml b/exampleSite/data/testimonials/5.yaml new file mode 100644 index 0000000..5eab770 --- /dev/null +++ b/exampleSite/data/testimonials/5.yaml @@ -0,0 +1,4 @@ +text: "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." +name: "John McIntyre" +position: "CEO, TransTech" +avatar: "img/testimonials/person-1.jpg" diff --git a/layouts/index.html b/layouts/index.html index f400b13..7116234 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,7 +19,7 @@ {{ partial "testimonials.html" . }} - {{ partial "more.html" . }} + {{ partial "see_more.html" . }} {{ partial "blog.html" . }} diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index 555efa4..45dd722 100644 --- a/layouts/partials/blog.html +++ b/layouts/partials/blog.html @@ -1,16 +1,16 @@ +{{ if isset .Site.Params "recent_posts" }} +{{ if .Site.Params.recent_posts.enable }} <section class="bar background-white no-mb"> <div class="container"> <div class="col-md-12"> <div class="heading text-center"> - <h2>From our blog</h2> + <h2>{{ .Site.Params.recent_posts.title }}</h2> </div> - {{ if isset .Site.Params "blog_intro" }} <p class="lead"> - {{ .Site.Params.blog_intro }} + {{ .Site.Params.recent_posts.subtitle }} </p> - {{ end }} <!-- *** BLOG HOMEPAGE *** --> @@ -62,3 +62,5 @@ <!-- /.container --> </section> <!-- /.bar --> +{{ end }} +{{ end }} diff --git a/layouts/partials/carousel.html b/layouts/partials/carousel.html index d73be5a..4c701e5 100644 --- a/layouts/partials/carousel.html +++ b/layouts/partials/carousel.html @@ -1,11 +1,12 @@ {{ if isset .Site.Params "carousel" }} -{{ if gt (len .Site.Params.carousel) 0 }} +{{ if .Site.Params.carousel.enable }} +{{ if gt (len .Site.Data.carousel) 0 }} <section> <div class="home-carousel"> <div class="dark-mask"></div> <div class="container"> <div class="homepage owl-carousel"> - {{ range .Site.Params.carousel }} + {{ range .Site.Data.carousel }} <div class="item"> <div class="row"> <div class="col-sm-5 right"> @@ -25,3 +26,4 @@ </section> {{ end }} {{ end }} +{{ end }} diff --git a/layouts/partials/clients.html b/layouts/partials/clients.html index f67e41c..647d16f 100644 --- a/layouts/partials/clients.html +++ b/layouts/partials/clients.html @@ -1,14 +1,20 @@ -{{ if isset .Site.Params "clients" }} -{{ if gt (len .Site.Params.clients) 0 }} +{{ if isset .Site.Params "features" }} +{{ if .Site.Params.features.enable }} +{{ if gt (len .Site.Data.features) 0 }} <section class="bar background-gray no-mb"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="heading text-center"> - <h2>Our clients</h2> + <h2>{{ .Site.Params.clients.title }}</h2> </div> + + <p class="lead"> + {{ .Site.Params.clients.subtitle }} + </p> + <ul class="owl-carousel customers"> - {{ range .Site.Params.clients }} + {{ range .Site.Data.clients }} <li class="item"> <img src="{{ .image }}" alt="{{ .name }}" class="img-responsive"> </li> @@ -22,3 +28,4 @@ </section> {{ end }} {{ end }} +{{ end }} diff --git a/layouts/partials/features.html b/layouts/partials/features.html index f3e4149..254c4e9 100644 --- a/layouts/partials/features.html +++ b/layouts/partials/features.html @@ -1,10 +1,11 @@ {{ if isset .Site.Params "features" }} -{{ if gt (len .Site.Params.features) 0 }} +{{ if .Site.Params.features.enable }} +{{ if gt (len .Site.Data.features) 0 }} <section class="bar background-white"> <div class="container"> <div class="col-md-12"> <div class="row"> - {{ range .Site.Params.features }} + {{ range .Site.Data.features }} <div class="col-md-4"> <div class="box-simple"> <div class="icon"> @@ -21,3 +22,4 @@ </section> {{ end }} {{ end }} +{{ end }} diff --git a/layouts/partials/more.html b/layouts/partials/see_more.html index 2f563c6..08301c1 100644 --- a/layouts/partials/more.html +++ b/layouts/partials/see_more.html @@ -1,4 +1,5 @@ {{ if isset .Site.Params "see_more" }} +{{ if .Site.Params.see_more.enable }} <section class="bar background-image-fixed-2 no-mb color-white text-center"> <div class="dark-mask"></div> <div class="container"> @@ -17,3 +18,4 @@ </div> </section> {{ end }} +{{ end }} diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html index b6442db..ddcbebf 100644 --- a/layouts/partials/testimonials.html +++ b/layouts/partials/testimonials.html @@ -1,23 +1,22 @@ {{ if isset .Site.Params "testimonials" }} -{{ if gt (len .Site.Params.testimonials) 0 }} +{{ if .Site.Params.testimonials.enable }} +{{ if gt (len .Site.Data.testimonials) 0 }} <section class="bar background-pentagon no-mb"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="heading text-center"> - <h2>Testimonials</h2> + <h2>{{ .Site.Params.testimonials.title }}</h2> </div> - {{ if isset .Site.Params "testimonials_intro" }} <p class="lead"> - {{ .Site.Params.testimonials_intro }} + {{ .Site.Params.testimonials.subtitle }} </p> - {{ end }} <!-- *** TESTIMONIALS CAROUSEL *** --> <ul class="owl-carousel testimonials same-height-row"> - {{ range .Site.Params.testimonials }} + {{ range .Site.Data.testimonials }} <li class="item"> <div class="testimonial same-height-always"> <div class="text"> @@ -47,3 +46,4 @@ <!-- /.bar --> {{ end }} {{ end }} +{{ end }} |