diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2020-09-28 13:57:12 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2020-09-28 13:57:12 +0300 |
commit | ced43189b8a54d1144ecb3a9d1ba054b150e207d (patch) | |
tree | 573837b5df6a1094bce76649c8e6b6716307c06a /layouts |
initialize template
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 0 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 12 | ||||
-rw-r--r-- | layouts/_default/list.html | 58 | ||||
-rw-r--r-- | layouts/_default/single.html | 40 | ||||
-rw-r--r-- | layouts/contact/list.html | 28 | ||||
-rw-r--r-- | layouts/faq/list.html | 19 | ||||
-rw-r--r-- | layouts/index.html | 148 | ||||
-rw-r--r-- | layouts/partials/footer.html | 52 | ||||
-rw-r--r-- | layouts/partials/head.html | 32 | ||||
-rw-r--r-- | layouts/partials/header.html | 45 | ||||
-rw-r--r-- | layouts/partials/page-header.html | 8 | ||||
-rw-r--r-- | layouts/partials/preloader.html | 9 | ||||
-rw-r--r-- | layouts/pricing/list.html | 99 | ||||
-rw-r--r-- | layouts/shortcodes/faq.html | 8 |
14 files changed, 558 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/404.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..37b1c92 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> +{{- partial "head.html" . -}} + +<body> + {{- partial "preloader.html" . -}} + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} +</body> + +</html>
\ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..dc1da42 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,58 @@ +{{ define "main" }} + +{{ partial "page-header.html" . }} + +<!-- checking blog --> +{{ if or (or (eq .Section "post") (eq .Section "blog")) (or (eq .Section "categories") (eq .Section "tags") )}} + +<section class="section"> + <div class="container"> + <div class="row"> + {{ range first 1 (where .Data.Pages "Type" "featured") }} + <div class="col-12 mb-5 pb-5"> + <div class="row align-items-center"> + <div class="col-md-6 mb-4 mb-md-0"> + <img src="{{ .Params.image | absURL }}" alt="{{.Title}}" class="img-fluid rounded-lg w-100"> + </div> + <div class="col-md-6"> + <h2><a href="{{ .Permalink }}" class="post-title">{{ .Title }}</a></h2> + <p class="card-text">{{ .Summary }}</p> + <a href="{{.Permalink}}" class="btn btn-primary">Read More</a> + </div> + </div> + </div> + {{ end }} + {{ $paginator := .Paginate .Data.Pages }} + {{ range $paginator.Pages }} + <div class="col-lg-4 col-sm-6 mb-5"> + <div class="card border-0"> + <img src="{{ .Params.image |absURL }}" alt="{{ .Title }}" class="card-img rounded-lg mb-4"> + <div class="card-body p-0"> + <h3><a href="{{ .Permalink }}" class="post-title">{{ .Title }}</a></h3> + <p class="card-text">{{ .Summary }}</p> + <a href="{{.Permalink}}" class="btn btn-primary btn-sm">Read More</a> + </div> + </div> + </div> + {{ end }} + <div class="col-12"> + {{ template "_internal/pagination.html" . }} + </div> + </div> + </div> +</section> + +<!-- regular page --> +{{ else }} +<section class="section"> + <div class="container"> + <div class="row"> + <div class="col-lg-10 mx-auto"> + <div class="content">{{ .Content }}</div> + </div> + </div> + </div> +</section> +{{ end }} + +{{ end }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..cf6ec26 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,40 @@ +{{ define "main" }} + +<!-- checking blog --> +{{ if or (or (eq .Section "post") (eq .Section "blog")) (or (eq .Section "categories") (eq .Section "tags") )}} + +<section class="section"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 mx-auto"> + <img src="{{ .Params.image | absURL }}" alt="{{ .Title }}" class="img-fluid w-100 rounded mb-4"> + <h2 class="mb-4">{{ .Title }}</h2> + <div class="content">{{.Content}}</div> + + <!-- comments --> + {{ if site.DisqusShortname }} + <div class="mt-5"> + {{ template "_internal/disqus.html" . }} + </div> + {{ end }} + </div> + </div> + </div> +</section> + +<!-- regular page --> +{{ else }} +{{ partial "page-header.html" . }} +<section class="section"> + <div class="container"> + <div class="row"> + <div class="col-lg-10 mx-auto"> + <div class="content">{{ .Content }}</div> + </div> + </div> + </div> +</section> +{{ end }} + + +{{ end }}
\ No newline at end of file diff --git a/layouts/contact/list.html b/layouts/contact/list.html new file mode 100644 index 0000000..5b95d4c --- /dev/null +++ b/layouts/contact/list.html @@ -0,0 +1,28 @@ +{{ define "main" }} + +{{ partial "page-header.html" . }} +<section class="section bg-white"> + <div class="container"> + <div class="row"> + <div class="col-lg-7 mb-4 mb-lg-0"> + <form action="{{ site.Params.contact_form_action | safeURL }}" method="POST"> + <input type="text" class="form-control mb-3" id="name" name="name" placeholder="Your Name"> + <input type="email" class="form-control mb-3" id="mail" name="mail" placeholder="Your Email"> + <input type="text" class="form-control mb-3" id="subject" name="subject" placeholder="Subject"> + <textarea name="message" id="message" class="form-control mb-3" placeholder="Your Message"></textarea> + <button type="submit" value="send" class="btn btn-primary">Send Now</button> + </form> + </div> + + <div class="col-lg-5 content"> + {{ .Content }} + </div> + </div> + </div> +</section> + +<!-- call to action --> + +<!-- /call to action --> + +{{ end }}
\ No newline at end of file diff --git a/layouts/faq/list.html b/layouts/faq/list.html new file mode 100644 index 0000000..0d07889 --- /dev/null +++ b/layouts/faq/list.html @@ -0,0 +1,19 @@ +{{ define "main" }} +{{ partial "page-header.html" . }} + +{{ "<!-- faq -->" | safeHTML }} +<section class="section"> + <div class="container"> + <div class="row"> + {{ .Content }} + </div> + </div> +</section> +{{ "<!-- /faq -->" | safeHTML }} + + +<!-- call to action --> + +<!-- /call to action --> + +{{ end }}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..3071b49 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,148 @@ +{{ define "main" }} + +<!-- banner --> +{{ with site.Data.homepage.banner }} +<section class="banner"> + <div class="container"> + <div class="row"> + <div class="col-lg-10 mx-auto text-center"> + <h1 class="mb-3">{{ .title | markdownify }}</h1> + <p class="mb-4">{{ .content | markdownify }}</p> + {{ if .button.enable }} + {{ with .button }} + <div><a href="{{ .link | safeURL }}" class="btn btn-primary">{{ .label }}</a></div> + {{ end }} + {{ end }} + + {{with .image}}<img src="{{ . | absURL }}" class="img-fluid mt-5" width="750px">{{end}} + </div> + </div> + </div> +</section> +{{ end }} +<!-- /banner --> + +<!-- feature --> +{{ if site.Data.homepage.feature.enable }} +{{ with site.Data.homepage.feature }} +<section class="section bg-light"> + <div class="container"> + <div class="row justify-content-center"> + <div class="col-12 text-center"> + <h2 class="section-title">{{ .title | markdownify }}</h2> + </div> + {{ range .feature_item }} + <div class="col-md-4 col-sm-6 mb-4"> + <div class="feature-card text-center"> + <i class="{{.icon}} mb-3"></i> + <h4 class="mb-2">{{ .name | title }}</h4> + <p>{{ .content | markdownify }}</p> + </div> + </div> + {{ end }} + </div> + </div> +</section> +{{ end }} +{{ end }} +<!-- /feature --> + +<!-- service --> +{{ if site.Data.homepage.service.enable }} +{{ with site.Data.homepage.service }} +{{ range $i,$p := .service_item }} +{{if modBool $i 2}} +<section class="section"> + <div class="container"> + <div class="row align-items-center"> + <div class="col-md-6 order-2 order-md-1"> + <h2 class="section-title">{{ .title | markdownify }}</h2> + <p>{{ .content | markdownify }}</p> + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn-link">{{ .label }} <i class="ti-arrow-right"></i></a> + {{ end }} + {{ end }} + </div> + <div class="col-md-6 order-1 order-md-2 mb-4 mb-md-0"> + <div {{if gt (len .images) 1}}class="slider" {{end}}> + {{ range .images }} + <img src="{{ . | absURL }}" class="img-fluid"> + {{ end }} + </div> + </div> + </div> + </div> +</section> +{{ else }} +<section class="section bg-light"> + <div class="container"> + <div class="row align-items-center"> + <div class="col-md-6 mb-4 mb-md-0"> + <div {{if gt (len .images) 1}}class="slider" {{end}}> + {{ range .images }} + <img src="{{ . | absURL }}" class="img-fluid"> + {{ end }} + </div> + </div> + <div class="col-md-6"> + <h2 class="section-title">{{ .title | markdownify }}</h2> + <p>{{ .content | markdownify }}</p> + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn-link">{{ .label }} <i class="ti-arrow-right"></i></a> + {{ end }} + {{ end }} + </div> + </div> + </div> +</section> +{{ end }} +{{ end }} +{{ end }} +{{ end }} +<!-- /service --> + +<!-- screenshot --> +{{ if site.Data.homepage.screenshot.enable }} +{{ with site.Data.homepage.screenshot }} +<section class="section pb-0"> + <div class="container"> + <div class="row"> + <div class="col-lg-8 mx-auto text-center"> + <h2 class="section-title">{{ .title | markdownify }}</h2> + </div> + </div> + </div> + {{ with .image }} <img src="{{ . | absURL }}" class="img-fluid w-100">{{ end }} +</section> +{{ end }} +{{ end }} +<!-- /screenshot --> + +<!-- call to action --> +{{ if site.Data.homepage.call_to_action.enable }} +{{ with site.Data.homepage.call_to_action }} +<section class="section"> + <div class="container section shadow rounded-lg px-4"> + <div class="row align-items-center justify-content-center text-center text-md-left"> + <div class="col-lg-4 col-md-5 mb-4 mb-md-0"> + <img src="{{ .image | absURL }}" class="img-fluid"> + </div> + <div class="col-lg-5 col-md-6"> + <h2 class="section-title">{{ .title | markdownify }}</h2> + {{with .content }}<p class="mb-4">{{ . | markdownify }}</p>{{ end }} + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a> + {{ end }} + {{ end }} + </div> + </div> + </div> +</section> +{{ end }} +{{ end }} +<!-- /call to action --> + +{{ end }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..d001912 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,52 @@ +<footer class="bg-light section pb-0"> + <div class="container"> + <div class="row"> + <div class="col-md-3 col-sm-6 mb-5"> + <h3 class="mb-4">Company</h3> + <ul class="list-unstyled footer-list"> + {{ range site.Menus.company }} + <li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li> + {{ end }} + </ul> + </div> + <div class="col-md-3 col-sm-6 mb-5"> + <h3 class="mb-4">Product</h3> + <ul class="list-unstyled footer-list"> + {{ range site.Menus.product }} + <li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li> + {{ end }} + </ul> + </div> + <div class="col-md-3 col-sm-6 mb-5"> + <h3 class="mb-4">Support</h3> + <ul class="list-unstyled footer-list"> + {{ range site.Menus.support }} + <li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li> + {{ end }} + </ul> + </div> + <div class="col-md-3 col-sm-6 mb-5"> + <a class="d-block mb-3" href="{{ site.BaseURL }}"><img width="{{site.Params.logo_width}}" class="img-fluid" src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}"></a> + <p class="mb-4">{{ site.Params.footer_content | markdownify }}</p> + + <ul class="list-inline social-icons"> + {{ range site.Params.social }} + <li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li> + {{ end }} + </ul> + </div> + </div> + <div class="border-top border-default text-center py-4 mt-4"> + <small class="content">{{ site.Params.Copyright | markdownify }}</small> + </div> + </div> +</footer> + +{{ "<!-- JS Plugins -->" | safeHTML }} +{{ range site.Params.plugins.js}} +<script src="{{ .link | absURL }}"></script> +{{ end }} + +{{ "<!-- Main Script -->" | safeHTML }} +{{ $script := resources.Get "js/script.js" | minify}} +<script src="{{ $script.Permalink }}"></script>
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..17d401c --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,32 @@ +<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 .Params.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 }} + {{ $style := resources.Get "scss/style.scss" | toCSS | minify }} + <link href="{{ $style.Permalink }}" rel="stylesheet" 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 .Params.Image }} + <meta property="og:image" content="{{ . | absURL }}" /> + {{ end }} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/google_analytics.html" . }} + {{ template "_internal/google_analytics_async.html" . }} + +</head>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..4ab2725 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,45 @@ +{{ "<!-- navigation -->" | safeHTML }} +<header class="navigation"> + <div class="container"> + <!-- navbar --> + <nav class="navbar navbar-expand-lg navbar-light bg-transparent"> + <a class="navbar-brand" href="{{ site.BaseURL }}"> + {{ with site.Params.logo}} + <img width="{{site.Params.logo_width}}" class="img-fluid" src="{{ . | absURL }}" alt="{{ site.Title }}"></a> + {{ else }}{{site.Title}}{{end}} + <button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation"> + <i class="ti-menu h3"></i> + </button> + + <div class="collapse navbar-collapse text-center" id="navigation"> + <ul class="navbar-nav mx-auto"> + {{ range site.Menus.main }} + {{ if .HasChildren }} + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"> + {{ .Name }} + </a> + <div class="dropdown-menu"> + {{ range .Children }} + <a class="dropdown-item" href="{{ .URL | absURL }}">{{ .Name }}</a> + {{ end }} + </div> + </li> + {{ else }} + <li class="nav-item"> + <a class="nav-link" href="{{ .URL | absURL }}">{{ .Name }}</a> + </li> + {{ end }} + {{ end }} + </ul> + + {{ if site.Params.navigation_button.enable }} + {{ with site.Params.navigation_button }} + <a href="{{ .link | absURL }}" class="btn btn-sm btn-primary ml-3">{{ .label }}</a> + {{ end }} + {{ end }} + </div> + </nav> + </div> +</header> +{{ "<!-- /navigation -->" | safeHTML }}
\ No newline at end of file diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html new file mode 100644 index 0000000..4fdaf72 --- /dev/null +++ b/layouts/partials/page-header.html @@ -0,0 +1,8 @@ +<section class="section pb-0"> + <div class="container text-center"> + <h1 class="display-3">{{ .Title | markdownify }}</h1> + {{ with .Params.subtitle }} + <p>{{ . | markdownify }}</p> + {{ end }} + </div> +</section>
\ No newline at end of file diff --git a/layouts/partials/preloader.html b/layouts/partials/preloader.html new file mode 100644 index 0000000..a33e4d1 --- /dev/null +++ b/layouts/partials/preloader.html @@ -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 }}
\ No newline at end of file diff --git a/layouts/pricing/list.html b/layouts/pricing/list.html new file mode 100644 index 0000000..28d821c --- /dev/null +++ b/layouts/pricing/list.html @@ -0,0 +1,99 @@ +{{ define "main" }} + +{{ partial "page-header.html" . }} +<section class="section"> + <div class="container pricing-container"> + <div class="row justify-content-center align-items-center"> + <div class="col-lg-4 mb-5 mb-lg-0 px-3 pl-3 px-lg-0"> + {{ with .Params.basic }} + <div class="card shadow"> + <div class="card-body text-center py-5"> + <h3 class="mb-4">{{ .name | markdownify }}</h3> + <span class="price">{{ .price }}</span><span>/{{ .price_per }}</span> + <p class="lead">{{ .info | markdownify }}</p> + <ul class="list-unstyled mb-5"> + {{ range .services }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn btn-outline-primary">{{ .label }}</a> + {{ end }} + {{ end }} + </div> + </div> + {{ end }} + </div> + <div class="col-lg-4 col-recommended"> + {{ with .Params.professional }} + <div class="card border-0 shadow-lg"> + <div class="card-body text-center py-5"> + <h3 class="mb-4">{{ .name | markdownify }}</h3> + <span class="price">{{ .price }}</span><span>/{{ .price_per }}</span> + <p class="lead">{{ .info | markdownify }}</p> + <ul class="list-unstyled mb-5"> + {{ range .services }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a> + {{ end }} + {{ end }} + </div> + </div> + {{ end }} + </div> + <div class="col-lg-4 mb-5 mb-lg-0 px-3 pr-3 px-lg-0"> + {{ with .Params.business }} + <div class="card shadow"> + <div class="card-body text-center py-5"> + <h3 class="mb-4">{{ .name | markdownify }}</h3> + <span class="price">{{ .price }}</span><span>/{{ .price_per }}</span> + <p class="lead">{{ .info | markdownify }}</p> + <ul class="list-unstyled mb-5"> + {{ range .services }} + <li>{{ . | markdownify }}</li> + {{ end }} + </ul> + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn btn-outline-primary">{{ .label }}</a> + {{ end }} + {{ end }} + </div> + </div> + {{ end }} + </div> + </div> + </div> +</section> + +<!-- call to action --> +{{ if .Params.call_to_action.enable }} +{{ with .Params.call_to_action }} +<section class="section"> + <div class="container section shadow rounded-lg px-4"> + <div class="row align-items-center justify-content-center text-center text-md-left"> + <div class="col-lg-4 col-md-5 mb-4 mb-md-0"> + <img src="{{ .image | absURL }}" class="img-fluid"> + </div> + <div class="col-lg-5 col-md-6"> + <h2 class="section-title">{{ .title | markdownify }}</h2> + {{with .content }}<p class="mb-4">{{ . | markdownify }}</p>{{ end }} + {{ if .button.enable }} + {{ with .button }} + <a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a> + {{ end }} + {{ end }} + </div> + </div> + </div> +</section> +{{ end }} +{{ end }} +<!-- /call to action --> + +{{ end }}
\ No newline at end of file diff --git a/layouts/shortcodes/faq.html b/layouts/shortcodes/faq.html new file mode 100644 index 0000000..82a88f3 --- /dev/null +++ b/layouts/shortcodes/faq.html @@ -0,0 +1,8 @@ +{{ $_hugo_config := `{ "version": 1 }` }} + +<div class="col-md-6 mb-4"> + <div class="p-5 shadow rounded-lg"> + <h3 class="mb-4 check-mark">{{ .Get 0 | markdownify }}</h3> + <p>{{ .Inner | markdownify }}</p> + </div> +</div>
\ No newline at end of file |