From b054bfa94db53533d5a856624a1b74346a3ea421 Mon Sep 17 00:00:00 2001 From: tfsumon Date: Sat, 9 Mar 2024 13:24:10 +0600 Subject: [PATCH] style: formatted files using prettier --- .../bill/{_index.en.md => index.en.md} | 0 .../bill/{_index.fr.md => index.fr.md} | 0 .../manage/{_index.en.md => index.en.md} | 0 .../manage/{_index.fr.md => index.fr.md} | 0 .../ownership/{_index.en.md => index.en.md} | 0 .../ownership/{_index.fr.md => index.fr.md} | 0 .../payment/{_index.en.md => index.en.md} | 0 .../payment/{_index.fr.md => index.fr.md} | 0 .../profile/{_index.en.md => index.en.md} | 0 .../profile/{_index.fr.md => index.fr.md} | 0 .../linux/{_index.en.md => index.en.md} | 0 .../linux/{_index.fr.md => index.fr.md} | 0 .../mac/{_index.en.md => index.en.md} | 0 .../mac/{_index.fr.md => index.fr.md} | 0 .../routing/{_index.en.md => index.en.md} | 0 .../routing/{_index.fr.md => index.fr.md} | 0 .../ubuntu/{_index.en.md => index.en.md} | 0 .../ubuntu/{_index.fr.md => index.fr.md} | 0 .../windows/{_index.en.md => index.en.md} | 0 .../windows/{_index.fr.md => index.fr.md} | 0 .../{_index.en.md => index.en.md} | 0 .../{_index.fr.md => index.fr.md} | 0 .../{_index.en.md => index.en.md} | 0 .../{_index.fr.md => index.fr.md} | 0 .../elements/{_index.en.md => index.en.md} | 0 .../elements/{_index.fr.md => index.fr.md} | 0 .../install/{_index.en.md => index.en.md} | 0 .../install/{_index.fr.md => index.fr.md} | 0 .../requirments/{_index.en.md => index.en.md} | 0 .../requirments/{_index.fr.md => index.fr.md} | 0 exampleSite/content/pages/_index.en.md | 9 + exampleSite/content/pages/_index.fr.md | 9 + .../_index.en.md => pages/contact.en.md} | 2 +- .../_index.fr.md => pages/contact.fr.md} | 2 +- .../{faq/index.en.md => pages/faq.en.md} | 3 +- .../{faq/index.fr.md => pages/faq.fr.md} | 3 +- layouts/404.html | 0 layouts/_default/baseof.html | 94 +++---- layouts/_default/contact.html | 87 +++---- layouts/_default/faq.html | 36 ++- layouts/_default/list.html | 8 +- layouts/_default/single.html | 8 +- layouts/index.html | 126 +++++----- layouts/partials/default.html | 208 +++++++++++----- layouts/partials/essentials/footer.html | 25 +- layouts/partials/essentials/head.html | 115 +++++---- layouts/partials/essentials/header.html | 230 +++++++++++------- layouts/partials/essentials/script.html | 111 +++++---- layouts/partials/essentials/style.html | 12 +- 49 files changed, 616 insertions(+), 472 deletions(-) rename exampleSite/content/billing-pricing/bill/{_index.en.md => index.en.md} (100%) rename exampleSite/content/billing-pricing/bill/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/billing-pricing/manage/{_index.en.md => index.en.md} (100%) rename exampleSite/content/billing-pricing/manage/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/billing-pricing/ownership/{_index.en.md => index.en.md} (100%) rename exampleSite/content/billing-pricing/ownership/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/billing-pricing/payment/{_index.en.md => index.en.md} (100%) rename exampleSite/content/billing-pricing/payment/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/billing-pricing/profile/{_index.en.md => index.en.md} (100%) rename exampleSite/content/billing-pricing/profile/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/features/linux/{_index.en.md => index.en.md} (100%) rename exampleSite/content/features/linux/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/features/mac/{_index.en.md => index.en.md} (100%) rename exampleSite/content/features/mac/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/features/routing/{_index.en.md => index.en.md} (100%) rename exampleSite/content/features/routing/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/features/ubuntu/{_index.en.md => index.en.md} (100%) rename exampleSite/content/features/ubuntu/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/features/windows/{_index.en.md => index.en.md} (100%) rename exampleSite/content/features/windows/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/installation/configuration/{_index.en.md => index.en.md} (100%) rename exampleSite/content/installation/configuration/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/installation/customization/{_index.en.md => index.en.md} (100%) rename exampleSite/content/installation/customization/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/installation/elements/{_index.en.md => index.en.md} (100%) rename exampleSite/content/installation/elements/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/installation/install/{_index.en.md => index.en.md} (100%) rename exampleSite/content/installation/install/{_index.fr.md => index.fr.md} (100%) rename exampleSite/content/installation/requirments/{_index.en.md => index.en.md} (100%) rename exampleSite/content/installation/requirments/{_index.fr.md => index.fr.md} (100%) create mode 100644 exampleSite/content/pages/_index.en.md create mode 100644 exampleSite/content/pages/_index.fr.md rename exampleSite/content/{contact/_index.en.md => pages/contact.en.md} (84%) rename exampleSite/content/{contact/_index.fr.md => pages/contact.fr.md} (86%) rename exampleSite/content/{faq/index.en.md => pages/faq.en.md} (99%) rename exampleSite/content/{faq/index.fr.md => pages/faq.fr.md} (99%) delete mode 100644 layouts/404.html diff --git a/exampleSite/content/billing-pricing/bill/_index.en.md b/exampleSite/content/billing-pricing/bill/index.en.md similarity index 100% rename from exampleSite/content/billing-pricing/bill/_index.en.md rename to exampleSite/content/billing-pricing/bill/index.en.md diff --git a/exampleSite/content/billing-pricing/bill/_index.fr.md b/exampleSite/content/billing-pricing/bill/index.fr.md similarity index 100% rename from exampleSite/content/billing-pricing/bill/_index.fr.md rename to exampleSite/content/billing-pricing/bill/index.fr.md diff --git a/exampleSite/content/billing-pricing/manage/_index.en.md b/exampleSite/content/billing-pricing/manage/index.en.md similarity index 100% rename from exampleSite/content/billing-pricing/manage/_index.en.md rename to exampleSite/content/billing-pricing/manage/index.en.md diff --git a/exampleSite/content/billing-pricing/manage/_index.fr.md b/exampleSite/content/billing-pricing/manage/index.fr.md similarity index 100% rename from exampleSite/content/billing-pricing/manage/_index.fr.md rename to exampleSite/content/billing-pricing/manage/index.fr.md diff --git a/exampleSite/content/billing-pricing/ownership/_index.en.md b/exampleSite/content/billing-pricing/ownership/index.en.md similarity index 100% rename from exampleSite/content/billing-pricing/ownership/_index.en.md rename to exampleSite/content/billing-pricing/ownership/index.en.md diff --git a/exampleSite/content/billing-pricing/ownership/_index.fr.md b/exampleSite/content/billing-pricing/ownership/index.fr.md similarity index 100% rename from exampleSite/content/billing-pricing/ownership/_index.fr.md rename to exampleSite/content/billing-pricing/ownership/index.fr.md diff --git a/exampleSite/content/billing-pricing/payment/_index.en.md b/exampleSite/content/billing-pricing/payment/index.en.md similarity index 100% rename from exampleSite/content/billing-pricing/payment/_index.en.md rename to exampleSite/content/billing-pricing/payment/index.en.md diff --git a/exampleSite/content/billing-pricing/payment/_index.fr.md b/exampleSite/content/billing-pricing/payment/index.fr.md similarity index 100% rename from exampleSite/content/billing-pricing/payment/_index.fr.md rename to exampleSite/content/billing-pricing/payment/index.fr.md diff --git a/exampleSite/content/billing-pricing/profile/_index.en.md b/exampleSite/content/billing-pricing/profile/index.en.md similarity index 100% rename from exampleSite/content/billing-pricing/profile/_index.en.md rename to exampleSite/content/billing-pricing/profile/index.en.md diff --git a/exampleSite/content/billing-pricing/profile/_index.fr.md b/exampleSite/content/billing-pricing/profile/index.fr.md similarity index 100% rename from exampleSite/content/billing-pricing/profile/_index.fr.md rename to exampleSite/content/billing-pricing/profile/index.fr.md diff --git a/exampleSite/content/features/linux/_index.en.md b/exampleSite/content/features/linux/index.en.md similarity index 100% rename from exampleSite/content/features/linux/_index.en.md rename to exampleSite/content/features/linux/index.en.md diff --git a/exampleSite/content/features/linux/_index.fr.md b/exampleSite/content/features/linux/index.fr.md similarity index 100% rename from exampleSite/content/features/linux/_index.fr.md rename to exampleSite/content/features/linux/index.fr.md diff --git a/exampleSite/content/features/mac/_index.en.md b/exampleSite/content/features/mac/index.en.md similarity index 100% rename from exampleSite/content/features/mac/_index.en.md rename to exampleSite/content/features/mac/index.en.md diff --git a/exampleSite/content/features/mac/_index.fr.md b/exampleSite/content/features/mac/index.fr.md similarity index 100% rename from exampleSite/content/features/mac/_index.fr.md rename to exampleSite/content/features/mac/index.fr.md diff --git a/exampleSite/content/features/routing/_index.en.md b/exampleSite/content/features/routing/index.en.md similarity index 100% rename from exampleSite/content/features/routing/_index.en.md rename to exampleSite/content/features/routing/index.en.md diff --git a/exampleSite/content/features/routing/_index.fr.md b/exampleSite/content/features/routing/index.fr.md similarity index 100% rename from exampleSite/content/features/routing/_index.fr.md rename to exampleSite/content/features/routing/index.fr.md diff --git a/exampleSite/content/features/ubuntu/_index.en.md b/exampleSite/content/features/ubuntu/index.en.md similarity index 100% rename from exampleSite/content/features/ubuntu/_index.en.md rename to exampleSite/content/features/ubuntu/index.en.md diff --git a/exampleSite/content/features/ubuntu/_index.fr.md b/exampleSite/content/features/ubuntu/index.fr.md similarity index 100% rename from exampleSite/content/features/ubuntu/_index.fr.md rename to exampleSite/content/features/ubuntu/index.fr.md diff --git a/exampleSite/content/features/windows/_index.en.md b/exampleSite/content/features/windows/index.en.md similarity index 100% rename from exampleSite/content/features/windows/_index.en.md rename to exampleSite/content/features/windows/index.en.md diff --git a/exampleSite/content/features/windows/_index.fr.md b/exampleSite/content/features/windows/index.fr.md similarity index 100% rename from exampleSite/content/features/windows/_index.fr.md rename to exampleSite/content/features/windows/index.fr.md diff --git a/exampleSite/content/installation/configuration/_index.en.md b/exampleSite/content/installation/configuration/index.en.md similarity index 100% rename from exampleSite/content/installation/configuration/_index.en.md rename to exampleSite/content/installation/configuration/index.en.md diff --git a/exampleSite/content/installation/configuration/_index.fr.md b/exampleSite/content/installation/configuration/index.fr.md similarity index 100% rename from exampleSite/content/installation/configuration/_index.fr.md rename to exampleSite/content/installation/configuration/index.fr.md diff --git a/exampleSite/content/installation/customization/_index.en.md b/exampleSite/content/installation/customization/index.en.md similarity index 100% rename from exampleSite/content/installation/customization/_index.en.md rename to exampleSite/content/installation/customization/index.en.md diff --git a/exampleSite/content/installation/customization/_index.fr.md b/exampleSite/content/installation/customization/index.fr.md similarity index 100% rename from exampleSite/content/installation/customization/_index.fr.md rename to exampleSite/content/installation/customization/index.fr.md diff --git a/exampleSite/content/installation/elements/_index.en.md b/exampleSite/content/installation/elements/index.en.md similarity index 100% rename from exampleSite/content/installation/elements/_index.en.md rename to exampleSite/content/installation/elements/index.en.md diff --git a/exampleSite/content/installation/elements/_index.fr.md b/exampleSite/content/installation/elements/index.fr.md similarity index 100% rename from exampleSite/content/installation/elements/_index.fr.md rename to exampleSite/content/installation/elements/index.fr.md diff --git a/exampleSite/content/installation/install/_index.en.md b/exampleSite/content/installation/install/index.en.md similarity index 100% rename from exampleSite/content/installation/install/_index.en.md rename to exampleSite/content/installation/install/index.en.md diff --git a/exampleSite/content/installation/install/_index.fr.md b/exampleSite/content/installation/install/index.fr.md similarity index 100% rename from exampleSite/content/installation/install/_index.fr.md rename to exampleSite/content/installation/install/index.fr.md diff --git a/exampleSite/content/installation/requirments/_index.en.md b/exampleSite/content/installation/requirments/index.en.md similarity index 100% rename from exampleSite/content/installation/requirments/_index.en.md rename to exampleSite/content/installation/requirments/index.en.md diff --git a/exampleSite/content/installation/requirments/_index.fr.md b/exampleSite/content/installation/requirments/index.fr.md similarity index 100% rename from exampleSite/content/installation/requirments/_index.fr.md rename to exampleSite/content/installation/requirments/index.fr.md diff --git a/exampleSite/content/pages/_index.en.md b/exampleSite/content/pages/_index.en.md new file mode 100644 index 00000000..95c81991 --- /dev/null +++ b/exampleSite/content/pages/_index.en.md @@ -0,0 +1,9 @@ +--- +ignoreSearch: true + +# don't create a separete page +_build: + list: false + render: never + publishResources: false +--- diff --git a/exampleSite/content/pages/_index.fr.md b/exampleSite/content/pages/_index.fr.md new file mode 100644 index 00000000..95c81991 --- /dev/null +++ b/exampleSite/content/pages/_index.fr.md @@ -0,0 +1,9 @@ +--- +ignoreSearch: true + +# don't create a separete page +_build: + list: false + render: never + publishResources: false +--- diff --git a/exampleSite/content/contact/_index.en.md b/exampleSite/content/pages/contact.en.md similarity index 84% rename from exampleSite/content/contact/_index.en.md rename to exampleSite/content/pages/contact.en.md index 84ecc3f8..2c80a3da 100644 --- a/exampleSite/content/contact/_index.en.md +++ b/exampleSite/content/pages/contact.en.md @@ -1,7 +1,7 @@ --- title: "Got Any Questions" +layout: "contact" draft: false -ignoreSearch: true --- Submit the form and confirm your email address at [Formspree](https://formspree.io/). \ No newline at end of file diff --git a/exampleSite/content/contact/_index.fr.md b/exampleSite/content/pages/contact.fr.md similarity index 86% rename from exampleSite/content/contact/_index.fr.md rename to exampleSite/content/pages/contact.fr.md index 50e150cd..d054320f 100644 --- a/exampleSite/content/contact/_index.fr.md +++ b/exampleSite/content/pages/contact.fr.md @@ -1,7 +1,7 @@ --- title: "Vous avez des questions" +layout: "contact" draft: false -ignoreSearch: true --- Envoyez le formulaire et confirmez votre adresse e-mail à l'adresse [Formspree](https://formspree.io/). \ No newline at end of file diff --git a/exampleSite/content/faq/index.en.md b/exampleSite/content/pages/faq.en.md similarity index 99% rename from exampleSite/content/faq/index.en.md rename to exampleSite/content/pages/faq.en.md index 44012c07..25980ad3 100644 --- a/exampleSite/content/faq/index.en.md +++ b/exampleSite/content/pages/faq.en.md @@ -1,8 +1,7 @@ --- title: "Frequently Asked Questions" -draft: false layout: "faq" -ignoreSearch: true +draft: false --- {{< collapse "Will updates also be free?" >}} diff --git a/exampleSite/content/faq/index.fr.md b/exampleSite/content/pages/faq.fr.md similarity index 99% rename from exampleSite/content/faq/index.fr.md rename to exampleSite/content/pages/faq.fr.md index 44012c07..25980ad3 100644 --- a/exampleSite/content/faq/index.fr.md +++ b/exampleSite/content/pages/faq.fr.md @@ -1,8 +1,7 @@ --- title: "Frequently Asked Questions" -draft: false layout: "faq" -ignoreSearch: true +draft: false --- {{< collapse "Will updates also be free?" >}} diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index e69de29b..00000000 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fcf90442..3467ce73 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,47 +1,47 @@ - - - - - {{ partial "essentials/head.html" . }} - - - - {{ if hugo.IsProduction }} - {{ partialCached "essentials/style.html" . }} - {{ else }} - {{ partial "essentials/style.html" . }} - {{ end }} - - - - - {{ if hugo.IsProduction }} - {{ partialCached "preloader.html" . }} - {{ partialCached "gtm-noscript.html" . }} - {{ else }} - {{ partial "preloader.html" . }} - {{ end }} - - - - {{ partial "essentials/header.html" . }} - {{ partial "search-modal.html" (dict "Context" . ) }} - - -
- {{ block "main" . }}{{ end }} -
- - - {{ if hugo.IsProduction }} - {{ partialCached "essentials/footer.html" . }} - {{ partialCached "essentials/script.html" . }} - {{ else }} - {{ partial "essentials/footer.html" . }} - {{ partial "essentials/script.html" . }} - {{ end }} - - + + + + + {{ partial "essentials/head.html" . }} + + + + {{ if hugo.IsProduction }} + {{ partialCached "essentials/style.html" . }} + {{ else }} + {{ partial "essentials/style.html" . }} + {{ end }} + + + + + {{ if hugo.IsProduction }} + {{ partialCached "preloader.html" . }} + {{ partialCached "gtm-noscript.html" . }} + {{ else }} + {{ partial "preloader.html" . }} + {{ end }} + + + + {{ partial "essentials/header.html" . }} + {{ partial "search-modal.html" (dict "Context" . ) }} + + +
+ {{ block "main" . }}{{ end }} +
+ + + {{ if hugo.IsProduction }} + {{ partialCached "essentials/footer.html" . }} + {{ partialCached "essentials/script.html" . }} + {{ else }} + {{ partial "essentials/footer.html" . }} + {{ partial "essentials/script.html" . }} + {{ end }} + + diff --git a/layouts/_default/contact.html b/layouts/_default/contact.html index 33bb9381..747452cf 100644 --- a/layouts/_default/contact.html +++ b/layouts/_default/contact.html @@ -1,51 +1,44 @@ {{ define "main" }} - - -
-
-
-
-

