Editing code with my formatting
This commit is contained in:
parent
caae7b85b7
commit
aa2d0606ce
9 changed files with 503 additions and 283 deletions
|
@ -1,9 +1,9 @@
|
||||||
let theme = localStorage.getItem('theme-scheme') || localStorage.getItem('darkmode:color-scheme') || 'light'
|
let theme = localStorage.getItem('theme-scheme') || localStorage.getItem('darkmode:color-scheme') || 'dark'
|
||||||
if (theme === 'system') {
|
if (theme === 'system') {
|
||||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
theme = 'dark'
|
theme = 'dark'
|
||||||
} else {
|
} else {
|
||||||
theme = 'light'
|
theme = 'dark'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
document.documentElement.setAttribute('data-theme', theme)
|
document.documentElement.setAttribute('data-theme', theme)
|
||||||
|
|
|
@ -23,7 +23,7 @@ window.addEventListener('load', async () => {
|
||||||
|
|
||||||
function getPreferredColorScheme() {
|
function getPreferredColorScheme() {
|
||||||
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||||
return isDarkMode ? "dark" : "light";
|
return isDarkMode ? "dark" : "dark";
|
||||||
}
|
}
|
||||||
|
|
||||||
function setScheme(newScheme) {
|
function setScheme(newScheme) {
|
||||||
|
|
18
content/posts/sample_paper/index.md
Normal file
18
content/posts/sample_paper/index.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title: "Sample Paper"
|
||||||
|
date: 2020-06-08T08:06:25+06:00
|
||||||
|
description: Introduction to Sample Post
|
||||||
|
menu:
|
||||||
|
sidebar:
|
||||||
|
name: Introduction
|
||||||
|
identifier: introduction
|
||||||
|
weight: 10
|
||||||
|
tags: ["Basic", "Multi-lingual"]
|
||||||
|
categories: ["Basic"]
|
||||||
|
---
|
||||||
|
|
||||||
|
Greeting! This is an introduction post. This post tests the followings:
|
||||||
|
|
||||||
|
- Hero image is in the same directory as the post.
|
||||||
|
- This post should be at top of the sidebar.
|
||||||
|
- Post author should be the same as specified in `author.yaml` file.
|
104
data/en/sections/education.yaml
Normal file
104
data/en/sections/education.yaml
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
# section information
|
||||||
|
section:
|
||||||
|
name: Education
|
||||||
|
id: education
|
||||||
|
template: sections/education.html # Use "sections/education-alt.html for alternate template.
|
||||||
|
enable: true
|
||||||
|
weight: 2
|
||||||
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
|
degrees:
|
||||||
|
- name: Ph.D in Quantum Cryptography
|
||||||
|
icon: fa-microscope
|
||||||
|
timeframe: 2016-2020
|
||||||
|
institution:
|
||||||
|
name: ABC University of Technology
|
||||||
|
url: "#"
|
||||||
|
logo: /images/sections/education/tech_college.png
|
||||||
|
# Can optionally show a different logo for dark theme
|
||||||
|
# darkLogo: /images/sections/education/tech_college.png
|
||||||
|
grade: #(optional)
|
||||||
|
scale: CGPA
|
||||||
|
achieved: 3.6
|
||||||
|
outOf: 4
|
||||||
|
publications: #(optional)
|
||||||
|
- title: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
||||||
|
url: "#"
|
||||||
|
- title: Fusce eu augue ut odio porttitor pulvinar.
|
||||||
|
url: "#"
|
||||||
|
- title: Nullam vitae orci tincidunt purus viverra pulvinar.
|
||||||
|
url: "#"
|
||||||
|
- name: B.Sc. in Computer Science & Engineering
|
||||||
|
icon: fa-graduation-cap
|
||||||
|
timeframe: 2012-2016
|
||||||
|
institution:
|
||||||
|
name: University of XYZ
|
||||||
|
url: "#"
|
||||||
|
logo: /images/sections/education/university.jpg
|
||||||
|
# Can optionally show a different logo for dark theme
|
||||||
|
# darkLogo: /images/sections/education/university.jpg
|
||||||
|
grade: #(optional)
|
||||||
|
scale: CGPA
|
||||||
|
achieved: 3.5
|
||||||
|
outOf: 4
|
||||||
|
takenCourses: #(optional)
|
||||||
|
# if true, the courses will be rendered as a table otherwise it will render as a list and the grades will be hidden.
|
||||||
|
showGrades: true
|
||||||
|
collapseAfter: 3
|
||||||
|
courses:
|
||||||
|
- name: Data Structures and Algorithm
|
||||||
|
achieved: 3.75
|
||||||
|
outOf: 4
|
||||||
|
- name: Network Security
|
||||||
|
achieved: 3.80
|
||||||
|
outOf: 4
|
||||||
|
- name: Operating System
|
||||||
|
achieved: 3.5
|
||||||
|
outOf: 4
|
||||||
|
- name: Artificial Intelligent
|
||||||
|
achieved: 3.75
|
||||||
|
outOf: 4
|
||||||
|
publications: #(optional)
|
||||||
|
- title: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
||||||
|
url: "#"
|
||||||
|
- title: Fusce eu augue ut odio porttitor pulvinar.
|
||||||
|
url: "#"
|
||||||
|
extracurricularActivities: #(optional)
|
||||||
|
- In vitae facilisis est, eget porta sem.
|
||||||
|
- Vestibulum consectetur lorem justo, at laoreet lorem feugiat et.
|
||||||
|
- Duis sed massa feugiat, ornare justo et, aliquam est.
|
||||||
|
- Pellentesque ut fringilla magna.
|
||||||
|
custonSections: #(optional)
|
||||||
|
- name: Thesis
|
||||||
|
content: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
||||||
|
- name: Supervisor
|
||||||
|
content: Fusce eu augue ut odio porttitor pulvinar.
|
||||||
|
- name: Higher Secondary School Certificate
|
||||||
|
icon: fa-university
|
||||||
|
timeframe: 2010-2012
|
||||||
|
institution:
|
||||||
|
name: MST College of Science
|
||||||
|
url: "#"
|
||||||
|
logo: /images/sections/education/science_college.png
|
||||||
|
# Can optionally show a different logo for dark theme
|
||||||
|
# darkLogo: /images/sections/education/science_college.png
|
||||||
|
grade: #(optional)
|
||||||
|
scale: GPA
|
||||||
|
achieved: 5
|
||||||
|
outOf: 5
|
||||||
|
extracurricularActivities: #(optional)
|
||||||
|
- In vitae facilisis est, eget porta sem.
|
||||||
|
- Vestibulum consectetur lorem justo, at laoreet lorem feugiat et.
|
||||||
|
- Duis sed massa feugiat, ornare justo et, aliquam est.
|
||||||
|
- Pellentesque ut fringilla magna.
|
||||||
|
- name: Secondary School Certificate
|
||||||
|
icon: fa-school
|
||||||
|
timeframe: 2005-2010
|
||||||
|
institution:
|
||||||
|
name: JK School of Science
|
||||||
|
grade: #(optional)
|
||||||
|
scale: GPA
|
||||||
|
achieved: 4.5
|
||||||
|
outOf: 5
|
73
data/en/sections/experiences.yaml
Normal file
73
data/en/sections/experiences.yaml
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
# section information
|
||||||
|
section:
|
||||||
|
name: Work Experience
|
||||||
|
id: experiences
|
||||||
|
enable: true
|
||||||
|
weight: 1
|
||||||
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
# hideTitle: true
|
||||||
|
|
||||||
|
# Your experiences
|
||||||
|
experiences:
|
||||||
|
- company:
|
||||||
|
name: Example Co.
|
||||||
|
url: "https://www.example.com"
|
||||||
|
location: Dhaka Branch
|
||||||
|
logo: /images/sections/experiences/company1.jpg
|
||||||
|
# Can optionally show a different logo for dark theme
|
||||||
|
# darkLogo: /images/sections/experiences/company1.jpg
|
||||||
|
# company overview
|
||||||
|
overview: Example Co. is a widely recognized company for cloud-native development. It builds tools for Kubernetes.
|
||||||
|
positions:
|
||||||
|
- designation: Senior Software Engineer
|
||||||
|
start: Nov 2019
|
||||||
|
# don't provide end date if you are currently working there. It will be replaced by "Present"
|
||||||
|
# end: Dec 2020
|
||||||
|
# give some points about what was your responsibilities at the company.
|
||||||
|
responsibilities:
|
||||||
|
- Design and develop XYZ tool for ABC task
|
||||||
|
- Design, develop and manage disaster recovery tool [Xtool](https://www.example.com) that backup Kubernetes volumes, databases, and cluster's resource definition.
|
||||||
|
- Lead backend team.
|
||||||
|
|
||||||
|
- designation: Junior Software Engineer
|
||||||
|
start: Nov 2017
|
||||||
|
end: Oct 2019
|
||||||
|
responsibilities:
|
||||||
|
- Implement and test xyz feature for abc tool.
|
||||||
|
- Support client for abc tool.
|
||||||
|
- Learn k,d,w technology for xyz.
|
||||||
|
|
||||||
|
- company:
|
||||||
|
name: PreExample Co.
|
||||||
|
url: "https://www.example.com"
|
||||||
|
location: Nowhere
|
||||||
|
logo: /images/sections/experiences/company2.jpg
|
||||||
|
# Can optionally show a different logo for dark theme
|
||||||
|
# darkLogo: /images/sections/experiences/company2.jpg
|
||||||
|
overview: PreExample Co. is a gateway company to enter into Example co. So, nothing special here.
|
||||||
|
positions:
|
||||||
|
- designation: Software Engineer
|
||||||
|
start: March 2016
|
||||||
|
end: May 2017
|
||||||
|
responsibilities:
|
||||||
|
- Write lots of example codes.
|
||||||
|
- Read lots of examples.
|
||||||
|
- See lots of example videos.
|
||||||
|
|
||||||
|
- company:
|
||||||
|
name: Intern Counting Company (ICC).
|
||||||
|
url: "https://www.example.com"
|
||||||
|
location: Intern Land
|
||||||
|
logo: /images/sections/experiences/company3.jpg
|
||||||
|
# Can optionally show a different logo for dark theme
|
||||||
|
# darkLogo: /images/sections/experiences/company3.jpg
|
||||||
|
overview: Intern counting Company (ICC) is responsible for counting worldwide intern Engineers.
|
||||||
|
positions:
|
||||||
|
- designation: Intern
|
||||||
|
start: Jun 2015
|
||||||
|
end: Jan 2016
|
||||||
|
responsibilities:
|
||||||
|
- Count lost of interns.
|
||||||
|
- Count more interns.
|
||||||
|
- Count me as an intern.
|
38
data/en/sections/projects.yaml
Normal file
38
data/en/sections/projects.yaml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# section information
|
||||||
|
section:
|
||||||
|
name: Projects
|
||||||
|
id: projects
|
||||||
|
enable: true
|
||||||
|
weight: 0
|
||||||
|
showOnNavbar: true
|
||||||
|
# Can optionally hide the title in sections
|
||||||
|
hideTitle: false
|
||||||
|
|
||||||
|
# filter buttons
|
||||||
|
buttons:
|
||||||
|
- name: All
|
||||||
|
filter: "all"
|
||||||
|
- name: Professional
|
||||||
|
filter: "professional"
|
||||||
|
- name: Academic
|
||||||
|
filter: "academic"
|
||||||
|
- name: Hobby
|
||||||
|
filter: "hobby"
|
||||||
|
|
||||||
|
# your projects
|
||||||
|
projects:
|
||||||
|
- name: Kubernetes
|
||||||
|
logo: /images/sections/projects/kubernetes.png
|
||||||
|
role: Contributor
|
||||||
|
timeline: "March 2018 - Present"
|
||||||
|
repo: https://github.com/kubernetes/kubernetes # If your project is a public repo on GitHub, then provide this link. it will show star count.
|
||||||
|
#url: "" # If your project is not a public repo but it has a website or any external details url then provide it here. don't provide "repo" and "url" simultaneously.
|
||||||
|
summary: Production-Grade Container Scheduling and Management.
|
||||||
|
tags: ["professional", "kubernetes", "cloud"]
|
||||||
|
|
||||||
|
- name: A sample academic paper
|
||||||
|
role: Team Lead
|
||||||
|
timeline: "Jan 2017 - Nov 2017"
|
||||||
|
url: "https://www.example.com"
|
||||||
|
summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Sapiente eius reprehenderit animi suscipit autem eligendi esse amet aliquid error eum. Accusantium distinctio soluta aliquid quas placeat modi suscipit eligendi nisi.
|
||||||
|
tags: ["academic","iot"]
|
|
@ -1,72 +1,75 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.Language.Lang }}">
|
<html lang="{{ .Site.Language.Lang }}">
|
||||||
<head>
|
|
||||||
<title>{{- .Site.Title -}}</title>
|
<head>
|
||||||
{{ $siteDescription := .Site.Params.description }}
|
<title>{{- .Site.Title -}}</title>
|
||||||
{{ if (index .Site.Data .Site.Language.Lang).site }}
|
{{ $siteDescription := .Site.Params.description }}
|
||||||
{{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
|
{{ if (index .Site.Data .Site.Language.Lang).site }}
|
||||||
{{ if $siteConfig.description }}
|
{{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
|
||||||
{{ $siteDescription = $siteConfig.description }}
|
{{ if $siteConfig.description }}
|
||||||
{{ end }}
|
{{ $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 }}
|
{{ end }}
|
||||||
<meta name="description" content="{{ $siteDescription }}" />
|
</div>
|
||||||
|
<!--- alter background color for next section --->
|
||||||
<!-- import common headers -->
|
{{ if eq $background "bg-primary" }}
|
||||||
{{- partial "header.html" . -}}
|
{{ $background = "bg-secondary" }}
|
||||||
{{- partial "opengraph.html" . -}}
|
{{ else }}
|
||||||
|
{{ $background = "bg-primary" }}
|
||||||
<!--================= add analytics if enabled =========================-->
|
{{end}}
|
||||||
{{- partial "analytics.html" . -}}
|
{{ end }}
|
||||||
{{ with resources.Get "scripts/core/theme-scheme.js" | fingerprint }}
|
{{ end }}
|
||||||
<script integrity="{{.Data.Integrity}}">
|
{{ end }}
|
||||||
{{ .Content | safeJS }}
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
|
||||||
</head>
|
|
||||||
<body data-bs-spy="scroll" data-bs-target="#top-navbar" data-bs-offset="100">
|
|
||||||
|
|
||||||
<!--- NAVBAR ------------------------->
|
<!--- ADD FOOTER ----------------------->
|
||||||
{{- partial "navigators/navbar.html" . -}}
|
{{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
|
||||||
|
{{- partial $footerTemplate . -}}
|
||||||
|
|
||||||
<!--- ADD HOME SECTION ---------------->
|
<!--- ADD COMMON SCRIPTS --------------->
|
||||||
{{- partial "sections/home.html" . -}}
|
{{ partial "scripts.html" . }}
|
||||||
|
|
||||||
<!--- ADD OPTIONAL SECTIONS ----------->
|
<!------ ADD SUPPORT LINKS -------->
|
||||||
{{ $sections:= site.Data.sections }}
|
{{- partial "misc/support.html" . -}}
|
||||||
{{ if (index site.Data site.Language.Lang).sections }}
|
|
||||||
{{ $sections = (index site.Data site.Language.Lang).sections }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if $sections }}
|
</body>
|
||||||
{{ $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 }}
|
|
||||||
|
|
||||||
<!--- ADD FOOTER ----------------------->
|
</html>
|
||||||
{{ $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>
|
|
|
@ -1,217 +1,200 @@
|
||||||
{{/* variables for enabling/disabling parts of the footer */}}
|
{{/* variables for enabling/disabling parts of the footer */}}
|
||||||
{{ $footerEnabled := site.Params.footer.enable | default true }}
|
{{ $footerEnabled := site.Params.footer.enable | default true }}
|
||||||
{{ $navigationEnabled := site.Params.footer.navigation.enable | default true }}
|
{{ $navigationEnabled := site.Params.footer.navigation.enable | default true }}
|
||||||
{{ $customMenusEnabled := site.Params.footer.navigation.customMenus | default true }}
|
{{ $customMenusEnabled := site.Params.footer.navigation.customMenus | default true }}
|
||||||
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
|
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
|
||||||
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
|
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
|
||||||
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
|
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
|
||||||
{{ $disclaimerEnabled := site.Params.footer.disclaimer.enable | default false }}
|
{{ $disclaimerEnabled := site.Params.footer.disclaimer.enable | default false }}
|
||||||
|
|
||||||
{{/* Keep backward compatibility for the newsletter function */}}
|
{{/* Keep backward compatibility for the newsletter function */}}
|
||||||
{{ if site.Params.newsletter }}
|
{{ if site.Params.newsletter }}
|
||||||
{{ if site.Params.newsletter.enable }}
|
{{ if site.Params.newsletter.enable }}
|
||||||
{{ $newsletterEnabled = true }}
|
{{ $newsletterEnabled = true }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $newsletterEnabled = false }}
|
{{ $newsletterEnabled = false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $footerEnabled }}
|
{{ if $footerEnabled }}
|
||||||
{{ $author:= site.Data.author }}
|
{{ $author:= site.Data.author }}
|
||||||
{{ if (index site.Data site.Language.Lang).author }}
|
{{ if (index site.Data site.Language.Lang).author }}
|
||||||
{{ $author = (index site.Data site.Language.Lang).author }}
|
{{ $author = (index site.Data site.Language.Lang).author }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $sections:= site.Data.sections }}
|
{{ $sections:= site.Data.sections }}
|
||||||
{{ if (index site.Data site.Language.Lang).sections }}
|
{{ if (index site.Data site.Language.Lang).sections }}
|
||||||
{{ $sections = (index site.Data site.Language.Lang).sections }}
|
{{ $sections = (index site.Data site.Language.Lang).sections }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $customMenus := site.Params.customMenus }}
|
{{ $customMenus := site.Params.customMenus }}
|
||||||
{{ if (index site.Data site.Language.Lang).site.customMenus }}
|
{{ if (index site.Data site.Language.Lang).site.customMenus }}
|
||||||
{{ $customMenus = (index site.Data site.Language.Lang).site.customMenus }}
|
{{ $customMenus = (index site.Data site.Language.Lang).site.customMenus }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $copyrightNotice := now.Format "2006" | printf "© %s Copyright."}}
|
{{ $copyrightNotice := now.Format "2006" | printf "© %s Copyright."}}
|
||||||
{{ if (index site.Data site.Language.Lang).site }}
|
{{ if (index site.Data site.Language.Lang).site }}
|
||||||
{{ $siteConfig := (index site.Data site.Language.Lang).site }}
|
{{ $siteConfig := (index site.Data site.Language.Lang).site }}
|
||||||
{{ if $siteConfig.copyright }}
|
{{ if $siteConfig.copyright }}
|
||||||
{{ $copyrightNotice = $siteConfig.copyright }}
|
{{ $copyrightNotice = $siteConfig.copyright }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ $disclaimer := "" }}
|
{{ $disclaimer := "" }}
|
||||||
{{ $siteConfig := (index site.Data site.Language.Lang).site }}
|
{{ $siteConfig := (index site.Data site.Language.Lang).site }}
|
||||||
{{ if $siteConfig.disclaimer }}
|
{{ if $siteConfig.disclaimer }}
|
||||||
{{ $disclaimer = $siteConfig.disclaimer }}
|
{{ $disclaimer = $siteConfig.disclaimer }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* footer logos */}}
|
{{/* footer logos */}}
|
||||||
{{ $themeLogo := "/images/theme-logo.png" }}
|
{{ $themeLogo := "/images/theme-logo.png" }}
|
||||||
{{ $hugoLogo := "/images/hugo-logo.svg" }}
|
{{ $hugoLogo := "/images/hugo-logo.svg" }}
|
||||||
|
|
||||||
{{/* resize the logos. don't resize svg because it is not supported */}}
|
{{/* resize the logos. don't resize svg because it is not supported */}}
|
||||||
{{ $themeLogo:= resources.Get $themeLogo}}
|
{{ $themeLogo:= resources.Get $themeLogo}}
|
||||||
{{ if and $themeLogo (ne $themeLogo.MediaType.SubType "svg") }}
|
{{ if and $themeLogo (ne $themeLogo.MediaType.SubType "svg") }}
|
||||||
{{ $themeLogo = $themeLogo.Resize "32x" }}
|
{{ $themeLogo = $themeLogo.Resize "32x" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $themeLogo = $themeLogo.RelPermalink}}
|
{{ $themeLogo = $themeLogo.RelPermalink}}
|
||||||
|
|
||||||
{{ $hugoLogo:= resources.Get $hugoLogo}}
|
{{ $hugoLogo:= resources.Get $hugoLogo}}
|
||||||
{{ if and $hugoLogo (ne $hugoLogo.MediaType.SubType "svg")}}
|
{{ if and $hugoLogo (ne $hugoLogo.MediaType.SubType "svg")}}
|
||||||
{{ $hugoLogo = $hugoLogo.Resize "32x" }}
|
{{ $hugoLogo = $hugoLogo.Resize "32x" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $hugoLogo = $hugoLogo.RelPermalink}}
|
{{ $hugoLogo = $hugoLogo.RelPermalink}}
|
||||||
|
|
||||||
<footer id="footer" class="container-fluid text-center align-content-center footer pb-2">
|
<footer id="footer" class="container-fluid text-center align-content-center footer pb-2">
|
||||||
<div class="container pt-5">
|
<div class="container pt-5">
|
||||||
<div class="row text-start">
|
<div class="row text-start">
|
||||||
{{ if $navigationEnabled }}
|
{{ if $navigationEnabled }}
|
||||||
<div class="col-md-4 col-sm-12">
|
<div class="col-md-4 col-sm-12">
|
||||||
<h5>{{ i18n "navigation" }}</h5>
|
<h5>{{ i18n "navigation" }}</h5>
|
||||||
{{ if $sections }}
|
{{ if $sections }}
|
||||||
<ul>
|
<ul>
|
||||||
{{- range sort $sections "section.weight" }}
|
{{- range sort $sections "section.weight" }}
|
||||||
{{ if and (.section.enable) (.section.showOnNavbar)}}
|
{{ if and (.section.enable) (.section.showOnNavbar)}}
|
||||||
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
||||||
{{ if .section.id }}
|
{{ if .section.id }}
|
||||||
{{ $sectionID = .section.id }}
|
{{ $sectionID = .section.id }}
|
||||||
{{ end }}
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="smooth-scroll" href="{{ "" | absLangURL }}#{{ $sectionID }}">{{ .section.name }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
{{- end }}
|
|
||||||
{{ if $customMenusEnabled }}
|
|
||||||
{{ range $customMenus }}
|
|
||||||
{{ if .showOnFooter }}
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="smooth-scroll" href="{{ .url }}">{{ .name }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
<li class="nav-item">
|
||||||
|
<a class="smooth-scroll" href="{{ "" | absLangURL }}#{{ $sectionID }}">{{ .section.name }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
{{- end }}
|
||||||
|
{{ if $customMenusEnabled }}
|
||||||
|
{{ range $customMenus }}
|
||||||
|
{{ if .showOnFooter }}
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="smooth-scroll" href="{{ .url }}">{{ .name }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if (and $contactMeEnabled $author) }}
|
</div>
|
||||||
<div class="col-md-4 col-sm-12">
|
{{ end }}
|
||||||
<h5>{{ i18n "contact_me" }}</h5>
|
{{ if (and $contactMeEnabled $author) }}
|
||||||
<ul>
|
<div class="col-md-4 col-sm-12">
|
||||||
{{ range $key,$value:= $author.contactInfo }}
|
<h5>{{ i18n "contact_me" }}</h5>
|
||||||
{{ if (eq $key "email") }}
|
<ul>
|
||||||
<li><a href={{ printf "mailto:%s" $value }} target="_blank" rel="noopener">
|
{{ range $key,$value:= $author.contactInfo }}
|
||||||
<span><i class="fas fa-envelope"></i></span> <span>{{ $value }}</span>
|
{{ if (eq $key "email") }}
|
||||||
</a></li>
|
<li><a href={{ printf "mailto:%s" $value }} target="_blank" rel="noopener">
|
||||||
{{ else if (eq $key "phone") }}
|
<span><i class="fas fa-envelope"></i></span> <span>{{ $value }}</span>
|
||||||
<li><span><i class="fas fa-phone-alt"></i></span> <span>{{ $value }}</span></li>
|
</a></li>
|
||||||
{{ else if (eq $key "linkedin") }}
|
{{ else if (eq $key "phone") }}
|
||||||
<li><a href={{ printf "https://www.linkedin.com/in/%s" $value }} target="_blank" rel="noopener">
|
<li><span><i class="fas fa-phone-alt"></i></span> <span>{{ $value }}</span></li>
|
||||||
<span><i class="fab fa-linkedin"></i></span> <span>{{ $author.name }}</span>
|
{{ else if (eq $key "linkedin") }}
|
||||||
</a></li>
|
<li><a href={{ printf "https://www.linkedin.com/in/%s" $value }} target="_blank" rel="noopener">
|
||||||
{{ else if (eq $key "github") }}
|
<span><i class="fab fa-linkedin"></i></span> <span>{{ $author.name }}</span>
|
||||||
<li><a href={{ printf "https://github.com/%s" $value }} target="_blank" rel="noopener">
|
</a></li>
|
||||||
<span><i class="fab fa-github"></i></span> <span>{{ $value }}</span>
|
{{ else if (eq $key "github") }}
|
||||||
</a></li>
|
<li><a href={{ printf "https://github.com/%s" $value }} target="_blank" rel="noopener">
|
||||||
{{ else if (eq $key "researchgate") }}
|
<span><i class="fab fa-github"></i></span> <span>{{ $value }}</span>
|
||||||
<li><a href={{ printf "https://www.researchgate.net/profile/%s" $value }} target="_blank" rel="noopener">
|
</a></li>
|
||||||
<span><i class="fab fa-researchgate"></i></span> <span>{{ $author.name }}</span>
|
{{ else if (eq $key "researchgate") }}
|
||||||
</a></li>
|
<li><a href={{ printf "https://www.researchgate.net/profile/%s" $value }} target="_blank" rel="noopener">
|
||||||
{{ else if reflect.IsMap $value }}
|
<span><i class="fab fa-researchgate"></i></span> <span>{{ $author.name }}</span>
|
||||||
<li>
|
</a></li>
|
||||||
{{ if (and (isset $value "url") (isset $value "icon"))}}
|
{{ else if reflect.IsMap $value }}
|
||||||
<a href={{ $value.url }} target="_blank" rel="noopener">
|
<li>
|
||||||
<span><i class={{ printf "fab fa-%s" $value.icon }}></i></span> <span>{{ $value.text }}</span>
|
{{ if (and (isset $value "url") (isset $value "icon"))}}
|
||||||
</a>
|
<a href={{ $value.url }} target="_blank" rel="noopener">
|
||||||
{{ else if isset $value "icon" }}
|
<span><i class={{ printf "fab fa-%s" $value.icon }}></i></span> <span>{{ $value.text }}</span>
|
||||||
<span><i class={{ printf "fab fa-%s" $value.icon }}></i></span> <span>{{ $value.text }}</span>
|
</a>
|
||||||
{{ else }}
|
{{ else if isset $value "icon" }}
|
||||||
<a href={{ $value.url }} target="_blank" rel="noopener">
|
<span><i class={{ printf "fab fa-%s" $value.icon }}></i></span> <span>{{ $value.text }}</span>
|
||||||
<span>{{ title $key }}: </span> <span>{{ $value.text }}</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</li>
|
|
||||||
{{ else }}
|
|
||||||
<li><span>{{ title $key }}: </span> <span>{{ $value }}</span></li>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
<!-------------- Newsletter --------------->
|
|
||||||
{{ if $newsletterEnabled }}
|
|
||||||
{{ $provider := site.Params.footer.newsletter.provider }}
|
|
||||||
<div class="col-md-4 col-sm-12">
|
|
||||||
<p>{{ i18n "newsletter_text" }}</p>
|
|
||||||
{{ if and (eq $provider "mailchimp") site.Params.footer.newsletter.mailchimpURL }} <!-- mailchimp -->
|
|
||||||
<form
|
|
||||||
action="{{ site.Params.footer.newsletter.mailchimpURL }}"
|
|
||||||
method="post"
|
|
||||||
id="mc-embedded-subscribe-form"
|
|
||||||
name="mc-embedded-subscribe-form"
|
|
||||||
class="validate"
|
|
||||||
target="_blank"
|
|
||||||
novalidate >
|
|
||||||
<div class="form-group">
|
|
||||||
<input
|
|
||||||
type="email"
|
|
||||||
class="form-control"
|
|
||||||
id="mce-EMAIL"
|
|
||||||
name="EMAIL"
|
|
||||||
aria-describedby="emailHelp"
|
|
||||||
placeholder="{{ i18n "newsletter_input_placeholder" }}"
|
|
||||||
/>
|
|
||||||
<small id="emailHelp" class="form-text text-muted"
|
|
||||||
>{{ i18n "newsletter_warning" }}</small
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
|
|
||||||
</form>
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<form method='post' action='https://blogtrottr.com'>
|
<a href={{ $value.url }} target="_blank" rel="noopener">
|
||||||
<div class="form-group">
|
<span>{{ title $key }}: </span> <span>{{ $value.text }}</span>
|
||||||
<input type='email' class="form-control" name='btr_email' placeholder="{{ i18n "newsletter_input_placeholder" }}"/><br />
|
</a>
|
||||||
<input type='hidden' name='btr_url' value='{{ "" | absLangURL }}/index.xml' />
|
|
||||||
<input type='hidden' name='schedule_type' value='1' />
|
|
||||||
<small id="emailHelp" class="form-text text-muted">{{ i18n "newsletter_warning" }}</small>
|
|
||||||
<button type="submit" class="btn btn-info"> {{ i18n "submit" }} </button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</li>
|
||||||
|
{{ else }}
|
||||||
|
<li><span>{{ title $key }}: </span> <span>{{ $value }}</span></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
<!-------------- Newsletter --------------->
|
||||||
|
{{ if $newsletterEnabled }}
|
||||||
|
{{ $provider := site.Params.footer.newsletter.provider }}
|
||||||
|
<div class="col-md-4 col-sm-12">
|
||||||
|
<p>{{ i18n "newsletter_text" }}</p>
|
||||||
|
{{ if and (eq $provider "mailchimp") site.Params.footer.newsletter.mailchimpURL }} <!-- mailchimp -->
|
||||||
|
<form action="{{ site.Params.footer.newsletter.mailchimpURL }}" method="post" id="mc-embedded-subscribe-form"
|
||||||
|
name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="email" class="form-control" id="mce-EMAIL" name="EMAIL" aria-describedby="emailHelp"
|
||||||
|
placeholder="{{ i18n " newsletter_input_placeholder" }}" />
|
||||||
|
<small id="emailHelp" class="form-text text-muted">{{ i18n "newsletter_warning" }}</small>
|
||||||
</div>
|
</div>
|
||||||
|
<button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
|
||||||
|
</form>
|
||||||
|
{{ else }}
|
||||||
|
<form method='post' action='https://blogtrottr.com'>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type='email' class="form-control" name='btr_email' placeholder="{{ i18n "
|
||||||
|
newsletter_input_placeholder" }}" /><br />
|
||||||
|
<input type='hidden' name='btr_url' value='{{ "" | absLangURL }}/index.xml' />
|
||||||
|
<input type='hidden' name='schedule_type' value='1' />
|
||||||
|
<small id="emailHelp" class="form-text text-muted">{{ i18n "newsletter_warning" }}</small>
|
||||||
|
<button type="submit" class="btn btn-info"> {{ i18n "submit" }} </button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if and $disclaimerEnabled $disclaimer}}
|
</div>
|
||||||
<hr />
|
{{ if and $disclaimerEnabled $disclaimer}}
|
||||||
<div class="container">
|
<hr />
|
||||||
<p id="disclaimer"><strong>{{ i18n "disclaimer_text" }}:</strong> {{ $disclaimer | markdownify }}</p>
|
<div class="container">
|
||||||
</div>
|
<p id="disclaimer"><strong>{{ i18n "disclaimer_text" }}:</strong> {{ $disclaimer | markdownify }}</p>
|
||||||
{{ end }}
|
</div>
|
||||||
{{ if $credentialsEnabled }}
|
{{ end }}
|
||||||
<hr />
|
{{ if $credentialsEnabled }}
|
||||||
<div class="container">
|
<hr />
|
||||||
<div class="row text-start">
|
<div class="container">
|
||||||
<div class="col-md-4">
|
<div class="row text-start">
|
||||||
<a id="theme" href="https://github.com/hugo-toha/toha" target="_blank" rel="noopener">
|
<div class="col-md-4">
|
||||||
<img src="{{ $themeLogo }}" alt="Toha Theme Logo">
|
<a id="theme" href="https://github.com/hugo-toha/toha" target="_blank" rel="noopener">
|
||||||
Toha
|
<img src="{{ $themeLogo }}" alt="Toha Theme Logo">
|
||||||
</a>
|
Toha
|
||||||
</div>
|
</a>
|
||||||
<div class="col-md-4 text-center">{{ $copyrightNotice | markdownify }}</div>
|
</div>
|
||||||
<div class="col-md-4 text-end">
|
<div class="col-md-4 text-center">{{ $copyrightNotice | markdownify }}</div>
|
||||||
<a id="hugo" href="https://gohugo.io/" target="_blank" rel="noopener">{{ i18n "hugoAttributionText" }}
|
<div class="col-md-4 text-end">
|
||||||
<img
|
<a id="hugo" href="https://gohugo.io/" target="_blank" rel="noopener">{{ i18n "hugoAttributionText" }}
|
||||||
src="{{ $hugoLogo }}"
|
<img src="{{ $hugoLogo }}" alt="Hugo Logo" height="18" />
|
||||||
alt="Hugo Logo"
|
</a>
|
||||||
height="18"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
</div>
|
||||||
</footer>
|
{{ end }}
|
||||||
{{end}}
|
</footer>
|
||||||
|
{{end}}
|
|
@ -1,31 +1,32 @@
|
||||||
{{/* variables for enabling/disabling various features */}}
|
{{/* variables for enabling/disabling various features */}}
|
||||||
{{ $darkEnabled := true }}
|
{{ $darkEnabled := true }}
|
||||||
{{ $lightEnabled := true }}
|
{{ $lightEnabled := true }}
|
||||||
{{ if site.Params.features.theme.enable }}
|
{{ if site.Params.features.theme.enable }}
|
||||||
{{ $darkEnabled = site.Params.features.theme.services.dark | default true }}
|
{{ $darkEnabled = site.Params.features.theme.services.dark | default true }}
|
||||||
{{ $lightEnabled = site.Params.features.theme.services.light | default true }}
|
{{ $lightEnabled = site.Params.features.theme.services.light | default true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="themeSelector" role="button"
|
<a class="nav-link dropdown-toggle" href="#" id="themeSelector" role="button" data-bs-toggle="dropdown"
|
||||||
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
aria-haspopup="true" aria-expanded="false">
|
||||||
<img id="navbar-theme-icon-svg" class="theme-icon" src="{{ "icons/moon-svgrepo-com.svg" | relURL }}" width=20 alt="Dark Theme">
|
<img id="navbar-theme-icon-svg" class="theme-icon" src="{{ " icons/moon-svgrepo-com.svg" | relURL }}" width=20
|
||||||
</a>
|
alt="Dark Theme">
|
||||||
<div id="themeMenu" class="dropdown-menu dropdown-menu-icons-only" aria-labelledby="themeSelector">
|
|
||||||
{{ if $lightEnabled }}
|
|
||||||
<a class="dropdown-item nav-link" href="#" data-scheme="light">
|
|
||||||
<img class="theme-icon" src="{{ "icons/sun-svgrepo-com.svg" | relURL }}" width=20 alt="Light Theme">
|
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
<div id="themeMenu" class="dropdown-menu dropdown-menu-icons-only" aria-labelledby="themeSelector">
|
||||||
{{ if $darkEnabled }}
|
{{ if $lightEnabled }}
|
||||||
<a class="dropdown-item nav-link" href="#" data-scheme="dark">
|
<a class="dropdown-item nav-link" href="#" data-scheme="light">
|
||||||
<img class="theme-icon" src="{{ "icons/moon-svgrepo-com.svg" | relURL }}" width=20 alt="Dark Theme">
|
<img class="theme-icon" src="{{ " icons/sun-svgrepo-com.svg" | relURL }}" width=20 alt="Light Theme">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and $lightEnabled $darkEnabled }}
|
{{ if $darkEnabled }}
|
||||||
<a class="dropdown-item nav-link" href="#" data-scheme="system">
|
<a class="dropdown-item nav-link" href="#" data-scheme="dark">
|
||||||
<img class="theme-icon" src="{{ "icons/computer-svgrepo-com.svg" | relURL }}" width=20 alt="System Theme">
|
<img class="theme-icon" src="{{ " icons/moon-svgrepo-com.svg" | relURL }}" width=20 alt="Dark Theme">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
{{ if and $lightEnabled $darkEnabled }}
|
||||||
</li>
|
<a class="dropdown-item nav-link" href="#" data-scheme="system">
|
||||||
|
<img class="theme-icon" src="{{ " icons/computer-svgrepo-com.svg" | relURL }}" width=20 alt="System Theme">
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</li>
|
Loading…
Add table
Add a link
Reference in a new issue