first commit
This commit is contained in:
39
themes/meghna-hugo/layouts/partials/about.html
Normal file
39
themes/meghna-hugo/layouts/partials/about.html
Normal file
@ -0,0 +1,39 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.about.about.enable }}
|
||||
{{ with $data.about.about }}
|
||||
{{"<!-- Start About Section -->" | safeHTML}}
|
||||
<section class="bg-one about section" id="about">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-12">
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="title text-center wow fadeIn" data-wow-duration="1500ms">
|
||||
<h2> {{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
|
||||
{{ range .about_item }}
|
||||
{{"<!-- About item -->" | safeHTML}}
|
||||
<div class="col-lg-4 text-center wow fadeInUp" data-wow-duration="500ms">
|
||||
<div class="block">
|
||||
<div class="icon-box">
|
||||
{{with .icon}}<i class="{{ . }}"></i>{{ end }}
|
||||
</div>
|
||||
{{"<!-- Express About Yourself -->" | safeHTML}}
|
||||
<div class="content text-center">
|
||||
<h3>{{ .title }}</h3>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /about -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
27
themes/meghna-hugo/layouts/partials/banner.html
Normal file
27
themes/meghna-hugo/layouts/partials/banner.html
Normal file
@ -0,0 +1,27 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.banner.banner.enable }}
|
||||
{{ with $data.banner.banner }}
|
||||
{{"<!-- Welcome Slider-->" | safeHTML}}
|
||||
<section class="hero-area" style='background-image: url("{{ .bg_image_webp | absURL }}")'>
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img class="d-none" src="{{ .bg_image_webp | absURL }}" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'"/>
|
||||
|
||||
<div class="block">
|
||||
{{ if .icon }}
|
||||
<div class="video-button">
|
||||
<i class="{{ .icon }}"></i>
|
||||
</div>
|
||||
{{ end }}
|
||||
<h1>{{ .title | markdownify }}</h1>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
{{ if .button.enable }}
|
||||
{{ with .button }}
|
||||
<a href="{{ .link }}" class="btn btn-transparent page-scroll">{{ .label }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /Welcome Slider-->" | safeHTML}}
|
||||
{{end}}
|
||||
{{end}}
|
27
themes/meghna-hugo/layouts/partials/blog.html
Normal file
27
themes/meghna-hugo/layouts/partials/blog.html
Normal file
@ -0,0 +1,27 @@
|
||||
{{ if gt (where site.RegularPages "Section" "==" "blog") 0}}
|
||||
{{"<!-- Start Blog Section -->" | safeHTML}}
|
||||
<section id="blog" class="section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-12">
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="title text-center wow fadeInDown">
|
||||
<h2> {{ with i18n "blogTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with i18n "blogTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
|
||||
{{ range first 3 (where site.RegularPages "Section" "==" "blog")}}
|
||||
{{ .Render "article"}}
|
||||
{{ end }}
|
||||
|
||||
<div class="all-post text-center col-lg-12">
|
||||
<a class="btn btn-main" href="{{ `blog/` | absLangURL }}">{{ i18n "viewAllPost" }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /blog -->" | safeHTML}}
|
||||
{{ end }}
|
75
themes/meghna-hugo/layouts/partials/contact.html
Normal file
75
themes/meghna-hugo/layouts/partials/contact.html
Normal file
@ -0,0 +1,75 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.contact.contact.enable }}
|
||||
{{ with $data.contact.contact }}
|
||||
{{"<!-- Start Contact Us -->" | safeHTML}}
|
||||
<section id="contact" class="contact-us section-bg">
|
||||
<div class="container pb-5">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="title text-center wow fadeIn" data-wow-duration="500ms">
|
||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
|
||||
{{"<!-- Contact Details -->" | safeHTML}}
|
||||
<div class="contact-info col-lg-6 wow fadeInUp" data-wow-duration="500ms">
|
||||
<h3>{{ .subtitle | markdownify }}</h3>
|
||||
<p> {{ .content | markdownify }} </p>
|
||||
|
||||
{{ if .contact_form.enable }}
|
||||
<div class="contact-details">
|
||||
{{ range .contact_list }}
|
||||
<div class="con-info clearfix">
|
||||
<i class="{{ .icon }}"></i>
|
||||
<span>{{ .info }}</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{"<!-- Contact Form -->" | safeHTML}}
|
||||
{{ if .contact_form.enable }}
|
||||
{{ with .contact_form }}
|
||||
<div class="col-lg-6 wow fadeInUp" data-wow-duration="500ms" data-wow-delay="300ms">
|
||||
<form id="contact-form" class="form-meghna" method="post" action="{{ .form_action }}" role="form">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="{{ .name }}" class="form-control" name="name" id="name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="email" placeholder="{{ .email }}" class="form-control" name="email" id="email">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="{{ .subject }}" class="form-control" name="subject" id="subject">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<textarea rows="6" placeholder="{{ .message }}" class="form-control" name="message" id="message"></textarea>
|
||||
</div>
|
||||
<div id="cf-submit">
|
||||
<button type="submit" id="contact-submit" class="btn btn-transparent btn-block"
|
||||
value="{{ .submit }}">{{ .submit }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<div class="contact-details">
|
||||
{{ range .contact_list }}
|
||||
<div class="con-info clearfix">
|
||||
<i class="{{ .icon }}"></i>
|
||||
<span>{{ .info }}</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /contact -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
25
themes/meghna-hugo/layouts/partials/cta.html
Normal file
25
themes/meghna-hugo/layouts/partials/cta.html
Normal file
@ -0,0 +1,25 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.cta.cta.enable}}
|
||||
{{ with $data.cta.cta}}
|
||||
{{"<!-- Start Call To Action -->" | safeHTML}}
|
||||
<section id="cta" class="call-to-action section-sm bg-1 overly" style='background-image: url("{{ .bg_image_webp | absURL }}")'>
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img src="{{ .bg_image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
{{ if .button.enable }}
|
||||
{{ with .button }}
|
||||
<a href="{{ .link }}" class="btn btn-main page-scroll">{{ .label }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- Start Services Section -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
41
themes/meghna-hugo/layouts/partials/feature.html
Normal file
41
themes/meghna-hugo/layouts/partials/feature.html
Normal file
@ -0,0 +1,41 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.feature.feature.enable }}
|
||||
{{ with $data.feature.feature }}
|
||||
{{"<!-- feature -->" | safeHTML}}
|
||||
<section class="section section-bg about-2 padding-0" id="feature">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 padding-0" style="background-image: url('{{ .image_webp | absURL }}'); background-size: cover; background-position: top center; background-repeat: no-repeat; min-height: 400px;">
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img src="{{ .image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .image | absURL }})'">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="content-block">
|
||||
<h2>{{ .title | markdownify }}</h2>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
<div class="row">
|
||||
{{ range .feature_item }}
|
||||
<div class="col-lg-6">
|
||||
<div class="media">
|
||||
{{with .icon}}
|
||||
<div class="align-self-start mr-3">
|
||||
<i class="{{ . }}"></i>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading">{{ .title | markdownify }}</h4>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /feature -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
65
themes/meghna-hugo/layouts/partials/footer.html
Normal file
65
themes/meghna-hugo/layouts/partials/footer.html
Normal file
@ -0,0 +1,65 @@
|
||||
{{"<!-- end Contact Area -->" | safeHTML}}
|
||||
<footer id="footer" class="section-bg">
|
||||
<div class="container">
|
||||
<div class="row wow fadeInUp" data-wow-duration="500ms">
|
||||
<div class="col-xl-12">
|
||||
|
||||
{{"<!-- Footer Social Links -->" | safeHTML}}
|
||||
<div class="social-icon">
|
||||
<ul class="list-inline">
|
||||
{{ range site.Params.social }}
|
||||
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{"<!-- copyright -->" | safeHTML}}
|
||||
<div class="copyright text-center">
|
||||
<a href="{{ site.Home.Permalink }}">
|
||||
<img src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}" height="42" />
|
||||
</a>
|
||||
<br>
|
||||
<p>{{ site.Params.copyright | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{{"<!-- /footer -->" | safeHTML}}
|
||||
|
||||
{{ "<!-- Google Map API -->" | safeHTML }}
|
||||
{{ if site.Params.map.enable }}
|
||||
<script src="{{ site.Params.map.gmap_api | safeURL }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- JS Plugins -->" | safeHTML }}
|
||||
{{ range site.Params.plugins.js}}
|
||||
<script src="{{ .link | absURL }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- Main Script -->" | safeHTML }}
|
||||
{{ $script := resources.Get "js/script.js" | minify | fingerprint "sha384"}}
|
||||
<script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity }}"></script>
|
||||
|
||||
<!-- cookie -->
|
||||
{{ if site.Params.cookies.enable }}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js"></script>
|
||||
<div id="js-cookie-box" class="cookie-box cookie-box-hide">
|
||||
This site uses cookies. By continuing to use this website, you agree to their use. <span id="js-cookie-button" class="btn btn-transparent">I Accept</span>
|
||||
</div>
|
||||
<script>
|
||||
(function ($) {
|
||||
const cookieBox = document.getElementById('js-cookie-box');
|
||||
const cookieButton = document.getElementById('js-cookie-button');
|
||||
if (!Cookies.get('cookie-box')) {
|
||||
cookieBox.classList.remove('cookie-box-hide');
|
||||
cookieButton.onclick = function () {
|
||||
Cookies.set('cookie-box', true, {
|
||||
expires: {{ site.Params.cookies.expire_days }}
|
||||
});
|
||||
cookieBox.classList.add('cookie-box-hide');
|
||||
};
|
||||
}
|
||||
})(jQuery);
|
||||
</script>
|
||||
{{ end }}
|
25
themes/meghna-hugo/layouts/partials/funfacts.html
Normal file
25
themes/meghna-hugo/layouts/partials/funfacts.html
Normal file
@ -0,0 +1,25 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.funfacts.funfacts.enable }}
|
||||
{{ with $data.funfacts.funfacts }}
|
||||
{{"<!-- Start Counter Section -->" | safeHTML}}
|
||||
<section id="counter" class="parallax-section bg-1 section overly" style='background-image: url("{{ .bg_image_webp | absURL }}")'>
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img class="lozad" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'" data-src="{{ .bg_image_webp | absURL }}" />
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
{{ range .counter_item }}
|
||||
<div class="col-lg-3 col-md-6 col-12 text-center wow fadeInDown" data-wow-duration="500ms">
|
||||
<div class="counters-item">
|
||||
<i class="{{ .icon }}"></i>
|
||||
<span class="count" data-count="{{ .count }}">0</span>
|
||||
<h3>{{ .title | markdownify }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /Counter Section -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
41
themes/meghna-hugo/layouts/partials/head.html
Normal file
41
themes/meghna-hugo/layouts/partials/head.html
Normal file
@ -0,0 +1,41 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
{{ "<!-- mobile responsive meta -->" | safeHTML }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
|
||||
{{ with site.Params.author }}
|
||||
<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ hugo.Generator }}
|
||||
|
||||
{{ "<!-- plugins -->" | safeHTML }}
|
||||
{{ range site.Params.plugins.css }}
|
||||
<link rel="stylesheet" href="{{ .link | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{"<!-- Main Stylesheet -->"|safeHTML}}
|
||||
{{ $styles := resources.Get "css/style.css" | minify }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
|
||||
|
||||
{{"<!-- Custom stylesheet - for your changes -->" |safeHTML}}
|
||||
{{ $custom := resources.Get "css/custom.css" | minify }}
|
||||
<link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">
|
||||
|
||||
{{ "<!--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">
|
||||
|
||||
{{ with site.Params.google_analytics_id }}
|
||||
{{ "<!-- Global Site Tag (gtag.js) - Google Analytics -->" | safeHTML }}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ . }}');
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
</head>
|
11
themes/meghna-hugo/layouts/partials/map.html
Normal file
11
themes/meghna-hugo/layouts/partials/map.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ if site.Params.map.enable }}
|
||||
{{ with site.Params.map }}
|
||||
{{"<!-- Google Map -->" | safeHTML}}
|
||||
<div class="google-map">
|
||||
<div id="map" data-latitude="{{ .map_latitude }}"
|
||||
data-longitude="{{ .map_longitude }}"
|
||||
data-marker="{{ .map_marker | absURL }}"
|
||||
data-marker-name="{{ site.Title }}"></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
71
themes/meghna-hugo/layouts/partials/navigation.html
Normal file
71
themes/meghna-hugo/layouts/partials/navigation.html
Normal file
@ -0,0 +1,71 @@
|
||||
<section class="sticky-top navigation">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<a class="navbar-brand p-0" href="{{ .Site.BaseURL | relLangURL }}">
|
||||
{{ if site.Params.logo }}
|
||||
<img class="lozad" data-src="{{ site.Params.logo | absURL }}" alt="{{ .Site.Title }}" height="42">
|
||||
{{ else }}
|
||||
{{ site.Title }}
|
||||
{{ end }}
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler rounded-0" type="button" data-toggle="collapse" data-target="#navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navigation">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- menu active -->
|
||||
{{ $currentPage := . }}
|
||||
{{ range site.Menus.main }}
|
||||
{{ $menuURL := .URL | absLangURL }}
|
||||
{{ $pageURL:= $currentPage.Permalink | absLangURL }}
|
||||
{{ $active := eq $menuURL $pageURL }}
|
||||
{{ if .HasChildren }}
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
{{ $childURL := .URL | absLangURL }}
|
||||
{{ $active := eq $childURL $pageURL }}
|
||||
<a class="dropdown-item" {{if findRE `^http` .URL}}target="_blank" rel="noopener" {{end}}
|
||||
href="{{if findRE `^#` .URL}}{{if not $.IsHome}}{{site.BaseURL | relLangURL}}{{end}}{{.URL}}{{else}}{{.URL | relLangURL}}{{end}}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" {{if findRE `^http` .URL}}target="_blank" rel="noopener" {{end}}
|
||||
href="{{if findRE `^#` .URL}}{{if not $.IsHome}}{{site.BaseURL | relLangURL}}{{end}}{{.URL}}{{else}}{{.URL | relLangURL}}{{end}}">{{.Name}}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
<!-- Language List -->
|
||||
{{- if site.IsMultiLingual }}
|
||||
<select id="select-language" onchange="location = this.value;">
|
||||
{{ $siteLanguages := site.Languages}}
|
||||
{{ $pageLang := .Page.Lang}}
|
||||
{{ range .Page.AllTranslations }}
|
||||
{{ $translation := .}}
|
||||
{{ range $siteLanguages }}
|
||||
{{ if eq $translation.Lang .Lang }}
|
||||
{{ $selected := false }}
|
||||
{{ if eq $pageLang .Lang}}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}
|
||||
</option>
|
||||
{{ else }}
|
||||
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</select>
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
70
themes/meghna-hugo/layouts/partials/portfolio.html
Normal file
70
themes/meghna-hugo/layouts/partials/portfolio.html
Normal file
@ -0,0 +1,70 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.portfolio.portfolio.enable }}
|
||||
{{ with $data.portfolio.portfolio }}
|
||||
{{"<!-- Portfolio Section -->" | safeHTML}}
|
||||
<section class="portfolio section" id="portfolio">
|
||||
<div class="container">
|
||||
<div class="row ">
|
||||
<div class="col-xl-12">
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="title text-center">
|
||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="btn-group portfolio-filter btn-group-toggle justify-content-center d-flex flex-wrap"
|
||||
data-toggle="buttons">
|
||||
<label class="btn active">
|
||||
<input type="radio" name="shuffle-filter" value="all" checked="checked" />{{ i18n "all"}}
|
||||
</label>
|
||||
{{ $categories := slice }}
|
||||
{{ range .portfolio_item }}
|
||||
{{ range .categories }}
|
||||
{{ $categories = $categories | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range ( $categories | uniq ) }}
|
||||
<label class="btn">
|
||||
<input type="radio" name="shuffle-filter" value="{{ . | urlize }}" />{{ . | humanize }}
|
||||
</label>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row shuffle-wrapper justify-content-center">
|
||||
{{"<!-- portfolio item -->" | safeHTML}}
|
||||
{{ range .portfolio_item }}
|
||||
<div class="col-lg-4 col-md-6 shuffle-item"
|
||||
data-groups="[{{range $index, $element:= .categories }}{{if ne $index 0}},{{end}}"{{. | urlize}}"{{ end }}]">
|
||||
<div class="portfolio-block mb-4">
|
||||
<img class="img-fluid" src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
|
||||
<div class="caption">
|
||||
<a class="search-icon image-popup" data-effect="mfp-with-zoom" href="{{ .image | relURL }}"
|
||||
data-lightbox="image-1">
|
||||
<i class="ti-search"></i>
|
||||
</a>
|
||||
<h4 class="mt-3">
|
||||
{{ if or (eq .link "#") (eq .link "") }}
|
||||
{{ .name }}
|
||||
{{ else }}
|
||||
<a href="{{ .link | safeURL }}">{{ .name }}</a>
|
||||
{{ end }}
|
||||
</h4>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /Portfolio -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
96
themes/meghna-hugo/layouts/partials/post-share.html
Normal file
96
themes/meghna-hugo/layouts/partials/post-share.html
Normal file
@ -0,0 +1,96 @@
|
||||
{{ $url := printf "%s" .Permalink | absLangURL }}
|
||||
<!-- Sharingbutton Facebook -->
|
||||
<div class="social-share pt-4">
|
||||
<h4>{{ i18n "share" }}:</h4>
|
||||
<!-- Sharingbutton Facebook -->
|
||||
<a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{ $url }}" target="_blank"
|
||||
rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Sharingbutton Twitter -->
|
||||
<a class="resp-sharing-button__link" href="https://twitter.com/intent/tweet/?text={{ .Title }}&url={{ $url }}"
|
||||
target="_blank" rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--twitter resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Sharingbutton Google+ -->
|
||||
<a class="resp-sharing-button__link" href="https://plus.google.com/share?url={{ $url }}" target="_blank"
|
||||
rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--google resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M11.37 12.93c-.73-.52-1.4-1.27-1.4-1.5 0-.43.03-.63.98-1.37 1.23-.97 1.9-2.23 1.9-3.57 0-1.22-.36-2.3-1-3.05h.5c.1 0 .2-.04.28-.1l1.36-.98c.16-.12.23-.34.17-.54-.07-.2-.25-.33-.46-.33H7.6c-.66 0-1.34.12-2 .35-2.23.76-3.78 2.66-3.78 4.6 0 2.76 2.13 4.85 5 4.9-.07.23-.1.45-.1.66 0 .43.1.83.33 1.22h-.08c-2.72 0-5.17 1.34-6.1 3.32-.25.52-.37 1.04-.37 1.56 0 .5.13.98.38 1.44.6 1.04 1.84 1.86 3.55 2.28.87.23 1.82.34 2.8.34.88 0 1.7-.1 2.5-.34 2.4-.7 3.97-2.48 3.97-4.54 0-1.97-.63-3.15-2.33-4.35zm-7.7 4.5c0-1.42 1.8-2.68 3.9-2.68h.05c.45 0 .9.07 1.3.2l.42.28c.96.66 1.6 1.1 1.77 1.8.05.16.07.33.07.5 0 1.8-1.33 2.7-3.96 2.7-1.98 0-3.54-1.23-3.54-2.8zM5.54 3.9c.33-.38.75-.58 1.23-.58h.05c1.35.05 2.64 1.55 2.88 3.35.14 1.02-.08 1.97-.6 2.55-.32.37-.74.56-1.23.56h-.03c-1.32-.04-2.63-1.6-2.87-3.4-.13-1 .08-1.92.58-2.5zM23.5 9.5h-3v-3h-2v3h-3v2h3v3h2v-3h3" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Sharingbutton E-Mail -->
|
||||
<a class="resp-sharing-button__link" href="mailto:?subject={{ .Title }}&body={{ $url }}" target="_self"
|
||||
rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--email resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Sharingbutton Reddit -->
|
||||
<a class="resp-sharing-button__link"
|
||||
href="https://reddit.com/submit/?url={{ $url }}&resubmit=true&title={{ .Title }}" target="_blank"
|
||||
rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--reddit resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M24 11.5c0-1.65-1.35-3-3-3-.96 0-1.86.48-2.42 1.24-1.64-1-3.75-1.64-6.07-1.72.08-1.1.4-3.05 1.52-3.7.72-.4 1.73-.24 3 .5C17.2 6.3 18.46 7.5 20 7.5c1.65 0 3-1.35 3-3s-1.35-3-3-3c-1.38 0-2.54.94-2.88 2.22-1.43-.72-2.64-.8-3.6-.25-1.64.94-1.95 3.47-2 4.55-2.33.08-4.45.7-6.1 1.72C4.86 8.98 3.96 8.5 3 8.5c-1.65 0-3 1.35-3 3 0 1.32.84 2.44 2.05 2.84-.03.22-.05.44-.05.66 0 3.86 4.5 7 10 7s10-3.14 10-7c0-.22-.02-.44-.05-.66 1.2-.4 2.05-1.54 2.05-2.84zM2.3 13.37C1.5 13.07 1 12.35 1 11.5c0-1.1.9-2 2-2 .64 0 1.22.32 1.6.82-1.1.85-1.92 1.9-2.3 3.05zm3.7.13c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm9.8 4.8c-1.08.63-2.42.96-3.8.96-1.4 0-2.74-.34-3.8-.95-.24-.13-.32-.44-.2-.68.15-.24.46-.32.7-.18 1.83 1.06 4.76 1.06 6.6 0 .23-.13.53-.05.67.2.14.23.06.54-.18.67zm.2-2.8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm5.7-2.13c-.38-1.16-1.2-2.2-2.3-3.05.38-.5.97-.82 1.6-.82 1.1 0 2 .9 2 2 0 .84-.53 1.57-1.3 1.87z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Sharingbutton WhatsApp -->
|
||||
<a class="resp-sharing-button__link" href="whatsapp://send?text={{ .Title }}%20{{ $url }}" target="_blank"
|
||||
rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--whatsapp resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M20.1 3.9C17.9 1.7 15 .5 12 .5 5.8.5.7 5.6.7 11.9c0 2 .5 3.9 1.5 5.6L.6 23.4l6-1.6c1.6.9 3.5 1.3 5.4 1.3 6.3 0 11.4-5.1 11.4-11.4-.1-2.8-1.2-5.7-3.3-7.8zM12 21.4c-1.7 0-3.3-.5-4.8-1.3l-.4-.2-3.5 1 1-3.4L4 17c-1-1.5-1.4-3.2-1.4-5.1 0-5.2 4.2-9.4 9.4-9.4 2.5 0 4.9 1 6.7 2.8 1.8 1.8 2.8 4.2 2.8 6.7-.1 5.2-4.3 9.4-9.5 9.4zm5.1-7.1c-.3-.1-1.7-.9-1.9-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.1-.2.2-.3.2-.6.1s-1.2-.5-2.3-1.4c-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6s.3-.3.4-.5c.2-.1.3-.3.4-.5.1-.2 0-.4 0-.5C10 9 9.3 7.6 9 7c-.1-.4-.4-.3-.5-.3h-.6s-.4.1-.7.3c-.3.3-1 1-1 2.4s1 2.8 1.1 3c.1.2 2 3.1 4.9 4.3.7.3 1.2.5 1.6.6.7.2 1.3.2 1.8.1.6-.1 1.7-.7 1.9-1.3.2-.7.2-1.2.2-1.3-.1-.3-.3-.4-.6-.5z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Sharingbutton Telegram -->
|
||||
<a class="resp-sharing-button__link" href="https://telegram.me/share/url?text={{ .Title }}&url={{ $url }}"
|
||||
target="_blank" rel="noopener" aria-label="">
|
||||
<div class="resp-sharing-button resp-sharing-button--telegram resp-sharing-button--small">
|
||||
<div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M.707 8.475C.275 8.64 0 9.508 0 9.508s.284.867.718 1.03l5.09 1.897 1.986 6.38a1.102 1.102 0 0 0 1.75.527l2.96-2.41a.405.405 0 0 1 .494-.013l5.34 3.87a1.1 1.1 0 0 0 1.046.135 1.1 1.1 0 0 0 .682-.803l3.91-18.795A1.102 1.102 0 0 0 22.5.075L.706 8.475z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
9
themes/meghna-hugo/layouts/partials/preloader.html
Normal file
9
themes/meghna-hugo/layouts/partials/preloader.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{ if site.Params.preloader.enable }}
|
||||
{{ "<!-- preloader start -->" | safeHTML }}
|
||||
<div class="preloader">
|
||||
{{ with site.Params.preloader.preloader }}
|
||||
<img src="{{ . | absURL }}" alt="preloader">
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ "<!-- preloader end -->" | safeHTML }}
|
||||
{{ end }}
|
51
themes/meghna-hugo/layouts/partials/pricing.html
Normal file
51
themes/meghna-hugo/layouts/partials/pricing.html
Normal file
@ -0,0 +1,51 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.pricing.pricing.enable }}
|
||||
{{ with $data.pricing.pricing }}
|
||||
{{"<!-- Start Pricing section -->" | safeHTML}}
|
||||
<section id="pricing" class="pricing section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="col-lg-12">
|
||||
<div class="title text-center wow fadeInDown" data-wow-duration="500ms">
|
||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
|
||||
{{ range .pricing_table }}
|
||||
{{"<!-- single pricing table -->" | safeHTML}}
|
||||
<div class="col-lg-3 col-md-6 col-12 text-center wow fadeInUp" data-wow-duration="200ms">
|
||||
<div class="price-item">
|
||||
|
||||
{{"<!-- plan name & value -->" | safeHTML}}
|
||||
<div class="price-title">
|
||||
<h3>{{ .name }}</h3>
|
||||
<p><strong class="value">{{ .price }}</strong>/ {{ .unit }}</p>
|
||||
</div>
|
||||
|
||||
{{"<!-- plan description -->" | safeHTML}}
|
||||
<ul>
|
||||
{{ range .services }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{"<!-- signup button -->" | safeHTML}}
|
||||
{{ with .button }}
|
||||
<a class="btn btn-transparent" href="{{ .link | safeURL }}">{{ .label }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- end single pricing table -->" | safeHTML}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /pricing -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
37
themes/meghna-hugo/layouts/partials/service.html
Normal file
37
themes/meghna-hugo/layouts/partials/service.html
Normal file
@ -0,0 +1,37 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.service.service.enable}}
|
||||
{{ with $data.service.service}}
|
||||
{{"<!-- service -->" | safeHTML }}
|
||||
<section id="services" class="bg-one section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-12">
|
||||
{{"<!-- section title -->" | safeHTML }}
|
||||
<div class="title text-center wow fadeIn" data-wow-duration="500ms">
|
||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML }}
|
||||
|
||||
{{ range .service_item}}
|
||||
{{"<!-- Single Service Item -->" | safeHTML }}
|
||||
<article class="col-lg-4 col-md-6 col-12 wow fadeInUp" data-wow-duration="500ms">
|
||||
<div class="service-block text-center">
|
||||
<div class="service-icon text-center">
|
||||
<i class="{{ .icon }}"></i>
|
||||
</div>
|
||||
<h3>{{ .name | markdownify }}</h3>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</article>
|
||||
{{"<!-- End Single Service Item -->" | safeHTML }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /service -->" | safeHTML }}
|
||||
{{ end }}
|
||||
{{ end }}
|
48
themes/meghna-hugo/layouts/partials/skill.html
Normal file
48
themes/meghna-hugo/layouts/partials/skill.html
Normal file
@ -0,0 +1,48 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.skill.skill.enable }}
|
||||
{{ with $data.skill.skill }}
|
||||
{{"<!-- Skills -->" | safeHTML }}
|
||||
<section id="skills" class="parallax-section section section-bg overly">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{"<!-- section title -->" | safeHTML }}
|
||||
<div class="col-lg-12">
|
||||
<div class="title text-center">
|
||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML }}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<h2>{{ .subtitle | markdownify }}</h2>
|
||||
<p> {{ .content | markdownify }}</p>
|
||||
{{ with .image }}
|
||||
<img class="img-fluid lozad" data-src="{{ . | absURL }}" alt="image">
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<ul class="skill-bar">
|
||||
{{ $.Scratch.Set "counter" 0 }}
|
||||
{{ range $index, $element:= .skill_item }}
|
||||
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}
|
||||
<li>
|
||||
<p><span>{{if lt $index 9}}0{{end}}{{$.Scratch.Get `counter`}}- </span>{{ .name }}</p>
|
||||
<div class="progress">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"
|
||||
style="width:{{ .percent }}">
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /skill -->" | safeHTML }}
|
||||
{{ end }}
|
||||
{{ end }}
|
52
themes/meghna-hugo/layouts/partials/team.html
Normal file
52
themes/meghna-hugo/layouts/partials/team.html
Normal file
@ -0,0 +1,52 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.team.team.enable }}
|
||||
{{ with $data.team.team }}
|
||||
{{"<!-- Start Our Team -->" | safeHTML}}
|
||||
<section id="team" class="section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-12">
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="title text-center wow fadeInUp" data-wow-duration="500ms">
|
||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with .title }} {{ after (len (index (split . " ") 0)) . | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
|
||||
{{ range .team_member}}
|
||||
{{"<!-- team member -->" | safeHTML}}
|
||||
<div class="col-lg-3 col-md-6 col-12 wow fadeInDown" data-wow-duration="500ms">
|
||||
<div class="team-member">
|
||||
<div class="member-photo">
|
||||
{{"<!-- member photo -->" | safeHTML}}
|
||||
<img class="img-fluid lozad" data-src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
|
||||
|
||||
{{"<!-- member social profile -->" | safeHTML}}
|
||||
<div class="mask">
|
||||
<ul class="list-inline">
|
||||
{{ range .social }}
|
||||
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{"<!-- member name & designation -->" | safeHTML}}
|
||||
<div class="member-meta">
|
||||
<h4>{{ .name }}</h4>
|
||||
<span>{{ .designation | markdownify}}</span>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- end team member -->" | safeHTML}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /team -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
44
themes/meghna-hugo/layouts/partials/testimonial.html
Normal file
44
themes/meghna-hugo/layouts/partials/testimonial.html
Normal file
@ -0,0 +1,44 @@
|
||||
{{ $data := index site.Data site.Language.Lang }}
|
||||
|
||||
{{ if $data.testimonial.testimonial.enable }}
|
||||
{{ with $data.testimonial.testimonial }}
|
||||
{{"<!-- Start Testimonial -->" | safeHTML}}
|
||||
<section id="testimonial" class="testimonial overly section bg-2"
|
||||
style='background-image: url("{{ .bg_image_webp | absURL }}")'>
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img src="{{ .bg_image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
{{"<!-- testimonial wrapper -->" | safeHTML}}
|
||||
<div id="testimonials" class="wow fadeInUp" data-wow-duration="500ms" data-wow-delay="100ms">
|
||||
{{ range .testimonial_item }}
|
||||
{{"<!-- testimonial single -->" | safeHTML}}
|
||||
<div class="item text-center">
|
||||
|
||||
{{"<!-- client photo -->" | safeHTML}}
|
||||
<div class="client-thumb">
|
||||
<img class="img-fluid lozad" data-src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
|
||||
</div>
|
||||
|
||||
{{"<!-- client info -->" | safeHTML}}
|
||||
<div class="client-info">
|
||||
<div class="client-meta">
|
||||
<h3>{{ .name }}</h3>
|
||||
<span>{{ .date }}</span>
|
||||
</div>
|
||||
<div class="client-comment">
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /testimonial single -->" | safeHTML}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /testimonial -->" | safeHTML}}
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user