{{ .Title }}

- {{ .Content }} -
- - - - - -
+ +
+
+
+
+

{{ .Title }}

+ {{ .Content }} +
+ + + + + +
+
-
-
- - + + {{ end }} diff --git a/layouts/_default/faq.html b/layouts/_default/faq.html index 8ac8ce4c..4df8085c 100644 --- a/layouts/_default/faq.html +++ b/layouts/_default/faq.html @@ -1,19 +1,17 @@ -{{ define "main" }} - - -
-
-
-
-

{{ .Title }}

- -
- {{.Content}} -
-
-
-
-
- - -{{ end }} \ No newline at end of file +{{ define "main" }} + +
+
+
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
+
+
+
+
+ +{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1d428061..4892edb1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,3 @@ -{{ define "main" }} - -{{ partial "default.html" . }} - -{{ end }} \ No newline at end of file +{{ define "main" }} + {{ partial "default.html" . }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1d428061..4892edb1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,3 @@ -{{ define "main" }} - -{{ partial "default.html" . }} - -{{ end }} \ No newline at end of file +{{ define "main" }} + {{ partial "default.html" . }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 0faebe59..6597907a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,61 +1,65 @@ -{{ define "main" }} - -{{ if .Content }} -
-
- {{ .Content }} -
-
-{{ end }} - - -
-
-
-
-

{{ i18n "topics_title" | markdownify }}

-
- - {{ range (where .Site.Pages "Type" "docs") }} - - {{ end }} -
-
-
- - -{{ if .Params.cta.enable }} -{{ with .Params.cta }} - -
-
-
-
-
-

{{ .title | markdownify }}

-

{{ .content | markdownify }}

- {{ if .button.enable }} - {{ with .button }} - {{ .label }} - {{ end }} - {{ end }} -
-
-
-
-
- -{{ end }} -{{ end }} - -{{ end }} \ No newline at end of file +{{ define "main" }} + {{ if .Content }} +
+
+ {{ .Content }} +
+
+ {{ end }} + + + +
+
+
+
+

{{ i18n "topics_title" | markdownify }}

+
+ + {{ range (where .Site.Pages "Type" "docs") }} + + {{ end }} +
+
+
+ + + {{ if .Params.cta.enable }} + {{ with .Params.cta }} + +
+
+
+
+
+

{{ .title | markdownify }}

+

{{ .content | markdownify }}

+ {{ if .button.enable }} + {{ with .button }} + + {{ .label }} + + {{ end }} + {{ end }} +
+
+
+
+
+ + {{ end }} + {{ end }} + +{{ end }} diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 47452f48..89d06af6 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -4,26 +4,45 @@
@@ -32,43 +51,81 @@

{{ .Title }}

{{ if .Content }} -
{{.Content}}
+
{{ .Content }}
{{ else }} -
-
    - {{ template "section-tree-nav" dict "sect" . "currentnode" - $currentNode }} -
-
+
+
    + {{ template "section-tree-nav" dict "sect" . "currentnode" + $currentNode + }} +
+
{{ end }}
@@ -78,24 +135,43 @@

{{ .Title }}

-{{ 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 }} -
  • - - {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML - .Params.Post}} - - {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} {{ if ne - $numberOfPages 0 }} -
      - {{ range .Pages.ByWeight }} {{ if and .Params.hidden (not $.showhidden) }} - {{else}} {{ template "section-tree-nav" dict "sect" . "currentnode" - $currentNode }} {{end}} {{end}} -
    +{{ 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 }} +
  • + + {{ safeHTML .Params.Pre }}{{ or .Params.menuTitle .LinkTitle .Title }}{{ safeHTML + .Params.Post + }} + + {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} + {{ if ne + $numberOfPages 0 + }} +
      + {{ range .Pages.ByWeight }} + {{ if and .Params.hidden (not $.showhidden) }} + {{ else }} + {{ template "section-tree-nav" dict "sect" . "currentnode" + $currentNode + }} + {{ end }} + {{ end }} +
    + {{ end }} +
  • {{ end }} - -{{ end }} {{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/essentials/footer.html b/layouts/partials/essentials/footer.html index 08cc1f7c..455d995c 100755 --- a/layouts/partials/essentials/footer.html +++ b/layouts/partials/essentials/footer.html @@ -6,23 +6,32 @@

    {{ site.Params.copyright | markdownify }} {{ if site.Params.theme_copyright }} - | Theme by - GetHugoThemes + | Theme by + + GetHugoThemes + {{ end }}

    - \ No newline at end of file + diff --git a/layouts/partials/essentials/head.html b/layouts/partials/essentials/head.html index 77eed780..e48b18e9 100755 --- a/layouts/partials/essentials/head.html +++ b/layouts/partials/essentials/head.html @@ -1,58 +1,57 @@ - -{{ .Title | default site.Title }} - - - - - - - - -{{ partialCached "favicon" . }} - - - -{{ partialCached "manifest" . }} - - - -{{ partialCached "site-verifications.html" . }} - - - -{{ partial "basic-seo.html" . }} - - - -{{ partialCached "custom-script.html" . }} - - - -{{ template "_internal/google_analytics.html" . }} - - - -{{ partialCached "gtm.html" . }} - - - -{{/* {{ partialCached "matomo-analytics.html" . }} */}} - - - -{{/* {{ partialCached "baidu-analytics.html" . }} */}} - - - -{{/* {{ partialCached "plausible-analytics.html" . }} */}} - - - -{{/* {{ partialCached "counter-analytics.html" . }} */}} - - - -{{ partialCached "crisp-chat.html" . }} - - -{{ partial "search-index.html" . }} \ No newline at end of file + +{{ .Title | default site.Title }} + + + + + + + + +{{ partialCached "favicon" . }} + + + +{{ partialCached "manifest" . }} + + + +{{ partialCached "site-verifications.html" . }} + + + +{{ partial "basic-seo.html" . }} + + + +{{ partialCached "custom-script.html" . }} + + + +{{ template "_internal/google_analytics.html" . }} + + + +{{ partialCached "gtm.html" . }} + + + +{{/* {{ partialCached "matomo-analytics.html" . }} */}} + + +{{/* {{ partialCached "baidu-analytics.html" . }} */}} + + +{{/* {{ partialCached "plausible-analytics.html" . }} */}} + + +{{/* {{ partialCached "counter-analytics.html" . }} */}} + + +{{ partialCached "crisp-chat.html" . }} + + + +{{ partial "search-index.html" . }} diff --git a/layouts/partials/essentials/header.html b/layouts/partials/essentials/header.html index 9d13772c..0324be3f 100755 --- a/layouts/partials/essentials/header.html +++ b/layouts/partials/essentials/header.html @@ -1,94 +1,136 @@ - -
    - - - {{ if .IsHome }} - {{ with .Params.banner }} - -
    -
    -
    -

    - {{ .title | markdownify }} -

    -

    - {{ .subtitle | markdownify }} -

    -
    - - - -
    -
    -
    -
    - - {{ partial "components/search-modal" . }} - {{ end }} - {{ end }} -
    - \ No newline at end of file + +
    + + + {{ if .IsHome }} + {{ with .Params.banner }} + +
    +
    +
    +

    + {{ .title | markdownify }} +

    +

    + {{ .subtitle | markdownify }} +

    +
    + + + +
    +
    +
    +
    + + {{ end }} + {{ end }} +
    + diff --git a/layouts/partials/essentials/script.html b/layouts/partials/essentials/script.html index d95f4b77..be887c39 100755 --- a/layouts/partials/essentials/script.html +++ b/layouts/partials/essentials/script.html @@ -1,54 +1,57 @@ - -{{ $bootstrap := resources.Get "js/bootstrap.js" }} -{{ $params := dict }} -{{ $sourceMap := cond hugo.IsProduction "" "inline" }} -{{ $opts := dict "sourceMap" $sourceMap "target" "es2018" "params" $params }} -{{ $bootstrap = $bootstrap | js.Build $opts }} -{{ if hugo.IsProduction }} - {{ $bootstrap = $bootstrap | fingerprint "sha512" }} -{{ end }} - - - -{{ $scripts := slice }} -{{ range site.Params.plugins.js }} - {{ if findRE "^http" .link }} - - {{ else }} - {{ $scripts = $scripts | append (resources.Get .link) }} - {{ end }} -{{ end }} - - -{{ $scripts = $scripts | append (resources.Get "js/script.js") }} -{{ $scripts = $scripts | resources.Concat "js/scripts.js" }} -{{ if hugo.IsProduction }} - {{ $scripts = $scripts | fingerprint "sha512" }} -{{ end }} - - - -{{ $pf:= site.Params.variables.font_primary }} -{{ $sf:= site.Params.variables.font_secondary }} - - - -{{ partialCached "pwa.html" . }} - - -{{ partialCached "cookie-consent.html" . }} - - -{{ partialCached "adsense-script.html" . }} + +{{ $bootstrap := resources.Get "js/bootstrap.js" }} +{{ $params := dict }} +{{ $sourceMap := cond hugo.IsProduction "" "inline" }} +{{ $opts := dict "sourceMap" $sourceMap "target" "es2018" "params" $params }} +{{ $bootstrap = $bootstrap | js.Build $opts }} +{{ if hugo.IsProduction }} + {{ $bootstrap = $bootstrap | fingerprint "sha512" }} +{{ end }} + + + +{{ $scripts := slice }} +{{ range site.Params.plugins.js }} + {{ if findRE "^http" .link }} + + {{ else }} + {{ $scripts = $scripts | append (resources.Get .link) }} + {{ end }} +{{ end }} + + + +{{ $scripts = $scripts | append (resources.Get "js/script.js") }} +{{ $scripts = $scripts | resources.Concat "js/scripts.js" }} +{{ if hugo.IsProduction }} + {{ $scripts = $scripts | fingerprint "sha512" }} +{{ end }} + + + +{{ $pf:= site.Params.variables.font_primary }} +{{ $sf:= site.Params.variables.font_secondary }} + + + +{{ partialCached "pwa.html" . }} + + + +{{ partialCached "cookie-consent.html" . }} + + + +{{ partialCached "adsense-script.html" . }} diff --git a/layouts/partials/essentials/style.html b/layouts/partials/essentials/style.html index a58358d5..efccd7bf 100755 --- a/layouts/partials/essentials/style.html +++ b/layouts/partials/essentials/style.html @@ -1,7 +1,10 @@ - + @@ -21,7 +24,12 @@ {{ $styles := slice }} {{ range site.Params.plugins.css }} {{ if findRE "^http" .link }} - + {{ else }} {{ $styles = $styles | append (resources.Get .link) }} {{ end }}