diff options
author | somratpro <abdulmonnafsomrat@gmail.com> | 2021-10-31 07:31:58 +0300 |
---|---|---|
committer | somratpro <abdulmonnafsomrat@gmail.com> | 2021-10-31 07:31:58 +0300 |
commit | d57b1322c5df6d4971e41ab860a0dc2ed73a87ec (patch) | |
tree | 1823159fcc7a39e55f960861ef58f33d01b8290f /layouts | |
parent | e31a93dbd364626483246043e718e6a48c8d3eca (diff) |
merged
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 46 | ||||
-rw-r--r-- | layouts/_default/list.html | 8 | ||||
-rw-r--r-- | layouts/_default/single.html | 8 | ||||
-rw-r--r-- | layouts/contact/list.html | 48 | ||||
-rw-r--r-- | layouts/faq/list.html | 38 | ||||
-rw-r--r-- | layouts/index.html | 96 | ||||
-rw-r--r-- | layouts/partials/banner.html | 76 | ||||
-rw-r--r-- | layouts/partials/default.html | 208 | ||||
-rw-r--r-- | layouts/partials/footer.html | 42 | ||||
-rw-r--r-- | layouts/partials/head.html | 178 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 136 | ||||
-rw-r--r-- | layouts/shortcodes/faq.html | 22 | ||||
-rw-r--r-- | layouts/shortcodes/notice.html | 4 | ||||
-rw-r--r-- | layouts/shortcodes/tab.html | 8 | ||||
-rw-r--r-- | layouts/shortcodes/tabs.html | 10 |
15 files changed, 464 insertions, 464 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 759ed91..56b3402 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,24 +1,24 @@ -<!DOCTYPE html> -<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}"> - {{ partial "head.html" . }} - - <body> - {{ if .IsHome }} - {{ "<!-- header -->" | safeHTML }} - <header class="banner {{if .Site.Params.banner.bg_image}}overlay bg-cover{{else}}bg-primary{{end}}" data-background="{{ .Site.Params.banner.bg_image | absURL }}"> - {{ partial "navigation.html" . }} - {{ partialCached "banner.html" . }} - </header> - {{ "<!-- /header -->" | safeHTML }} - {{ else }} - {{ "<!-- header -->" | safeHTML }} - <header class="shadow-bottom sticky-top bg-white"> - {{ partialCached "navigation.html" . }} - </header> - {{ "<!-- /header -->" | safeHTML }} - {{ end }} - {{ block "main" . }}{{ end }} - {{ partialCached "footer.html" . }} - </body> - +<!DOCTYPE html>
+<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
+ {{ partial "head.html" . }}
+
+ <body>
+ {{ if .IsHome }}
+ {{ "<!-- header -->" | safeHTML }}
+ <header class="banner {{if .Site.Params.banner.bg_image}}overlay bg-cover{{else}}bg-primary{{end}}" data-background="{{ .Site.Params.banner.bg_image | absURL }}">
+ {{ partial "navigation.html" . }}
+ {{ partialCached "banner.html" . }}
+ </header>
+ {{ "<!-- /header -->" | safeHTML }}
+ {{ else }}
+ {{ "<!-- header -->" | safeHTML }}
+ <header class="shadow-bottom sticky-top bg-white">
+ {{ partialCached "navigation.html" . }}
+ </header>
+ {{ "<!-- /header -->" | safeHTML }}
+ {{ end }}
+ {{ block "main" . }}{{ end }}
+ {{ partialCached "footer.html" . }}
+ </body>
+
</html>
\ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c23f62b..1d42806 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ -{{ define "main" }} - -{{ partial "default.html" . }} - +{{ define "main" }}
+
+{{ partial "default.html" . }}
+
{{ end }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c23f62b..1d42806 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ -{{ define "main" }} - -{{ partial "default.html" . }} - +{{ define "main" }}
+
+{{ partial "default.html" . }}
+
{{ end }}
\ No newline at end of file diff --git a/layouts/contact/list.html b/layouts/contact/list.html index 9278c5c..c7eb134 100644 --- a/layouts/contact/list.html +++ b/layouts/contact/list.html @@ -1,25 +1,25 @@ -{{ define "main" }} - -{{ "<!-- contact -->" | safeHTML }} -<section class="section"> - <div class="container"> - <div class="row"> - <div class="col-12"> - <h2 class="section-title text-primary">{{ .Title }}</h2> - {{ .Content }} - <form action="{{ .Site.Params.contact_form_action | safeURL }}" method="POST"> - <input type="text" id="name" name="name" placeholder="Name" class="form-control mb-4 shadow rounded-0"> - <input type="email" id="mail" name="mail" placeholder="Email" class="form-control mb-4 shadow rounded-0"> - <input type="text" id="subject" name="subject" placeholder="subject" - class="form-control mb-4 shadow rounded-0"> - <textarea name="message" id="message" placeholder="Message" - class="form-control mb-4 shadow rounded-0"></textarea> - <button type="submit" value="send" class="btn btn-primary">{{ i18n "send" }}</button> - </form> - </div> - </div> - </div> -</section> -{{ "<!-- /contact -->" | safeHTML }} - +{{ define "main" }}
+
+{{ "<!-- contact -->" | safeHTML }}
+<section class="section">
+ <div class="container">
+ <div class="row">
+ <div class="col-12">
+ <h2 class="section-title text-primary">{{ .Title }}</h2>
+ {{ .Content }}
+ <form action="{{ .Site.Params.contact_form_action | safeURL }}" method="POST">
+ <input type="text" id="name" name="name" placeholder="Name" class="form-control mb-4 shadow rounded-0">
+ <input type="email" id="mail" name="mail" placeholder="Email" class="form-control mb-4 shadow rounded-0">
+ <input type="text" id="subject" name="subject" placeholder="subject"
+ class="form-control mb-4 shadow rounded-0">
+ <textarea name="message" id="message" placeholder="Message"
+ class="form-control mb-4 shadow rounded-0"></textarea>
+ <button type="submit" value="send" class="btn btn-primary">{{ i18n "send" }}</button>
+ </form>
+ </div>
+ </div>
+ </div>
+</section>
+{{ "<!-- /contact -->" | safeHTML }}
+
{{ end }}
\ No newline at end of file diff --git a/layouts/faq/list.html b/layouts/faq/list.html index 75f5915..0dc7e33 100644 --- a/layouts/faq/list.html +++ b/layouts/faq/list.html @@ -1,20 +1,20 @@ -{{ define "main" }} - - {{ $data := index .Site.Data .Site.Language.Lang }} - {{ "<!-- faq -->" | safeHTML }} - <section class="section pb-0"> - <div class="container"> - <div class="row"> - <div class="col-12"> - <h2 class="section-title text-primary">{{ .Title }}</h2> - {{ "<!-- accordion -->" | safeHTML }} - <div id="accordion"> - {{ .Content }} - </div> - </div> - </div> - </div> - </section> - {{ "<!-- /faq -->" | safeHTML }} - +{{ define "main" }}
+
+ {{ $data := index .Site.Data .Site.Language.Lang }}
+ {{ "<!-- faq -->" | safeHTML }}
+ <section class="section pb-0">
+ <div class="container">
+ <div class="row">
+ <div class="col-12">
+ <h2 class="section-title text-primary">{{ .Title }}</h2>
+ {{ "<!-- accordion -->" | safeHTML }}
+ <div id="accordion">
+ {{ .Content }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ {{ "<!-- /faq -->" | safeHTML }}
+
{{ end }}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 8b3973f..6bea09d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,49 +1,49 @@ -{{ define "main" }} - - {{ "<!-- topics -->" | safeHTML }} - <section class="section"> - <div class="container"> - <div class="row justify-content-center"> - <div class="col-12 text-center"> - <h2 class="section-title">{{ i18n "topics_title" | safeHTML }}</h2> - </div> - {{ "<!-- topic-item -->" | safeHTML }} - {{ range (where .Site.Pages "Type" "docs") }} - <div class="col-lg-4 col-sm-6 mb-4"> - <a href="{{ .Permalink }}" class="px-4 py-5 bg-white shadow text-center d-block match-height"> - {{ with .Params.icon}}<i class="{{.}} icon text-primary d-block mb-4"></i>{{end}} - <h3 class="mb-3 mt-0">{{ .Title }}</h3> - {{with .Params.description}}<p class="mb-0">{{. | markdownify}}</p>{{end}} - </a> - </div> - {{ end }} - </div> - </div> - </section> - {{ "<!-- /topics -->" | safeHTML }} - - {{ if .Site.Params.cta.enable }} - {{ with .Site.Params.cta }} - {{ "<!-- call to action -->" | safeHTML }} - <section> - <div class="container"> - <div class="row"> - <div class="col-12"> - <div class="section px-3 bg-white shadow text-center"> - <h2 class="mb-4">{{ .title | markdownify }}</h2> - <p class="mb-4">{{ .content | markdownify }}</p> - {{ if .button.enable }} - {{ with .button }} - <a href="{{ .link | relLangURL }}" class="btn btn-primary">{{ .label }}</a> - {{ end }} - {{ end }} - </div> - </div> - </div> - </div> - </section> - {{ "<!-- /call to action -->" | safeHTML }} - {{ end }} - {{ end }} - +{{ define "main" }}
+
+ {{ "<!-- topics -->" | safeHTML }}
+ <section class="section">
+ <div class="container">
+ <div class="row justify-content-center">
+ <div class="col-12 text-center">
+ <h2 class="section-title">{{ i18n "topics_title" | safeHTML }}</h2>
+ </div>
+ {{ "<!-- topic-item -->" | safeHTML }}
+ {{ range (where .Site.Pages "Type" "docs") }}
+ <div class="col-lg-4 col-sm-6 mb-4">
+ <a href="{{ .Permalink }}" class="px-4 py-5 bg-white shadow text-center d-block match-height">
+ {{ with .Params.icon}}<i class="{{.}} icon text-primary d-block mb-4"></i>{{end}}
+ <h3 class="mb-3 mt-0">{{ .Title }}</h3>
+ {{with .Params.description}}<p class="mb-0">{{. | markdownify}}</p>{{end}}
+ </a>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+ </section>
+ {{ "<!-- /topics -->" | safeHTML }}
+
+ {{ if .Site.Params.cta.enable }}
+ {{ with .Site.Params.cta }}
+ {{ "<!-- call to action -->" | safeHTML }}
+ <section>
+ <div class="container">
+ <div class="row">
+ <div class="col-12">
+ <div class="section px-3 bg-white shadow text-center">
+ <h2 class="mb-4">{{ .title | markdownify }}</h2>
+ <p class="mb-4">{{ .content | markdownify }}</p>
+ {{ if .button.enable }}
+ {{ with .button }}
+ <a href="{{ .link | relLangURL }}" class="btn btn-primary">{{ .label }}</a>
+ {{ end }}
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ {{ "<!-- /call to action -->" | safeHTML }}
+ {{ end }}
+ {{ end }}
+
{{ end }}
\ No newline at end of file diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html index 047d870..ddf07dd 100644 --- a/layouts/partials/banner.html +++ b/layouts/partials/banner.html @@ -1,39 +1,39 @@ -{{ "<!-- banner -->" | safeHTML }} -<div class="container section"> - <div class="row"> - <div class="col-lg-8 text-center mx-auto"> - <h1 class="text-white mb-3">{{ .Site.Params.banner.title | markdownify }}</h1> - <p class="text-white mb-4">{{ .Site.Params.banner.subtitle | markdownify }}</p> - <div class="position-relative"> - <input id="search" class="form-control" placeholder="{{ .Site.Params.banner.placeholder }}"> - <i class="ti-search search-icon"></i> - <!-- Javascript --> - {{ $currentNode := . }} - {{ $currentNode.Scratch.Set "pages" .Site.Pages }} - {{ $pages := ($currentNode.Scratch.Get "pages") }} - <script> - $(function() { - var projects = [ - {{ range $pages }} - { - value: "{{ .Title }}", - label: "<p>{{.Plain}}</p>{{range.Params.Keywords}}<p>{{.}}</p>{{end}}", - url:"{{ .Permalink }}" - }, - {{ end }} - ]; - $( "#search" ).autocomplete({ - source: projects - }) - .data( "ui-autocomplete" )._renderItem = function( ul, item ) { - return $( "<li>" ) - .append( "<a href=" + item.url + " + \" "\" + >" + item.value + "</a>" + item.label ) - .appendTo( ul ); - }; - }); - </script> - </div> - </div> - </div> -</div> +{{ "<!-- banner -->" | safeHTML }}
+<div class="container section">
+ <div class="row">
+ <div class="col-lg-8 text-center mx-auto">
+ <h1 class="text-white mb-3">{{ .Site.Params.banner.title | markdownify }}</h1>
+ <p class="text-white mb-4">{{ .Site.Params.banner.subtitle | markdownify }}</p>
+ <div class="position-relative">
+ <input id="search" class="form-control" placeholder="{{ .Site.Params.banner.placeholder }}">
+ <i class="ti-search search-icon"></i>
+ <!-- Javascript -->
+ {{ $currentNode := . }}
+ {{ $currentNode.Scratch.Set "pages" .Site.Pages }}
+ {{ $pages := ($currentNode.Scratch.Get "pages") }}
+ <script>
+ $(function() {
+ var projects = [
+ {{ range $pages }}
+ {
+ value: "{{ .Title }}",
+ label: "<p>{{.Plain}}</p>{{range.Params.Keywords}}<p>{{.}}</p>{{end}}",
+ url:"{{ .Permalink }}"
+ },
+ {{ end }}
+ ];
+ $( "#search" ).autocomplete({
+ source: projects
+ })
+ .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
+ return $( "<li>" )
+ .append( "<a href=" + item.url + " + \" "\" + >" + item.value + "</a>" + item.label )
+ .appendTo( ul );
+ };
+ });
+ </script>
+ </div>
+ </div>
+ </div>
+</div>
{{ "<!-- /banner -->" | safeHTML }}
\ No newline at end of file diff --git a/layouts/partials/default.html b/layouts/partials/default.html index b60b3cb..f166c46 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -1,105 +1,105 @@ -{{ "<!-- details page -->" | safeHTML }} -<section class="single section-sm pb-0"> - <div class="container"> - <div class="row"> - <div class="col-lg-3"> - <div class="sidebar"> - <a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}" aria-label="back"></a> - <ul class="list-styled"> - {{ $currentNode := . }} - {{range .Site.Home.Sections.ByWeight}} - {{ if eq .FirstSection $currentNode.FirstSection }} - {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}} - {{ end }} - {{ end }} - </ul> - </div> - </div> - <div class="col-lg-9"> - <div class="p-lg-5 p-4 bg-white"> - <h2 class="mb-5">{{ .Title }}</h2> - {{ if .Content }} - <div class="content">{{.Content}}</div> - {{ else }} - <div class="bg-light p-4"> - <ul class="page-list"> - {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }} - </ul> - </div> - {{ end }} - <p class="post-meta border-bottom pb-3 mb-0 mt-3">Updated on {{ .Lastmod.Format "02 Jan 2006" }}</p> - <nav class="pagination mt-3"> - <!-- Next prev page --> - {{ $currentNode := . }} - {{ template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode }} - {{ define "menu-nextprev" }} - {{$currentNode := .currentnode }} - {{ if ne .menu.Params.hidden true}} - {{if hasPrefix $currentNode.Permalink .menu.Permalink }} - {{ $currentNode.Scratch.Set "NextPageOK" "OK" }} - {{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }} - {{else}} - {{if eq ($currentNode.Scratch.Get "NextPageOK") "OK"}} - {{ $currentNode.Scratch.Set "NextPageOK" nil }} - {{ $currentNode.Scratch.Set "nextPage" .menu }} - {{end}} - {{end}} - {{ $currentNode.Scratch.Set "prevPageTmp" .menu }} - - {{ $currentNode.Scratch.Set "pages" .menu.Pages }} - {{ if .menu.IsHome}} - {{ $currentNode.Scratch.Set "pages" .menu.Sections }} - {{ else if .menu.Sections}} - {{ $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) }} - {{end}} - {{ $pages := ($currentNode.Scratch.Get "pages") }} - - {{ range $pages.ByWeight }} - {{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }} - {{end}} - {{ end }} - {{ end }} - - {{with ($.Scratch.Get "prevPage")}} - <a class="nav nav-prev" href="{{.Permalink }}" aria-label="Previous page" ><i class="ti-arrow-left mr-2"></i> <span class="d-none d-md-block">{{.Title}}</span></a> - {{end}} - {{with ($.Scratch.Get "nextPage")}} - <a class="nav nav-next" href="{{.Permalink }}" aria-label="Previous page" > <span class="d-none d-md-block">{{.Title}}</span><i class="ti-arrow-right ml-2"></i></a> - {{end}} - </nav> - </div> - </div> - </div> - </div> -</section> -{{ "<!-- /details page -->" | safeHTML }} - -<!-- templates --> -{{ define "section-tree-nav" }} -{{ $showvisitedlinks := .showvisitedlinks }} -{{ $currentNode := .currentnode }} -{{with .sect}} -{{safeHTML .Params.head}} -{{ $fileUniqueID := "" }} -{{ with .File }}{{ $fileUniqueID = .UniqueID }}{{ end }} -{{ $currentNodeFileUniqueID := "" }} -{{ with $currentNode.File }}{{ $currentNodeFileUniqueID = .UniqueID }}{{ end }} -<li data-nav-id="{{.Permalink}}" title="{{.Title}}" class="sidelist - {{if eq $fileUniqueID $currentNodeFileUniqueID}}active{{end}}"> - <a href="{{.Permalink}}"> - {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}} - </a> - {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} - {{ if ne $numberOfPages 0 }} - <ul> - {{ range .Pages.ByWeight }} - {{ if and .Params.hidden (not $.showhidden) }} - {{else}} - {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }} - {{end}} - {{end}} - </ul> - {{ end }} -</li> -{{ end }} +{{ "<!-- details page -->" | safeHTML }}
+<section class="single section-sm pb-0">
+ <div class="container">
+ <div class="row">
+ <div class="col-lg-3">
+ <div class="sidebar">
+ <a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}" aria-label="back"></a>
+ <ul class="list-styled">
+ {{ $currentNode := . }}
+ {{range .Site.Home.Sections.ByWeight}}
+ {{ if eq .FirstSection $currentNode.FirstSection }}
+ {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
+ {{ end }}
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+ <div class="col-lg-9">
+ <div class="p-lg-5 p-4 bg-white">
+ <h2 class="mb-5">{{ .Title }}</h2>
+ {{ if .Content }}
+ <div class="content">{{.Content}}</div>
+ {{ else }}
+ <div class="bg-light p-4">
+ <ul class="page-list">
+ {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }}
+ </ul>
+ </div>
+ {{ end }}
+ <p class="post-meta border-bottom pb-3 mb-0 mt-3">Updated on {{ .Lastmod.Format "02 Jan 2006" }}</p>
+ <nav class="pagination mt-3">
+ <!-- Next prev page -->
+ {{ $currentNode := . }}
+ {{ template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode }}
+ {{ define "menu-nextprev" }}
+ {{$currentNode := .currentnode }}
+ {{ if ne .menu.Params.hidden true}}
+ {{if hasPrefix $currentNode.Permalink .menu.Permalink }}
+ {{ $currentNode.Scratch.Set "NextPageOK" "OK" }}
+ {{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }}
+ {{else}}
+ {{if eq ($currentNode.Scratch.Get "NextPageOK") "OK"}}
+ {{ $currentNode.Scratch.Set "NextPageOK" nil }}
+ {{ $currentNode.Scratch.Set "nextPage" .menu }}
+ {{end}}
+ {{end}}
+ {{ $currentNode.Scratch.Set "prevPageTmp" .menu }}
+
+ {{ $currentNode.Scratch.Set "pages" .menu.Pages }}
+ {{ if .menu.IsHome}}
+ {{ $currentNode.Scratch.Set "pages" .menu.Sections }}
+ {{ else if .menu.Sections}}
+ {{ $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) }}
+ {{end}}
+ {{ $pages := ($currentNode.Scratch.Get "pages") }}
+
+ {{ range $pages.ByWeight }}
+ {{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
+ {{end}}
+ {{ end }}
+ {{ end }}
+
+ {{with ($.Scratch.Get "prevPage")}}
+ <a class="nav nav-prev" href="{{.Permalink }}" aria-label="Previous page" ><i class="ti-arrow-left mr-2"></i> <span class="d-none d-md-block">{{.Title}}</span></a>
+ {{end}}
+ {{with ($.Scratch.Get "nextPage")}}
+ <a class="nav nav-next" href="{{.Permalink }}" aria-label="Previous page" > <span class="d-none d-md-block">{{.Title}}</span><i class="ti-arrow-right ml-2"></i></a>
+ {{end}}
+ </nav>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+{{ "<!-- /details page -->" | safeHTML }}
+
+<!-- templates -->
+{{ define "section-tree-nav" }}
+{{ $showvisitedlinks := .showvisitedlinks }}
+{{ $currentNode := .currentnode }}
+{{with .sect}}
+{{safeHTML .Params.head}}
+{{ $fileUniqueID := "" }}
+{{ with .File }}{{ $fileUniqueID = .UniqueID }}{{ end }}
+{{ $currentNodeFileUniqueID := "" }}
+{{ with $currentNode.File }}{{ $currentNodeFileUniqueID = .UniqueID }}{{ end }}
+<li data-nav-id="{{.Permalink}}" title="{{.Title}}" class="sidelist
+ {{if eq $fileUniqueID $currentNodeFileUniqueID}}active{{end}}">
+ <a href="{{.Permalink}}">
+ {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
+ </a>
+ {{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
+ {{ if ne $numberOfPages 0 }}
+ <ul>
+ {{ range .Pages.ByWeight }}
+ {{ if and .Params.hidden (not $.showhidden) }}
+ {{else}}
+ {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }}
+ {{end}}
+ {{end}}
+ </ul>
+ {{ end }}
+</li>
+{{ end }}
{{ end }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5f3d3ed..75f7e01 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,22 +1,22 @@ -{{ "<!-- footer -->" | safeHTML }} -<footer class="section pb-4"> - <div class="container"> - <div class="row align-items-center"> - <div class="col-md-8 text-md-left text-center"> - <p class="mb-md-0 mb-4">{{ .Site.Params.copyright | markdownify }}</p> - </div> - <div class="col-md-4 text-md-right text-center"> - <ul class="list-inline"> - {{ range .Site.Params.social }} - <li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .link | safeURL }}" aria-label="{{ .name }}"><i class="{{ .icon }}"></i></a></li> - {{ end }} - </ul> - </div> - </div> - </div> -</footer> -{{ "<!-- /footer -->" | safeHTML }} - -{{ "<!-- Main Script -->" | safeHTML }} -{{ $script := resources.Get "js/script.js" | minify}} +{{ "<!-- footer -->" | safeHTML }}
+<footer class="section pb-4">
+ <div class="container">
+ <div class="row align-items-center">
+ <div class="col-md-8 text-md-left text-center">
+ <p class="mb-md-0 mb-4">{{ .Site.Params.copyright | markdownify }}</p>
+ </div>
+ <div class="col-md-4 text-md-right text-center">
+ <ul class="list-inline">
+ {{ range .Site.Params.social }}
+ <li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .link | safeURL }}" aria-label="{{ .name }}"><i class="{{ .icon }}"></i></a></li>
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+ </div>
+</footer>
+{{ "<!-- /footer -->" | safeHTML }}
+
+{{ "<!-- 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 index e3693d7..1a17d83 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,89 +1,89 @@ -<head> - <meta charset="utf-8"> - <title>{{ .Title }}</title> - <meta name="viewport" content="width=device-width, initial-scale=1"/> - {{ hugo.Generator }} - <meta name="description" content="{{ .Title }} - {{ .Site.Title }} "> - - {{ "<!-- ** CSS Plugins Needed for the Project ** -->" | safeHTML }} - - {{ "<!-- Bootstrap -->" | safeHTML }} - <link rel="stylesheet" href="{{ `plugins/bootstrap/bootstrap.min.css` | absURL }}"> - - {{ "<!-- themefy-icon -->" | safeHTML }} - <link rel="stylesheet" href="{{ `plugins/themify-icons/themify-icons.css` | absURL }}"> - - {{ "<!--Favicon-->" | safeHTML }} - <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon"> - - {{ "<!-- fonts -->" | safeHTML }} - <link href="https://fonts.googleapis.com/css?family={{replace .Site.Params.font_family ' ' '+' | title}}:300,400,700&display=swap" rel="stylesheet"> - - <style> - :root{ - --primary-color:{{ .Site.Params.primary_color }}; - --body-color:{{ .Site.Params.body_color }}; - --text-color:{{ .Site.Params.text_color }}; - --text-color-dark:{{ .Site.Params.text_color_dark }}; - --white-color:{{ .Site.Params.white_color }}; - --light-color:{{ .Site.Params.light_color }}; - --font-family:{{ replace .Site.Params.font_family ' ' '+' | title }}; - } - </style> - -{{ "<!-- Main Stylesheet -->" | safeHTML }} -{{ $css := resources.Get "css/style.css" | minify }} -<link href="{{ $css.Permalink }}" rel="stylesheet" media="screen"/> - -{{ "<!-- ** JS Plugins Needed for the Project ** -->" | safeHTML }} - -{{ "<!-- jquiry -->" | safeHTML }} -<script src="{{ `plugins/jquery/jquery-1.12.4.js` | absURL }}"></script> - -{{ "<!-- jquary ui -->" | safeHTML }} -<script src="{{ `plugins/jquery/jquery-ui.js`| absURL }}"></script> - -{{ "<!-- Bootstrap JS -->" | safeHTML }} -<script src="{{ `plugins/bootstrap/bootstrap.min.js` | absURL }}"></script> - -{{ "<!-- match-height JS -->" | safeHTML }} -<script src="{{ `plugins/match-height/jquery.matchHeight-min.js` | absURL }}"></script> - -{{ template "_internal/google_analytics.html" . }} - -{{ if templates.Exists ( printf "partials/overrides/header.html" ) }} - {{ partial "partials/overrides/header.html" . }} -{{ else }} - {{ "<!-- create /layouts/partials/overrides/header.html in your own theme or root directory to add your custom content here -->" | safeHTML }} -{{ end }} - - -<!-- Open Graph image and Twitter Card metadata --> -{{ $image_path := .Params.image | default site.Params.image }} -{{ $image_path_local := printf "static/%s" $image_path }} -{{ $image_ext := trim (path.Ext $image_path | lower) "." }} -{{ if fileExists $image_path_local }} - <meta property="og:image" content="{{ $image_path | absURL }}" /> - {{ if ne $image_ext "svg" }} - {{ with (imageConfig $image_path_local) }} - {{ if (and (gt .Width 144) (gt .Height 144)) }} - <meta name="twitter:image" content="{{ $image_path | absURL }}"/> - <meta name="twitter:card" content="summary{{ if (and (gt .Width 300) (gt .Height 157) (not (eq .Width .Height))) }}_large_image{{ end }}"> - {{ end }} - <meta property="og:image:width" content="{{ .Width }}"> - <meta property="og:image:height" content="{{ .Height }}"> - {{ end }} - {{ end }} - <meta property="og:image:type" content="image/{{ if eq $image_ext `svg` }}svg+xml{{ else }}{{ replaceRE `^jpg$` `jpeg` $image_ext }}{{ end }}"> -{{ end }} -<meta name="twitter:title" content="{{ .Title }}"/> -<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"/> -{{ with site.Social.twitter }}<meta name="twitter:site" content="@{{ . }}"/>{{ end }} -{{ range site.Authors }} - {{ with .twitter }}<meta name="twitter:creator" content="@{{ . }}"/>{{ end }} -{{ end }} - -{{ template "_internal/opengraph.html" . }} -{{ template "_internal/twitter_cards.html" . }} - -</head> +<head>
+ <meta charset="utf-8">
+ <title>{{ .Title }}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+ {{ hugo.Generator }}
+ <meta name="description" content="{{ .Title }} - {{ .Site.Title }} ">
+
+ {{ "<!-- ** CSS Plugins Needed for the Project ** -->" | safeHTML }}
+
+ {{ "<!-- Bootstrap -->" | safeHTML }}
+ <link rel="stylesheet" href="{{ `plugins/bootstrap/bootstrap.min.css` | absURL }}">
+
+ {{ "<!-- themefy-icon -->" | safeHTML }}
+ <link rel="stylesheet" href="{{ `plugins/themify-icons/themify-icons.css` | absURL }}">
+
+ {{ "<!--Favicon-->" | safeHTML }}
+ <link rel="icon" href="{{ `images/favicon.png` | absURL }}" type="image/x-icon">
+
+ {{ "<!-- fonts -->" | safeHTML }}
+ <link href="https://fonts.googleapis.com/css?family={{replace .Site.Params.font_family ' ' '+' | title}}:300,400,700&display=swap" rel="stylesheet">
+
+ <style>
+ :root{
+ --primary-color:{{ .Site.Params.primary_color }};
+ --body-color:{{ .Site.Params.body_color }};
+ --text-color:{{ .Site.Params.text_color }};
+ --text-color-dark:{{ .Site.Params.text_color_dark }};
+ --white-color:{{ .Site.Params.white_color }};
+ --light-color:{{ .Site.Params.light_color }};
+ --font-family:{{ replace .Site.Params.font_family ' ' '+' | title }};
+ }
+ </style>
+
+{{ "<!-- Main Stylesheet -->" | safeHTML }}
+{{ $css := resources.Get "css/style.css" | minify }}
+<link href="{{ $css.Permalink }}" rel="stylesheet" media="screen"/>
+
+{{ "<!-- ** JS Plugins Needed for the Project ** -->" | safeHTML }}
+
+{{ "<!-- jquiry -->" | safeHTML }}
+<script src="{{ `plugins/jquery/jquery-1.12.4.js` | absURL }}"></script>
+
+{{ "<!-- jquary ui -->" | safeHTML }}
+<script src="{{ `plugins/jquery/jquery-ui.js`| absURL }}"></script>
+
+{{ "<!-- Bootstrap JS -->" | safeHTML }}
+<script src="{{ `plugins/bootstrap/bootstrap.min.js` | absURL }}"></script>
+
+{{ "<!-- match-height JS -->" | safeHTML }}
+<script src="{{ `plugins/match-height/jquery.matchHeight-min.js` | absURL }}"></script>
+
+{{ template "_internal/google_analytics.html" . }}
+
+{{ if templates.Exists ( printf "partials/overrides/header.html" ) }}
+ {{ partial "partials/overrides/header.html" . }}
+{{ else }}
+ {{ "<!-- create /layouts/partials/overrides/header.html in your own theme or root directory to add your custom content here -->" | safeHTML }}
+{{ end }}
+
+
+<!-- Open Graph image and Twitter Card metadata -->
+{{ $image_path := .Params.image | default site.Params.image }}
+{{ $image_path_local := printf "static/%s" $image_path }}
+{{ $image_ext := trim (path.Ext $image_path | lower) "." }}
+{{ if fileExists $image_path_local }}
+ <meta property="og:image" content="{{ $image_path | absURL }}" />
+ {{ if ne $image_ext "svg" }}
+ {{ with (imageConfig $image_path_local) }}
+ {{ if (and (gt .Width 144) (gt .Height 144)) }}
+ <meta name="twitter:image" content="{{ $image_path | absURL }}"/>
+ <meta name="twitter:card" content="summary{{ if (and (gt .Width 300) (gt .Height 157) (not (eq .Width .Height))) }}_large_image{{ end }}">
+ {{ end }}
+ <meta property="og:image:width" content="{{ .Width }}">
+ <meta property="og:image:height" content="{{ .Height }}">
+ {{ end }}
+ {{ end }}
+ <meta property="og:image:type" content="image/{{ if eq $image_ext `svg` }}svg+xml{{ else }}{{ replaceRE `^jpg$` `jpeg` $image_ext }}{{ end }}">
+{{ end }}
+<meta name="twitter:title" content="{{ .Title }}"/>
+<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"/>
+{{ with site.Social.twitter }}<meta name="twitter:site" content="@{{ . }}"/>{{ end }}
+{{ range site.Authors }}
+ {{ with .twitter }}<meta name="twitter:creator" content="@{{ . }}"/>{{ end }}
+{{ end }}
+
+{{ template "_internal/opengraph.html" . }}
+{{ template "_internal/twitter_cards.html" . }}
+
+</head>
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 01f03ee..d28e1b4 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,68 +1,68 @@ -<nav class="navbar navbar-expand-md {{ if .IsHome }}navbar-dark{{ else }}navbar-light{{ end }}"> - <div class="container"> - <a class="navbar-brand px-2" href="{{ site.BaseURL | relLangURL }}"> - {{ $logo:= site.Params.logo }} - {{ $logoWhite:= site.Params.logo_white }} - {{ if (or $logo $logoWhite) }} - {{ if .IsHome }} - <img class="img-fluid" src="{{if $logoWhite }}{{ $logoWhite | absURL }} {{ else }} {{ $logo | absURL }}{{ end }}" - alt="{{ site.Title }}"> - {{ else }} - <img class="img-fluid" src="{{ $logo | absURL }}" alt="{{ site.Title }}"> - {{ end }} - {{ else }} - {{ site.Title }} - {{ end }} - </a> - <button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation" - aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"> - <span class="navbar-toggler-icon"></span> - </button> - - <div class="collapse navbar-collapse text-center" id="navigation"> - <ul class="navbar-nav ml-auto"> - {{ range site.Menus.main }} - {{ if .HasChildren }} - <li class="nav-item dropdown"> - <a class="nav-link dropdown-toggle text-dark" href="#" role="button" data-toggle="dropdown" - aria-haspopup="true" aria-expanded="false"> - {{ .Name }} - </a> - <div class="dropdown-menu"> - {{ range .Children }} - <a class="dropdown-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a> - {{ end }} - </div> - </li> - {{ else }} - <li class="nav-item"> - <a class="nav-link text-dark" href="{{ .URL | absLangURL }}">{{ .Name }}</a> - </li> - {{ end }} - {{ end }} - </ul> - <!-- Language List --> - {{- if site.IsMultiLingual }} - <select class="lang-list {{ if not .IsHome }}dark{{ end }}" 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> - </div> -</nav> +<nav class="navbar navbar-expand-md {{ if .IsHome }}navbar-dark{{ else }}navbar-light{{ end }}">
+ <div class="container">
+ <a class="navbar-brand px-2" href="{{ site.BaseURL | relLangURL }}">
+ {{ $logo:= site.Params.logo }}
+ {{ $logoWhite:= site.Params.logo_white }}
+ {{ if (or $logo $logoWhite) }}
+ {{ if .IsHome }}
+ <img class="img-fluid" src="{{if $logoWhite }}{{ $logoWhite | absURL }} {{ else }} {{ $logo | absURL }}{{ end }}"
+ alt="{{ site.Title }}">
+ {{ else }}
+ <img class="img-fluid" src="{{ $logo | absURL }}" alt="{{ site.Title }}">
+ {{ end }}
+ {{ else }}
+ {{ site.Title }}
+ {{ end }}
+ </a>
+ <button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navigation"
+ aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+
+ <div class="collapse navbar-collapse text-center" id="navigation">
+ <ul class="navbar-nav ml-auto">
+ {{ range site.Menus.main }}
+ {{ if .HasChildren }}
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle text-dark" href="#" role="button" data-toggle="dropdown"
+ aria-haspopup="true" aria-expanded="false">
+ {{ .Name }}
+ </a>
+ <div class="dropdown-menu">
+ {{ range .Children }}
+ <a class="dropdown-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
+ {{ end }}
+ </div>
+ </li>
+ {{ else }}
+ <li class="nav-item">
+ <a class="nav-link text-dark" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ <!-- Language List -->
+ {{- if site.IsMultiLingual }}
+ <select class="lang-list {{ if not .IsHome }}dark{{ end }}" 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>
+ </div>
+</nav>
diff --git a/layouts/shortcodes/faq.html b/layouts/shortcodes/faq.html index 204863d..8f493c7 100644 --- a/layouts/shortcodes/faq.html +++ b/layouts/shortcodes/faq.html @@ -1,12 +1,12 @@ -{{ $_hugo_config := `{ "version": 1 }` }} - -<div class="card mb-4 rounded-0 shadow border-0"> - <div class="card-header rounded-0 bg-white border p-0 border-0"> - <a class="card-link h4 d-flex tex-dark mb-0 py-3 px-4 justify-content-between" data-toggle="collapse" href="#{{ .Get 0 | sha1 }}"> - <span>{{ .Get 0 | markdownify }}</span> <i class="ti-plus text-primary text-right"></i> - </a> - </div> - <div id="{{ .Get 0 | sha1 }}" class="collapse" data-parent="#accordion"> - <div class="card-body font-secondary text-color">{{ .Inner | markdownify }}</div> - </div> +{{ $_hugo_config := `{ "version": 1 }` }}
+
+<div class="card mb-4 rounded-0 shadow border-0">
+ <div class="card-header rounded-0 bg-white border p-0 border-0">
+ <a class="card-link h4 d-flex tex-dark mb-0 py-3 px-4 justify-content-between" data-toggle="collapse" href="#{{ .Get 0 | sha1 }}">
+ <span>{{ .Get 0 | markdownify }}</span> <i class="ti-plus text-primary text-right"></i>
+ </a>
+ </div>
+ <div id="{{ .Get 0 | sha1 }}" class="collapse" data-parent="#accordion">
+ <div class="card-body font-secondary text-color">{{ .Inner | markdownify }}</div>
+ </div>
</div>
\ No newline at end of file diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html index 0b03907..7282b74 100644 --- a/layouts/shortcodes/notice.html +++ b/layouts/shortcodes/notice.html @@ -1,3 +1,3 @@ -{{ $_hugo_config := `{ "version": 1 }` }} - +{{ $_hugo_config := `{ "version": 1 }` }}
+
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}><p>{{ .Inner | markdownify }}</p></div>
\ No newline at end of file diff --git a/layouts/shortcodes/tab.html b/layouts/shortcodes/tab.html index 832a793..10d8af6 100644 --- a/layouts/shortcodes/tab.html +++ b/layouts/shortcodes/tab.html @@ -1,5 +1,5 @@ -{{ $_hugo_config := `{ "version": 1 }` }} - -<div class="tab-pane" title="{{ .Get 0 }}"> - {{ .Inner }} +{{ $_hugo_config := `{ "version": 1 }` }}
+
+<div class="tab-pane" title="{{ .Get 0 }}">
+ {{ .Inner }}
</div>
\ No newline at end of file diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html index 76797fb..81b3d76 100644 --- a/layouts/shortcodes/tabs.html +++ b/layouts/shortcodes/tabs.html @@ -1,6 +1,6 @@ -{{ $_hugo_config := `{ "version": 1 }` }} - -<div class="code-tabs"> - <ul class="nav nav-tabs"></ul> - <div class="tab-content">{{ .Inner }}</div> +{{ $_hugo_config := `{ "version": 1 }` }}
+
+<div class="code-tabs">
+ <ul class="nav nav-tabs"></ul>
+ <div class="tab-content">{{ .Inner }}</div>
</div>
\ No newline at end of file |