diff options
author | somrat <monnaf37@gmail.com> | 2019-06-15 14:00:56 +0300 |
---|---|---|
committer | somrat <monnaf37@gmail.com> | 2019-06-15 14:00:56 +0300 |
commit | 12a61843989879ed4af1deb6a40a709ef79afd1e (patch) | |
tree | e5eee686bba29e61a533c30b3a47a3fb408e9123 /layouts | |
parent | 277748493df4a9413b04b4de483534df8f1e28af (diff) |
modified navigation (hugo depricated issue)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/call-to-action.html | 40 | ||||
-rw-r--r-- | layouts/partials/feature-list.html | 72 | ||||
-rw-r--r-- | layouts/partials/features.html | 71 | ||||
-rw-r--r-- | layouts/partials/footer.html | 38 | ||||
-rw-r--r-- | layouts/partials/gallery.html | 44 | ||||
-rw-r--r-- | layouts/partials/header.html | 51 | ||||
-rw-r--r-- | layouts/partials/meta.html | 25 | ||||
-rw-r--r-- | layouts/partials/navbar.html | 41 | ||||
-rw-r--r-- | layouts/partials/promo.html | 34 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 23 | ||||
-rw-r--r-- | layouts/partials/stylesheets.html | 30 | ||||
-rw-r--r-- | layouts/partials/testimonials.html | 56 |
12 files changed, 259 insertions, 266 deletions
diff --git a/layouts/partials/call-to-action.html b/layouts/partials/call-to-action.html index 5b4896e..9c405ae 100644 --- a/layouts/partials/call-to-action.html +++ b/layouts/partials/call-to-action.html @@ -1,22 +1,22 @@ - {{- with .Site.Params.call_to_action }} - <section class="call-to-action section bg-opacity bg-1"> - <div class="container"> - <div class="row"> - <div class="col-md-12 wow text-center"> - <div class="block"> - <h2 class="subheading">{{ .title }}</h2> - <p>{{ .text }}</p> - <div class="col-lg-6 offset-lg-3"> - <div class="input-group"> - <input type="text" class="form-control" placeholder="{{ .placeholder }}"> - <span class="input-group-btn"> - <button class="btn btn-default btn-main" type="button">{{ .button_text }}</button> - </span> - </div><!-- /input-group --> - </div><!-- /.col-lg-6 --> - </div> - </div> +{{- with .Site.Params.call_to_action }} +<section class="call-to-action section bg-opacity bg-1"> + <div class="container"> + <div class="row"> + <div class="col-md-12 wow text-center"> + <div class="block"> + <h2 class="subheading">{{ .title }}</h2> + <p>{{ .text }}</p> + <div class="col-lg-6 offset-lg-3"> + <div class="input-group"> + <input type="text" class="form-control" placeholder="{{ .placeholder }}"> + <span class="input-group-btn"> + <button class="btn btn-default btn-main" type="button">{{ .button_text }}</button> + </span> + </div><!-- /input-group --> + </div><!-- /.col-lg-6 --> </div> </div> - </section><!-- #call-to-action close --> - {{- end }} + </div> + </div> +</section><!-- #call-to-action close --> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/feature-list.html b/layouts/partials/feature-list.html index 9cadcad..572dcd2 100644 --- a/layouts/partials/feature-list.html +++ b/layouts/partials/feature-list.html @@ -1,42 +1,42 @@ - {{ with .Site.Params.feature_list }} - <section class="feature-list section"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="heading"> - <h2>{{ .title }}</h2> - </div> +{{ with .Site.Params.feature_list }} +<section class="feature-list section"> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="heading"> + <h2>{{ .title }}</h2> </div> </div> - {{ range $index, $element := .items }} - {{- if ne (mod $index 2) 1 }} - <div class="row"> - <div class="col-md-6 text-center"> - <img class="" src="{{ $element.image }}" alt=""> - </div> - <div class="col-md-6"> - <div class="content mt-100"> - <h4 class="subheading">{{ $element.title }}</h4> - <p>{{ $element.text }}</p> - <a href="{{ $element.button_link }}" class="btn btn-main btn-main-sm">{{ $element.button_text }}</a> - </div> - </div> + </div> + {{ range $index, $element := .items }} + {{- if ne (mod $index 2) 1 }} + <div class="row"> + <div class="col-md-6 text-center"> + <img class="" src="{{ $element.image }}" alt=""> + </div> + <div class="col-md-6"> + <div class="content mt-100"> + <h4 class="subheading">{{ $element.title }}</h4> + <p>{{ $element.text }}</p> + <a href="{{ $element.button_link }}" class="btn btn-main btn-main-sm">{{ $element.button_text }}</a> </div> - {{- else }} - <div class="row"> - <div class="col-md-6"> - <div class="content mt-100"> - <h4 class="subheading">{{ $element.title }}</h4> - <p>{{ $element.text }}</p> - <a href="{{ $element.button_link }}" class="btn btn-main btn-main-sm">{{ $element.button_text }}</a> - </div> - </div> - <div class="col-md-6 text-center"> - <img class="" src="{{ $element.image }}" alt=""> - </div> + </div> + </div> + {{- else }} + <div class="row"> + <div class="col-md-6"> + <div class="content mt-100"> + <h4 class="subheading">{{ $element.title }}</h4> + <p>{{ $element.text }}</p> + <a href="{{ $element.button_link }}" class="btn btn-main btn-main-sm">{{ $element.button_text }}</a> </div> - {{- end }} - {{- end }} + </div> + <div class="col-md-6 text-center"> + <img class="" src="{{ $element.image }}" alt=""> + </div> </div> - </section> + {{- end }} {{- end }} + </div> +</section> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/features.html b/layouts/partials/features.html index e1b5ee5..05dbe2c 100644 --- a/layouts/partials/features.html +++ b/layouts/partials/features.html @@ -1,38 +1,35 @@ - <!-- - Feature start - ==================== --> - {{- with .Site.Params.features }} - <section class="feature section"> - <div class="container"> - <div class="row"> - <div class="heading"> - <h2>{{ .title }}</h2> - </div> - <div class="col-md-4"> - {{- range .left }} - <div class="feature-box"> - <i class="{{ .icon }}"></i> - <h4>{{ .title }}</h4> - <p>{{ .text }}</p> - </div> - {{- end }} - </div> - {{- with .image }} - <div class="col-md-4 text-center"> - <img src="{{ relURL .path }}" alt="{{ .alt }}"> - </div> - {{- end }} - <div class="col-md-4"> - {{- range .right }} - <div class="feature-box"> - <i class="{{ .icon }}"></i> - <h4>{{ .title }}</h4> - <p>{{ .text }}</p> - </div> - {{- end }} - </div> +<!-- Feature start --> +{{- with .Site.Params.features }} +<section class="feature section" id="feature"> + <div class="container"> + <div class="row"> + <div class="heading"> + <h2>{{ .title }}</h2> + </div> + <div class="col-md-4"> + {{- range .left }} + <div class="feature-box"> + <i class="{{ .icon }}"></i> + <h4>{{ .title }}</h4> + <p>{{ .text }}</p> </div> - </div><!-- .container close --> - </section><!-- #service close --> - {{- end }} - + {{- end }} + </div> + {{- with .image }} + <div class="col-md-4 text-center"> + <img src="{{ relURL .path }}" alt="{{ .alt }}"> + </div> + {{- end }} + <div class="col-md-4"> + {{- range .right }} + <div class="feature-box"> + <i class="{{ .icon }}"></i> + <h4>{{ .title }}</h4> + <p>{{ .text }}</p> + </div> + {{- end }} + </div> + </div> + </div><!-- .container close --> +</section><!-- #service close --> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f06f574..b1bb04d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,21 +1,21 @@ - {{- with .Site.Params.navbar }} - <footer> - <div class="container text-center"> - <div class="row"> - <div class="col-md-12"> - <div class="block"> - <a href="" class="footer-logo">{{ .logo }}</a> - <ul class="menu"> - {{- range .menu }} - <li class=""> - <a href="{{ .link }}">{{ .text }}</a> - </li> - {{- end }} - </ul> - <p class="copyright-text">Copyright © <a href="http://www.Themefisher.com">Themefisher</a>| All right reserved.</p> - </div> - </div> +{{- with .Site.Params.navbar }} +<footer> + <div class="container text-center"> + <div class="row"> + <div class="col-md-12"> + <div class="block"> + <a href="{{.Site.BaseURL}}" class="footer-logo">{{ .logo }}</a> + <ul class="menu"> + {{- range .menu }} + <li> + <a href="{{ .link }}">{{ .text }}</a> + </li> + {{- end }} + </ul> + <p class="copyright-text">Copyright © <a href="http://www.Themefisher.com">Themefisher</a>| All right reserved.</p> </div> </div> - </footer> - {{- end }} + </div> + </div> +</footer> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html index 3283ea8..3ac14a3 100644 --- a/layouts/partials/gallery.html +++ b/layouts/partials/gallery.html @@ -1,27 +1,27 @@ - {{ with .Site.Params.gallery }} - <section class="gallery"> - <div class="container"> - <div class="row"> - <div class="col-md-12"> - <div class="heading"> - <h2>{{ .title }}</h2> - </div> +{{ with .Site.Params.gallery }} +<section class="gallery" id="gallery"> + <div class="container"> + <div class="row"> + <div class="col-md-12"> + <div class="heading"> + <h2>{{ .title }}</h2> + </div> - <div class="gallery-slider"> - {{- $basePath := relURL .directory }} - {{- range .images }} - <div class="block"> - <div class="gallery-overlay"> - <a href="{{ $basePath }}/{{ . }}" class="image-popup gallery-popup"> - <i class="tf-ion-ios-search"></i> - </a> - </div> - <img class="img-fluid" src="{{ $basePath }}/{{ . }}" alt=""> - </div> - {{- end }} + <div class="gallery-slider"> + {{- $basePath := relURL .directory }} + {{- range .images }} + <div class="block"> + <div class="gallery-overlay"> + <a href="{{ $basePath }}/{{ . }}" class="image-popup gallery-popup"> + <i class="tf-ion-ios-search"></i> + </a> </div> + <img class="img-fluid" src="{{ $basePath }}/{{ . }}" alt=""> </div> + {{- end }} </div> </div> - </section> - {{ end }} + </div> + </div> +</section> +{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c6adf7c..96155ed 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,26 +1,25 @@ - <!-- - Header start - ==================== --> - {{- with .Site.Params.header }} - <section class="hero-area"> - <div class="container"> - <div class="row"> - <div class="col-md-6 text-center"> - {{- with .image }} - <img src="{{ relURL .path }}" alt="{{ .alt }}"> - {{- end }} - </div> - <div class="col-md-6"> - <div class="block"> - <h1 class="">{{ .title }}</h1> - <p>{{ .text }}</p> - {{- with .button }} - <a class="btn btn-main" href="{{ .link }}" role="button">{{ .text }}</a> - {{- end }} - </div> - </div> - </div><!-- .row close --> - </div><!-- .container close --> - </section><!-- header close --> - {{- end }} - +<!-- +Header start +==================== --> +{{- with .Site.Params.header }} +<section class="hero-area"> + <div class="container"> + <div class="row"> + <div class="col-md-6 text-center"> + {{- with .image }} + <img src="{{ relURL .path }}" alt="{{ .alt }}"> + {{- end }} + </div> + <div class="col-md-6"> + <div class="block"> + <h1 class="">{{ .title }}</h1> + <p>{{ .text }}</p> + {{- with .button }} + <a class="btn btn-main" href="{{ .link }}" role="button">{{ .text }}</a> + {{- end }} + </div> + </div> + </div><!-- .row close --> + </div><!-- .container close --> +</section><!-- header close --> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 2274237..72eb0d8 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -1,13 +1,12 @@ - - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - {{- with .Site.Title }} - <title>{{ . }}</title> - {{- end }} - <meta name="viewport" content="width=device-width, initial-scale=1"> - {{- with .Site.Params.description }} - <meta name="description" content="{{ . }}"> - {{- end }} - {{- range .Site.Params.meta }} - <meta name="{{ .name }}" content="{{ .content }}"> - {{- end }} +<meta charset="utf-8"> +<meta http-equiv="X-UA-Compatible" content="IE=edge"> +{{- with .Site.Title }} +<title>{{ . }}</title> +{{- end }} +<meta name="viewport" content="width=device-width, initial-scale=1"> +{{- with .Site.Params.description }} +<meta name="description" content="{{ . }}"> +{{- end }} +{{- range .Site.Params.meta }} +<meta name="{{ .name }}" content="{{ .content }}"> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 7cfb43d..fa3e0c3 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -1,23 +1,22 @@ - {{- with .Site.Params.navbar }} - <div class="container"> - <nav class="navbar navigation" id="top-nav"> - <a class="navbar-brand logo" href="#"> - <h1>{{ .logo }}</h1> - </a> +{{- with .Site.Params.navbar }} +<div class="container"> + <nav class="navbar navigation" id="top-nav"> + <a class="navbar-brand logo" href="#"> + <h1>{{ .logo }}</h1> + </a> - <button class="navbar-toggler hidden-lg-up float-lg-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" > - <i class="tf-ion-android-menu"></i> - </button> - <div class="collapse navbar-toggleable-md" id="navbarResponsive"> - <ul class="nav navbar-nav menu float-lg-right" id="top-nav"> - {{- range .menu }} - <li class="active"> - <a href="{{ .link }}">{{ .text }}</a> - </li> - {{- end }} - </ul> - </div> - </nav> + <button class="navbar-toggler hidden-lg-up float-lg-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" > + <i class="tf-ion-android-menu"></i> + </button> + <div class="collapse navbar-toggleable-md" id="navbarResponsive"> + <ul class="nav navbar-nav menu float-lg-right" id="top-nav"> + {{- range .menu }} + <li class="active"> + <a href="{{ .link }}">{{ .text }}</a> + </li> + {{- end }} + </ul> </div> - {{- end }} - + </nav> +</div> +{{- end }}
\ No newline at end of file diff --git a/layouts/partials/promo.html b/layouts/partials/promo.html index 1ab1302..16bd72b 100644 --- a/layouts/partials/promo.html +++ b/layouts/partials/promo.html @@ -1,19 +1,19 @@ - {{ with .Site.Params.promo }} - <section class="promo-details section"> - <div class="container"> - <div class="row"> - <div class="col-md-6 text-center"> - {{- with .image }} - <img src="{{ .path }}" alt="{{ .alt }}"> - {{- end }} - </div> - <div class="col-md-6"> - <div class="content mt-100"> - <h2 class="subheading">{{ .title }}</h2> - {{ .text | markdownify }} - </div> - </div> +{{ with .Site.Params.promo }} +<section class="promo-details section" id="promo"> + <div class="container"> + <div class="row"> + <div class="col-md-6 text-center"> + {{- with .image }} + <img src="{{ .path }}" alt="{{ .alt }}"> + {{- end }} + </div> + <div class="col-md-6"> + <div class="content mt-100"> + <h2 class="subheading">{{ .title }}</h2> + {{ .text | markdownify }} </div> </div> - </section> - {{ end }} + </div> + </div> +</section> +{{ end }}
\ No newline at end of file diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 9c911a8..e869038 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,13 +1,12 @@ +<!-- Js --> +<script src="{{ relURL "js/vendor/jquery-2.1.1.min.js" }}"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.7/js/tether.min.js" integrity="sha384-XTs3FgkjiBgo8qjEjBk0tGmf3wPrWtA6coPfQDfFEY8AnYJwjalXCiosYRBIBZX8" crossorigin="anonymous"></script> +<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script> +<script src="{{ relURL "js/vendor/modernizr-2.6.2.min.js" }}"></script> +<script src="{{ relURL "js/owl.carousel.min.js" }}"></script> +<script src="{{ relURL "js/jquery.magnific-popup.min.js" }}"></script> +<script src="{{ relURL "js/main.js" }}"></script> - <!-- Js --> - <script src="{{ relURL "js/vendor/jquery-2.1.1.min.js" }}"></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.7/js/tether.min.js" integrity="sha384-XTs3FgkjiBgo8qjEjBk0tGmf3wPrWtA6coPfQDfFEY8AnYJwjalXCiosYRBIBZX8" crossorigin="anonymous"></script> - <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js" integrity="sha384-BLiI7JTZm+JWlgKa0M0kGRpJbF2J8q+qreVrKBC47e3K6BW78kGLrCkeRX6I9RoK" crossorigin="anonymous"></script> - <script src="{{ relURL "js/vendor/modernizr-2.6.2.min.js" }}"></script> - <script src="{{ relURL "js/owl.carousel.min.js" }}"></script> - <script src="{{ relURL "js/jquery.magnific-popup.min.js" }}"></script> - <script src="{{ relURL "js/main.js" }}"></script> - - {{- range .Site.Params.custom_scripts }} - <script src="{{ relURL . }}"></script> - {{- end -}} +{{- range .Site.Params.custom_scripts }} +<script src="{{ relURL . }}"></script> +{{- end -}}
\ No newline at end of file diff --git a/layouts/partials/stylesheets.html b/layouts/partials/stylesheets.html index 6732e11..2b1f01c 100644 --- a/layouts/partials/stylesheets.html +++ b/layouts/partials/stylesheets.html @@ -1,22 +1,22 @@ - <!-- Fonts --> - <!-- Source Sans Pro --> - <link href="https://fonts.googleapis.com/css?family=Droid+Serif:400i|Source+Sans+Pro:300,400,600,700" rel="stylesheet"> +<!-- Fonts --> +<!-- Source Sans Pro --> +<link href="https://fonts.googleapis.com/css?family=Droid+Serif:400i|Source+Sans+Pro:300,400,600,700" rel="stylesheet"> - <link href="https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600,700" rel="stylesheet"> +<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600,700" rel="stylesheet"> - <!-- CSS --> +<!-- CSS --> - <!-- <link rel="stylesheet" href="css/bootstrap.min.css"> --> - <!-- Bootstrap CDN --> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous"> +<!-- <link rel="stylesheet" href="css/bootstrap.min.css"> --> +<!-- Bootstrap CDN --> +<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous"> - <link rel="stylesheet" type="text/css" href="{{ relURL "css/themefisher-fonts.css" }}"> - <link rel="stylesheet" type="text/css" href="{{ relURL "css/owl.carousel.css" }}"> - <link rel="stylesheet" type="text/css" href="{{ relURL "css/magnific-popup.css" }}"> - <link rel="stylesheet" type="text/css" href="{{ relURL "css/style.css" }}"> +<link rel="stylesheet" type="text/css" href="{{ relURL "css/themefisher-fonts.css" }}"> +<link rel="stylesheet" type="text/css" href="{{ relURL "css/owl.carousel.css" }}"> +<link rel="stylesheet" type="text/css" href="{{ relURL "css/magnific-popup.css" }}"> +<link rel="stylesheet" type="text/css" href="{{ relURL "css/style.css" }}"> <!-- Responsive Stylesheet --> - <link rel="stylesheet" type="text/css" href="{{ relURL "css/responsive.css" }}"> +<link rel="stylesheet" type="text/css" href="{{ relURL "css/responsive.css" }}"> {{- range .Site.Params.custom_stylesheets -}} - <link rel="stylesheet" type="text/css" href="{{ relURL . }}"> -{{- end -}} +<link rel="stylesheet" type="text/css" href="{{ relURL . }}"> +{{- end -}}
\ No newline at end of file diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html index e60a54c..8119d8c 100644 --- a/layouts/partials/testimonials.html +++ b/layouts/partials/testimonials.html @@ -1,31 +1,31 @@ - {{- with .Site.Params.testimonials }} - <section class="testimonials section"> - <div class="container"> - <div class="row"> - <div class="heading"> - <h2>{{ .title }}</h2> - </div> - {{- range first 3 .blocks }} - <div class="col-md-4 text-center"> - <div class="testimonial-block"> - <i class="tf-ion-quote"></i> - <p>{{ .text | markdownify }}</p> - <div class="author-details"> - <img src="{{ .image }}" alt=""> - <h4>{{ .name }}</h4> - <span>{{ .position }}</span> - </div> - </div> - </div> - {{- end }} - </div> - <div class="row mt-100"> - {{- with .button }} - <div class="col-md-12 text-center"> - <a href="{{ .link }}" class="btn btn-main">{{ .text }}</a> +{{- with .Site.Params.testimonials }} +<section class="testimonials section" id="testimonial"> + <div class="container"> + <div class="row"> + <div class="heading"> + <h2>{{ .title }}</h2> + </div> + {{- range first 3 .blocks }} + <div class="col-md-4 text-center"> + <div class="testimonial-block"> + <i class="tf-ion-quote"></i> + <p>{{ .text | markdownify }}</p> + <div class="author-details"> + <img src="{{ .image }}" alt=""> + <h4>{{ .name }}</h4> + <span>{{ .position }}</span> </div> - {{- end }} </div> </div> - </section> - {{ end }} + {{- end }} + </div> + <div class="row mt-100"> + {{- with .button }} + <div class="col-md-12 text-center"> + <a href="{{ .link }}" class="btn btn-main">{{ .text }}</a> + </div> + {{- end }} + </div> + </div> +</section> +{{ end }}
\ No newline at end of file |