Editing code with my formatting
This commit is contained in:
parent
caae7b85b7
commit
aa2d0606ce
9 changed files with 503 additions and 283 deletions
|
@ -1,72 +1,75 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.Lang }}">
|
||||
<head>
|
||||
<title>{{- .Site.Title -}}</title>
|
||||
{{ $siteDescription := .Site.Params.description }}
|
||||
{{ if (index .Site.Data .Site.Language.Lang).site }}
|
||||
{{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
|
||||
{{ if $siteConfig.description }}
|
||||
{{ $siteDescription = $siteConfig.description }}
|
||||
{{ end }}
|
||||
|
||||
<head>
|
||||
<title>{{- .Site.Title -}}</title>
|
||||
{{ $siteDescription := .Site.Params.description }}
|
||||
{{ if (index .Site.Data .Site.Language.Lang).site }}
|
||||
{{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
|
||||
{{ if $siteConfig.description }}
|
||||
{{ $siteDescription = $siteConfig.description }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<meta name="description" content="{{ $siteDescription }}" />
|
||||
|
||||
<!-- import common headers -->
|
||||
{{- partial "header.html" . -}}
|
||||
{{- partial "opengraph.html" . -}}
|
||||
|
||||
<!--================= add analytics if enabled =========================-->
|
||||
{{- partial "analytics.html" . -}}
|
||||
{{ with resources.Get "scripts/core/theme-scheme.js" | fingerprint }}
|
||||
<script integrity="{{.Data.Integrity}}">
|
||||
{ { .Content | safeJS } }
|
||||
</script>
|
||||
{{ end }}
|
||||
</head>
|
||||
|
||||
<body data-bs-spy="scroll" data-bs-target="#top-navbar" data-bs-offset="100">
|
||||
|
||||
<!--- NAVBAR ------------------------->
|
||||
{{- partial "navigators/navbar.html" . -}}
|
||||
|
||||
<!--- ADD HOME SECTION ---------------->
|
||||
<!-- {{- partial "sections/home.html" . -}} -->
|
||||
|
||||
<!--- ADD OPTIONAL SECTIONS ----------->
|
||||
{{ $sections:= site.Data.sections }}
|
||||
{{ if (index site.Data site.Language.Lang).sections }}
|
||||
{{ $sections = (index site.Data site.Language.Lang).sections }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $sections }}
|
||||
{{ $background:= "bg-primary"}}
|
||||
{{ range sort $sections "section.weight" }}
|
||||
{{ if .section.enable }}
|
||||
<div class="container-fluid section-holder d-flex {{ $background }}">
|
||||
{{ if .section.template }}
|
||||
{{- partial .section.template . -}}
|
||||
{{ else }}
|
||||
{{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
|
||||
{{ end }}
|
||||
<meta name="description" content="{{ $siteDescription }}" />
|
||||
|
||||
<!-- import common headers -->
|
||||
{{- partial "header.html" . -}}
|
||||
{{- partial "opengraph.html" . -}}
|
||||
|
||||
<!--================= add analytics if enabled =========================-->
|
||||
{{- partial "analytics.html" . -}}
|
||||
{{ with resources.Get "scripts/core/theme-scheme.js" | fingerprint }}
|
||||
<script integrity="{{.Data.Integrity}}">
|
||||
{{ .Content | safeJS }}
|
||||
</script>
|
||||
{{ end }}
|
||||
</head>
|
||||
<body data-bs-spy="scroll" data-bs-target="#top-navbar" data-bs-offset="100">
|
||||
</div>
|
||||
<!--- alter background color for next section --->
|
||||
{{ if eq $background "bg-primary" }}
|
||||
{{ $background = "bg-secondary" }}
|
||||
{{ else }}
|
||||
{{ $background = "bg-primary" }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<!--- NAVBAR ------------------------->
|
||||
{{- partial "navigators/navbar.html" . -}}
|
||||
<!--- ADD FOOTER ----------------------->
|
||||
{{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
|
||||
{{- partial $footerTemplate . -}}
|
||||
|
||||
<!--- ADD HOME SECTION ---------------->
|
||||
{{- partial "sections/home.html" . -}}
|
||||
<!--- ADD COMMON SCRIPTS --------------->
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
<!--- ADD OPTIONAL SECTIONS ----------->
|
||||
{{ $sections:= site.Data.sections }}
|
||||
{{ if (index site.Data site.Language.Lang).sections }}
|
||||
{{ $sections = (index site.Data site.Language.Lang).sections }}
|
||||
{{ end }}
|
||||
<!------ ADD SUPPORT LINKS -------->
|
||||
{{- partial "misc/support.html" . -}}
|
||||
|
||||
{{ if $sections }}
|
||||
{{ $background:= "bg-primary"}}
|
||||
{{ range sort $sections "section.weight" }}
|
||||
{{ if .section.enable }}
|
||||
<div class="container-fluid section-holder d-flex {{ $background }}">
|
||||
{{ if .section.template }}
|
||||
{{- partial .section.template . -}}
|
||||
{{ else }}
|
||||
{{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
<!--- alter background color for next section --->
|
||||
{{ if eq $background "bg-primary" }}
|
||||
{{ $background = "bg-secondary" }}
|
||||
{{ else }}
|
||||
{{ $background = "bg-primary" }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</body>
|
||||
|
||||
<!--- ADD FOOTER ----------------------->
|
||||
{{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
|
||||
{{- partial $footerTemplate . -}}
|
||||
|
||||
<!--- ADD COMMON SCRIPTS --------------->
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
<!------ ADD SUPPORT LINKS -------->
|
||||
{{- partial "misc/support.html" . -}}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue