diff options
author | Themefisher Dev <themefisher.dev@gmail.com> | 2020-02-18 07:25:46 +0300 |
---|---|---|
committer | Themefisher Dev <themefisher.dev@gmail.com> | 2020-02-18 07:25:46 +0300 |
commit | ef86074de5161699a7be9b2ddb0ac6f2ad7be0bb (patch) | |
tree | 8a934136411cb255d0a9d8fd53c7689d45ab0f01 | |
parent | 084ad038be46f95daf5ba35cabe398c2b0fbf8fc (diff) |
change some settings
-rw-r--r-- | exampleSite/config.toml | 126 | ||||
-rw-r--r-- | exampleSite/data/homepage.yml | 9 | ||||
-rw-r--r-- | layouts/partials/about.html | 19 | ||||
-rw-r--r-- | layouts/partials/blog.html | 51 | ||||
-rw-r--r-- | layouts/partials/food-menu.html | 60 | ||||
-rw-r--r-- | layouts/partials/gallery.html | 33 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 | ||||
-rw-r--r-- | layouts/partials/hero-area.html | 2 | ||||
-rw-r--r-- | layouts/partials/preloader.html | 4 | ||||
-rw-r--r-- | layouts/partials/subscription.html | 131 |
11 files changed, 221 insertions, 224 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d4c9945..5971866 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,75 +2,73 @@ baseURL = "http://example.org/" languageCode = "en-us" title = "Restaurant Theme By Themefisher" -theme="restaurant-hugo" +theme = "restaurant-hugo" summaryLength = "7" -paginate = 4 +paginate = 6 ############################# Plugins ############################## -[params.plugins] - - # CSS Plugins - [[params.plugins.css]] - URL = "css/bootstrap.min.css" - [[params.plugins.css]] - URL = "css/slick.css" - [[params.plugins.css]] - URL = "css/font-awesome.min.css" - [[params.plugins.css]] - URL = "css/animate.min.css" - [[params.plugins.css]] - URL = "css/venobox.css" - [[params.plugins.css]] - URL = "css/main.css" - [[params.plugins.css]] - URL = "css/responsive.css" - - # JS Plugins - [[params.plugins.js]] - URL = "js/jquery.min.js" - [[params.plugins.js]] - URL = "js/bootstrap.min.js" - [[params.plugins.js]] - URL = "js/slick.min.js" - [[params.plugins.js]] - URL = "js/wow.min.js" - [[params.plugins.js]] - URL = "js/venobox.min.js" - [[params.plugins.js]] - URL = "js/main.js" + +# CSS Plugins +[[params.plugins.css]] +URL = "css/bootstrap.min.css" +[[params.plugins.css]] +URL = "css/slick.css" +[[params.plugins.css]] +URL = "css/font-awesome.min.css" +[[params.plugins.css]] +URL = "css/animate.min.css" +[[params.plugins.css]] +URL = "css/venobox.css" +[[params.plugins.css]] +URL = "css/main.css" +[[params.plugins.css]] +URL = "css/responsive.css" + +# JS Plugins +[[params.plugins.js]] +URL = "js/jquery.min.js" +[[params.plugins.js]] +URL = "js/bootstrap.min.js" +[[params.plugins.js]] +URL = "js/slick.min.js" +[[params.plugins.js]] +URL = "js/wow.min.js" +[[params.plugins.js]] +URL = "js/venobox.min.js" +[[params.plugins.js]] +URL = "js/main.js" ############################## navigation ############################### -[menu] - - [[menu.main]] - name = "Home" - URL = "hero-area" - weight = 1 - - [[menu.main]] - name = "About Us" - URL = "about-us" - weight = 2 - - [[menu.main]] - name = "Blog" - URL = "blog" - weight = 3 - - [[menu.main]] - name = "Price" - URL = "price" - weight = 4 - - [[menu.main]] - name = "News" - URL = "subscribe" - weight = 5 - - [[menu.main]] - name = "Contact Us" - URL = "contact-us" - weight = 6 + +[[menu.main]] +name = "Home" +URL = "hero-area" +weight = 1 + +[[menu.main]] +name = "About Us" +URL = "about-us" +weight = 2 + +[[menu.main]] +name = "Blog" +URL = "blog" +weight = 3 + +[[menu.main]] +name = "Price" +URL = "price" +weight = 4 + +[[menu.main]] +name = "News" +URL = "subscribe" +weight = 5 + +[[menu.main]] +name = "Contact Us" +URL = "contact-us" +weight = 6 #################### default parameters ################################ diff --git a/exampleSite/data/homepage.yml b/exampleSite/data/homepage.yml index a606ea2..3389fb1 100644 --- a/exampleSite/data/homepage.yml +++ b/exampleSite/data/homepage.yml @@ -2,8 +2,7 @@ heroArea: enable : true bgImage : "images/header.jpg" - overlay: - enable : true + overlay : true ################### Gallery ################### gallery: @@ -31,8 +30,7 @@ blog: enable : true title : "Our Latest <span>Blog</span>" bgImage : "images/blog/blog-bg.jpg" - overlay: - enable : true + overlay : true ################# food Menu ################ @@ -71,8 +69,7 @@ subscription: #Mailchimp subscription configaration formAction : "https://themefisher.us9.list-manage.com/subscribe/post?u=f95ece2732a6e9925f2e70a61&id=b1e227529e" formName : "b_f95ece2732a6e9925f2e70a61_b1e227529e" - overlay: - enable : true + overlay : true ################ Contact ####################### contact: diff --git a/layouts/partials/about.html b/layouts/partials/about.html index ac367ad..90e4b2a 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -1,17 +1,18 @@ {{ if .Site.Data.homepage.about.enable }} {{ with .Site.Data.homepage.about }} <section id="about-us"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="block"> - <img class="img-responsive mx-auto" src="{{ .image | absURL }}" alt="Logo"/> - <h1 class="heading wow fadeInUp" data-wow-duration="400ms" data-wow-delay="500ms">{{ .title | markdownify }}</h1> - <p class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="600ms">{{ .description | markdownify }}</p> - </div> - </div> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="block"> + <img class="img-responsive mx-auto" src="{{ .image | absURL }}" alt="{{ .title }}" /> + <h1 class="heading wow fadeInUp" data-wow-duration="400ms" data-wow-delay="500ms">{{ .title | markdownify }} + </h1> + <p class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="600ms">{{ .description | markdownify }}</p> </div> + </div> </div> + </div> </section> {{end}} {{end}}
\ No newline at end of file diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index 85485af..b490999 100644 --- a/layouts/partials/blog.html +++ b/layouts/partials/blog.html @@ -1,28 +1,29 @@ {{ if .Site.Data.homepage.blog.enable}} -<section id="blog" {{ if .Site.Data.homepage.blog.overlay.enable }} class="overlay" {{ end }} style="background-image: url('{{ .Site.Data.homepage.blog.bgImage | absURL }}');"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="block"> - <h1 class="heading">{{ .Site.Data.homepage.blog.title | markdownify }}</h1> - <ul> - {{ $paginator := .Paginate .Site.RegularPages }} - {{ range $paginator.Pages }} - <li class="wow fadeInLeft" data-wow-duration="300ms" data-wow-delay="300ms"> - <div class="blog-img"> - <img src="{{ .Params.Image | absURL }}" alt="post-image" class="img-responsive"> - </div> - <div class="content-right"> - <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3> - <p>{{ .Summary }}</p> - </div> - </li> - {{ end }} - </ul> - </div> - </div><!-- .col-md-12 close --> - {{ template "_internal/pagination.html" . }} - </div><!-- .row close --> - </div><!-- .containe close --> +<section id="blog" {{ if .Site.Data.homepage.blog.overlay }} class="overlay" {{ end }} + style="background-image: url('{{ .Site.Data.homepage.blog.bgImage | absURL }}');"> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="block"> + <h1 class="heading">{{ .Site.Data.homepage.blog.title | markdownify }}</h1> + <ul> + {{ $paginator := .Paginate .Site.RegularPages }} + {{ range $paginator.Pages }} + <li class="wow fadeInLeft" data-wow-duration="300ms" data-wow-delay="300ms"> + <div class="blog-img"> + <img src="{{ .Params.Image | absURL }}" alt="post-image" class="img-responsive"> + </div> + <div class="content-right"> + <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3> + <p>{{ .Summary }}</p> + </div> + </li> + {{ end }} + </ul> + </div> + </div><!-- .col-md-12 close --> + {{ template "_internal/pagination.html" . }} + </div><!-- .row close --> + </div><!-- .containe close --> </section><!-- #blog close --> {{end}}
\ No newline at end of file diff --git a/layouts/partials/food-menu.html b/layouts/partials/food-menu.html index 505781c..985a121 100644 --- a/layouts/partials/food-menu.html +++ b/layouts/partials/food-menu.html @@ -1,35 +1,37 @@ {{ if .Site.Data.homepage.pricing.enable }} {{ with .Site.Data.homepage.pricing }} <section id="price"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="block"> - <h1 class="heading wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms">{{ .title | markdownify }}</h1> - <p class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="400ms">{{ .description | markdownify }}</p> - <div class="pricing-list"> - <div class="title"> - <h3>{{ .subtitle | markdownify }}</h3> - </div> - <ul> - {{ range .pricingItem }} - <li class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms"> - <div class="item"> - <div class="item-title"> - <h2>{{.title}}</h2> - <div class="border-bottom"></div> - <span>{{.price}}</span> - </div> - <p>{{.description}}</p> - </div> - </li> - {{ end }} - </ul> - </div> - </div> - </div><!-- .col-md-12 close --> - </div><!-- .row close --> - </div><!-- .containe close --> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="block"> + <h1 class="heading wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms"> + {{ .title | markdownify }}</h1> + <p class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="400ms"> + {{ .description | markdownify }}</p> + <div class="pricing-list"> + <div class="title"> + <h3>{{ .subtitle | markdownify }}</h3> + </div> + <ul> + {{ range .pricingItem }} + <li class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms"> + <div class="item"> + <div class="item-title"> + <h2>{{.title}}</h2> + <div class="border-bottom"></div> + <span>{{.price}}</span> + </div> + <p>{{.description}}</p> + </div> + </li> + {{ end }} + </ul> + </div> + </div> + </div><!-- .col-md-12 close --> + </div><!-- .row close --> + </div><!-- .containe close --> </section><!-- #price close --> {{end}} {{end}}
\ No newline at end of file diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html index ee207a2..4d08399 100644 --- a/layouts/partials/gallery.html +++ b/layouts/partials/gallery.html @@ -1,22 +1,23 @@ {{ if .Site.Data.homepage.gallery.enable }} {{ with .Site.Data.homepage.gallery }} <section id="slider"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="block wow fadeInUp" data-wow-duration="500ms" data-wow-delay="300ms"> - <div class="title"> - <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> - {{ end }} - </div> - </div> - </div><!-- .col-md-12 close --> - </div><!-- .row close --> - </div><!-- .container close --> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="block wow fadeInUp" data-wow-duration="500ms" data-wow-delay="300ms"> + <div class="title"> + <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> + {{ end }} + </div> + </div> + </div><!-- .col-md-12 close --> + </div><!-- .row close --> + </div><!-- .container close --> </section><!-- slider close --> {{end}} {{end}}
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f2959b7..d203144 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,11 +10,11 @@ {{ "<!-- plugins -->" | safeHTML }} {{ range .Site.Params.plugins.css }} - <link rel="stylesheet" href="{{ .URL | absURL }} "> + <link rel="stylesheet" href="{{ .URL | absURL }}"> {{ end }} {{ "<!--Favicon-->" | safeHTML }} - <link rel="shortcut icon" href="{{ "images/favicon.png" | absURL }} " type="image/x-icon"> - <link rel="icon" href="{{ "images/favicon.png" | absURL }} " type="image/x-icon"> + <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon"> + <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon"> </head>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 78873de..e8c360f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -15,8 +15,8 @@ <span class="icon-bar"></span> </button> {{"<!-- logo -->" | safeHTML}} - <a class="navbar-brand" href="{{ .Site.BaseURL | absURL }}"> - <img class="img-responsive" src="{{ .Site.Params.logo | absURL }}" alt="Logo"> + <a class="navbar-brand" href="{{ .Site.BaseURL }}"> + <img class="img-responsive" src="{{ .Site.Params.logo | absURL }}" alt="{{ .Site.Title }}"> </a> {{"<!-- logo -->" | safeHTML}} </div> diff --git a/layouts/partials/hero-area.html b/layouts/partials/hero-area.html index 44284da..7398d20 100644 --- a/layouts/partials/hero-area.html +++ b/layouts/partials/hero-area.html @@ -1,7 +1,7 @@ {{ "<!-- header-img start -->" | safeHTML }} {{ if .Site.Data.homepage.heroArea.enable }} {{ with .Site.Data.homepage.heroArea }} -<section id="hero-area" {{ if .overlay.enable }} class="overlay" {{ end }}> +<section id="hero-area" {{ if .overlay }} class="overlay" {{ end }}> <img class="img-responsive" src="{{ .bgImage | absURL }}"> </section> {{ end }} diff --git a/layouts/partials/preloader.html b/layouts/partials/preloader.html index 82b568e..0707c57 100644 --- a/layouts/partials/preloader.html +++ b/layouts/partials/preloader.html @@ -1,8 +1,8 @@ {{ if .Site.Params.preloader.enable }} {{ "<!-- preloader start -->" | safeHTML }} <div class="preloader"> - {{ if ne .Site.Params.preloader.preloader "" }} - <img src="{{ .Site.Params.preloader.preloader | absURL }} " alt="preloader"> + {{ with .Site.Params.preloader.preloader }} + <img src="{{ . | absURL }}" alt="preloader"> {{ end }} </div> {{ "<!-- preloader end -->" | safeHTML }} diff --git a/layouts/partials/subscription.html b/layouts/partials/subscription.html index fd2d542..7120b22 100644 --- a/layouts/partials/subscription.html +++ b/layouts/partials/subscription.html @@ -1,73 +1,70 @@ {{ if .Site.Data.homepage.subscription.enable }} {{ with .Site.Data.homepage.subscription }} -<section id="subscribe" {{ if .overlay.enable }} class="overlay" {{ end }} style="background-image: url('{{ .bgImage | absURL }}');"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="block"> - <h1 class=" heading wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms">{{ .title | markdownify }}</h1> - <p class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="400ms">{{ .description | markdownify }}</p> - <div class="subscription-form"> - <!-- Begin Mailchimp Signup Form --> - <link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" - type="text/css"> - <style type="text/css"> - #mc_embed_signup { - background: #fff; - clear: left; - font: 14px Helvetica, Arial, sans-serif; - } - /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block. - 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" name="mc-embedded-subscribe-form" - class="validate" target="_blank" novalidate> - <div id="mc_embed_signup_scroll"> - <div class="mc-field-group"> - <label for="mce-EMAIL">Email Address</label> - <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"> - <input type="submit" value="Subscribe" name="subscribe" - id="mc-embedded-subscribe" class="button"> - </div> - <div id="mce-responses" class="clear"> - <div class="response" id="mce-error-response" style="display:none"></div> - <div class="response" id="mce-success-response" style="display:none"></div> - </div> - <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> - <div style="position: absolute; left: -5000px;" aria-hidden="true"><input - type="text" - name="{{ .formName }}" - tabindex="-1" value=""></div> - </div> - </form> - </div> - <script type='text/javascript' - src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script> - <script type='text/javascript'> - (function ($) { - window.fnames = new Array(); - window.ftypes = new Array(); - fnames[0] = 'EMAIL'; - ftypes[0] = 'email'; - fnames[1] = 'FNAME'; - ftypes[1] = 'text'; - fnames[2] = 'LNAME'; - ftypes[2] = 'text'; - fnames[3] = 'ADDRESS'; - ftypes[3] = 'address'; - fnames[4] = 'PHONE'; - ftypes[4] = 'phone'; - }(jQuery)); - var $mcj = jQuery.noConflict(true); - </script> - <!--End mc_embed_signup--> - </div> +<section id="subscribe" {{ if .overlay }} class="overlay" {{ end }} + style="background-image: url('{{ .bgImage | absURL }}');"> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="block"> + <h1 class=" heading wow fadeInUp" data-wow-duration="300ms" data-wow-delay="300ms">{{ .title | markdownify }} + </h1> + <p class="wow fadeInUp" data-wow-duration="300ms" data-wow-delay="400ms">{{ .description | markdownify }}</p> + <div class="subscription-form"> + <!-- Begin Mailchimp Signup Form --> + <link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css"> + <style type="text/css"> + #mc_embed_signup { + background: #fff; + clear: left; + font: 14px Helvetica, Arial, sans-serif; + } + + /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block. + 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" + name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> + <div id="mc_embed_signup_scroll"> + <div class="mc-field-group"> + <label for="mce-EMAIL">Email Address</label> + <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"> + <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"> + </div> + <div id="mce-responses" class="clear"> + <div class="response" id="mce-error-response" style="display:none"></div> + <div class="response" id="mce-success-response" style="display:none"></div> + </div> + <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> + <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" + name="{{ .formName }}" tabindex="-1" value=""></div> </div> - </div><!-- .col-md-12 close --> - </div><!-- .row close --> - </div><!-- .containe close --> + </form> + </div> + <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script> + <script type='text/javascript'> + (function ($) { + window.fnames = new Array(); + window.ftypes = new Array(); + fnames[0] = 'EMAIL'; + ftypes[0] = 'email'; + fnames[1] = 'FNAME'; + ftypes[1] = 'text'; + fnames[2] = 'LNAME'; + ftypes[2] = 'text'; + fnames[3] = 'ADDRESS'; + ftypes[3] = 'address'; + fnames[4] = 'PHONE'; + ftypes[4] = 'phone'; + }(jQuery)); + var $mcj = jQuery.noConflict(true); + </script> + <!--End mc_embed_signup--> + </div> + </div> + </div><!-- .col-md-12 close --> + </div><!-- .row close --> + </div><!-- .containe close --> </section><!-- #subscribe close --> {{end}} {{end}}
\ No newline at end of file |