* Allow to disable the footer with params.footer.enable = false Default is to have the footer enabled (to keep backwards compatibility). The diff looks much worse than it is, I just added a variable and an if clause, but then had to indent the rest of the file. Make footerEnabled an explicit variable. This should improve readability. Use default parameter for even more readability. * Allow to enable/disable the "contact me" section in the footer. Just set `footer.contactMe.enable` in the config. Default is true, for backwards compatibility. * Make footer template more consistent. Enabling footers elements and the newsletter is now managed in the same place. * Allow to disable the footer navigation. Default is enabled. * Allow to disable credentials and copyright notice. Default: enabled * Footer: Reformat variable initialization for readability. * Allow providing template for footer Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: hossainemruz <hossainemruz@gmail.com>
81 lines
3.2 KiB
HTML
81 lines
3.2 KiB
HTML
<!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 }}
|
|
{{ end }}
|
|
<meta name="description" content="{{ $siteDescription }}" />
|
|
|
|
<!-- import common headers -->
|
|
{{- partial "header.html" . -}}
|
|
|
|
<!-- import index page specific headers -->
|
|
<link rel="stylesheet" href="{{ "/css/sections/home.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/about.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/skills.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/experiences.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/education.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/projects.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/recent-posts.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/achievements.css" | relURL }}"/>
|
|
<link rel="stylesheet" href="{{ "/css/sections/accomplishments.css" | relURL }}"/>
|
|
|
|
<!-- Add Google Analytics if enabled in configuration -->
|
|
{{ if site.GoogleAnalytics }}
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
{{ end }}
|
|
</head>
|
|
<body data-spy="scroll" data-target="#top-navbar" data-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-white"}}
|
|
{{ 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-white" }}
|
|
{{ $background = "bg-dimmed" }}
|
|
{{ else }}
|
|
{{ $background = "bg-white" }}
|
|
{{end}}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<!--- ADD FOOTER ----------------------->
|
|
{{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
|
|
{{- partial $footerTemplate . -}}
|
|
|
|
<!--- ADD COMMON SCRIPTS --------------->
|
|
{{ partial "scripts.html" . }}
|
|
|
|
<!--- ADD INDEX PAGE SPECIFIC SCRIPTS -->
|
|
<script src="{{ "/js/itype.min.js" | relURL }}"></script>
|
|
<script src="{{ "/js/github-button.js" | relURL }}"></script>
|
|
<script src="{{ "/js/home.js" | relURL }}"></script>
|
|
<script src="{{ "/js/jquery.filterizr.min.js" | relURL }}"></script>
|
|
</body>
|
|
</html>
|