diff options
author | somrat <monnaf37@gmail.com> | 2020-05-18 07:07:46 +0300 |
---|---|---|
committer | somrat <monnaf37@gmail.com> | 2020-05-18 07:07:46 +0300 |
commit | fc5853e64c150cc7fdbccbd09ed021def17f00c2 (patch) | |
tree | 59672988d947a9227e2a2be06c4a253fced542f5 | |
parent | 52a88488ba78e90bd1b86ec04ad3365e11e9ba13 (diff) |
improve reliability
-rw-r--r-- | exampleSite/data/homepage.yml | 32 | ||||
-rw-r--r-- | layouts/partials/blog.html | 2 | ||||
-rw-r--r-- | layouts/partials/contact.html | 2 | ||||
-rw-r--r-- | layouts/partials/food-menu.html | 2 | ||||
-rw-r--r-- | layouts/partials/gallery.html | 6 | ||||
-rw-r--r-- | layouts/partials/hero-area.html | 6 | ||||
-rw-r--r-- | layouts/partials/subscription.html | 4 |
7 files changed, 27 insertions, 27 deletions
diff --git a/exampleSite/data/homepage.yml b/exampleSite/data/homepage.yml index 3389fb1..be55004 100644 --- a/exampleSite/data/homepage.yml +++ b/exampleSite/data/homepage.yml @@ -1,22 +1,22 @@ ################## Hero area ################## -heroArea: +hero_area: enable : true - bgImage : "images/header.jpg" + bg_image : "images/header.jpg" overlay : true ################### Gallery ################### gallery: enable : true title : "FEATURED WORKS" - sliderItem: - - image : "images/slider/slider-img-1.jpg" - - image : "images/slider/slider-img-2.jpg" - - image : "images/slider/slider-img-3.jpg" - - image : "images/slider/slider-img-4.jpg" - - image : "images/slider/slider-img-1.jpg" - - image : "images/slider/slider-img-2.jpg" - - image : "images/slider/slider-img-3.jpg" - - image : "images/slider/slider-img-4.jpg" + images: + - "images/slider/slider-img-1.jpg" + - "images/slider/slider-img-2.jpg" + - "images/slider/slider-img-3.jpg" + - "images/slider/slider-img-4.jpg" + - "images/slider/slider-img-1.jpg" + - "images/slider/slider-img-2.jpg" + - "images/slider/slider-img-3.jpg" + - "images/slider/slider-img-4.jpg" ################ About ####################### about: @@ -29,7 +29,7 @@ about: blog: enable : true title : "Our Latest <span>Blog</span>" - bgImage : "images/blog/blog-bg.jpg" + bg_image : "images/blog/blog-bg.jpg" overlay : true @@ -39,7 +39,7 @@ pricing: title : "Our Easy <span>PRICE</span>" description: " Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco" subtitle : "FEATURED ON THE WEEK" - pricingItem: + pricing_item: - title: "Pancakes n' Such Titas" description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim&&" price : "$ 125.00" @@ -63,11 +63,11 @@ pricing: ################### Subscription ################ subscription: enable : true - bgImage : "images/subscribe-bg.jpg" + bg_image : "images/subscribe-bg.jpg" title : "SUBSCRIBE to our <span>NEWSLETTER</span>" description : "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod" #Mailchimp subscription configaration - formAction : "https://themefisher.us9.list-manage.com/subscribe/post?u=f95ece2732a6e9925f2e70a61&id=b1e227529e" + form_action : "https://themefisher.us9.list-manage.com/subscribe/post?u=f95ece2732a6e9925f2e70a61&id=b1e227529e" formName : "b_f95ece2732a6e9925f2e70a61_b1e227529e" overlay : true @@ -76,4 +76,4 @@ contact: enable : true title: "Let's <span> Contact Us </span>" subtitle: "SIGN UP FOR EMAIL ALERTS" - formAction : "#" #contact form works with formspree.io + form_action : "#" #contact form works with formspree.io diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index b490999..01ba974 100644 --- a/layouts/partials/blog.html +++ b/layouts/partials/blog.html @@ -1,6 +1,6 @@ {{ if .Site.Data.homepage.blog.enable}} <section id="blog" {{ if .Site.Data.homepage.blog.overlay }} class="overlay" {{ end }} - style="background-image: url('{{ .Site.Data.homepage.blog.bgImage | absURL }}');"> + style="background-image: url('{{ .Site.Data.homepage.blog.bg_image | absURL }}');"> <div class="container"> <div class="row"> <div class="col-md-12"> diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html index c68372b..fe747a7 100644 --- a/layouts/partials/contact.html +++ b/layouts/partials/contact.html @@ -7,7 +7,7 @@ <div class="block"> <h1 class=" heading wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms">{{ .title | markdownify }}</h1> <h3 class="title wow fadeInLeft" data-wow-duration="500ms" data-wow-delay="300ms">{{ .subtitle | markdownify }}</h3> - <form action="{{ .formAction }}" method="POST"> + <form action="{{ .form_action }}" method="POST"> <div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay="600ms"> <input type="email" name="email" class="form-control" placeholder="Write your email address here..."> </div> diff --git a/layouts/partials/food-menu.html b/layouts/partials/food-menu.html index 985a121..b06d430 100644 --- a/layouts/partials/food-menu.html +++ b/layouts/partials/food-menu.html @@ -14,7 +14,7 @@ <h3>{{ .subtitle | markdownify }}</h3> </div> <ul> - {{ range .pricingItem }} + {{ range .pricing_item }} <li class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms"> <div class="item"> <div class="item-title"> diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html index 4d08399..a317ab8 100644 --- a/layouts/partials/gallery.html +++ b/layouts/partials/gallery.html @@ -9,9 +9,9 @@ <h3>{{ .title | markdownify }}</h3> </div> <div class="gallery-slider"> - {{ range .sliderItem }} - <a href="{{ .image | absURL }}" class="venobox" data-gall="sliderGallery"><img class="img-responsive" - src="{{ .image | absURL }}" alt=""></a> + {{ range .images }} + <a href="{{ . | absURL }}" class="venobox" data-gall="sliderGallery"><img class="img-responsive" + src="{{ . | absURL }}" alt=""></a> {{ end }} </div> </div> diff --git a/layouts/partials/hero-area.html b/layouts/partials/hero-area.html index 7398d20..45291b8 100644 --- a/layouts/partials/hero-area.html +++ b/layouts/partials/hero-area.html @@ -1,8 +1,8 @@ {{ "<!-- header-img start -->" | safeHTML }} -{{ if .Site.Data.homepage.heroArea.enable }} -{{ with .Site.Data.homepage.heroArea }} +{{ if .Site.Data.homepage.hero_area.enable }} +{{ with .Site.Data.homepage.hero_area }} <section id="hero-area" {{ if .overlay }} class="overlay" {{ end }}> - <img class="img-responsive" src="{{ .bgImage | absURL }}"> + <img class="img-responsive" src="{{ .bg_image | absURL }}"> </section> {{ end }} {{ end }}
\ No newline at end of file diff --git a/layouts/partials/subscription.html b/layouts/partials/subscription.html index 7120b22..5a3ca74 100644 --- a/layouts/partials/subscription.html +++ b/layouts/partials/subscription.html @@ -1,7 +1,7 @@ {{ if .Site.Data.homepage.subscription.enable }} {{ with .Site.Data.homepage.subscription }} <section id="subscribe" {{ if .overlay }} class="overlay" {{ end }} - style="background-image: url('{{ .bgImage | absURL }}');"> + style="background-image: url('{{ .bg_image | absURL }}');"> <div class="container"> <div class="row"> <div class="col-md-12"> @@ -23,7 +23,7 @@ We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */ </style> <div id="mc_embed_signup"> - <form action="{{ .formAction | safeURL }}" method="post" id="mc-embedded-subscribe-form" + <form action="{{ .form_action | safeURL }}" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> <div id="mc_embed_signup_scroll"> <div class="mc-field-group"> |