aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/disclaimer.html2
-rw-r--r--layouts/partials/footer.html32
-rw-r--r--layouts/partials/func/GetSvg.html5
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/header.html14
-rw-r--r--layouts/partials/scripts.html5
-rw-r--r--layouts/partials/site-actions.html18
-rw-r--r--layouts/partials/social.html16
-rw-r--r--layouts/partials/updated_posts.html17
9 files changed, 100 insertions, 11 deletions
diff --git a/layouts/partials/disclaimer.html b/layouts/partials/disclaimer.html
new file mode 100644
index 0000000..7cac018
--- /dev/null
+++ b/layouts/partials/disclaimer.html
@@ -0,0 +1,2 @@
1{{ $disclaimer := .Site.GetPage "/disclaimer.md" }}
2{{ $disclaimer.Content }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index eb1e7e7..171d3ba 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,5 +1,35 @@
1<footer> 1<footer>
2 <div class="container"> 2 <div class="container">
3 <h3>{{ .Site.Title }}</h3> 3 <div class="flex row space-between">
4 <hgroup>
5 <h3>{{ .Site.Title | upper }}</h3>
6 <p>{{ .Site.Params.description }}</p>
7 <div>
8 <h4>Connect</h4>
9 <ul>
10 {{ range $key, $value := .Site.Social }}
11 <li>
12 {{ partial "social.html" (dict "social" $key "username" $value) }}
13 </li>
14 {{ end }}
15 </ul>
16 </div>
17 </hgroup>
18 <div class="flex col align-end">
19 <h4>Get Around</h4>
20 <ul>
21 {{ range .Site.Menus.main }}
22 <li><a href="{{ .URL }}">{{ .Name }}</a></li>
23 {{ end }}
24 </ul>
25 </div>
26 </div>
27 <div class="flex row space-between">
28 <div>Powered by <a href="https://gohugo.io">Hugo</a> &amp; Blackbear (v{{.Site.Params.themeVersion }})</div>
29 <div>
30 <span title="site version">v{{.Site.Params.siteVersion}}</span>
31 </div>
32 <div>&copy; Copyright {{ now.Format "2006" }} | All Rights Reserved</div>
33 </div>
4 </div> 34 </div>
5</footer> \ No newline at end of file 35</footer> \ No newline at end of file
diff --git a/layouts/partials/func/GetSvg.html b/layouts/partials/func/GetSvg.html
new file mode 100644
index 0000000..bff1fd1
--- /dev/null
+++ b/layouts/partials/func/GetSvg.html
@@ -0,0 +1,5 @@
1{{ $resource := dict }}
2{{ with resources.Get . | minify }}
3 {{ $resource = .Content | safeHTML }}
4{{ end }}
5{{ return $resource }} \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index dbc55b1..d7b2381 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -9,4 +9,4 @@
9 {{- template "_internal/opengraph.html" . -}} 9 {{- template "_internal/opengraph.html" . -}}
10 {{- template "_internal/schema.html" . -}} 10 {{- template "_internal/schema.html" . -}}
11 {{- template "_internal/twitter_cards.html" . -}} 11 {{- template "_internal/twitter_cards.html" . -}}
12</head> \ No newline at end of file 12</head>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 4a9ae70..0137db1 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,13 +1,9 @@
1<header> 1<header>
2 <div class="container"> 2 <div class="container">
3 <nav> 3 <nav id="nav-main" class="flex wrap">
4 <ul> 4 <div class='wordmark'>
5 <li> 5 {{ .Site.Title }}
6 <strong> 6 </div>
7 {{ .Site.Title }}
8 </strong>
9 </li>
10 </ul>
11 <ul> 7 <ul>
12 {{ range .Site.Menus.main }} 8 {{ range .Site.Menus.main }}
13 <li><a href="{{ .URL }}">{{ .Name }}</a></li> 9 <li><a href="{{ .URL }}">{{ .Name }}</a></li>
@@ -15,4 +11,4 @@
15 </ul> 11 </ul>
16 </nav> 12 </nav>
17 </div> 13 </div>
18</header> \ No newline at end of file 14</header>
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
new file mode 100644
index 0000000..f7c95bd
--- /dev/null
+++ b/layouts/partials/scripts.html
@@ -0,0 +1,5 @@
1{{ $scripts := resources.Match "js/*.js" }}
2{{ range $script := $scripts }}
3 {{ $script := $script | minify | fingerprint }}
4 <script src="{{ $script.RelPermalink }}" defer></script>
5{{ end }}
diff --git a/layouts/partials/site-actions.html b/layouts/partials/site-actions.html
new file mode 100644
index 0000000..ac9013a
--- /dev/null
+++ b/layouts/partials/site-actions.html
@@ -0,0 +1,18 @@
1<div id="actions" class="fixed flex row aligned right">
2 <button id="darkmode">
3 <span class="icon" id="lightmode-icon">
4 {{ partial "func/GetSvg" "Lightmode.svg" }}
5 </span>
6 <span class="icon hide" id="darkmode-icon">
7 {{ partial "func/GetSvg" "Darkmode.svg" }}
8 </span>
9 </button>
10 <button id="fullscreen" class="flex row centered" title="fullscreen toggle">
11 <span class="icon" id="fullscreen-icon">
12 {{ partial "func/GetSvg" "Fullscreen.svg" }}
13 </span>
14 <span class="icon hide" id="smallscreen-icon">
15 {{ partial "func/GetSvg" "Smallscreen.svg" }}
16 </span>
17 </button>
18</div> \ No newline at end of file
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
new file mode 100644
index 0000000..03645ad
--- /dev/null
+++ b/layouts/partials/social.html
@@ -0,0 +1,16 @@
1{{ $social := .social }}
2{{ $username := .username }}
3
4{{ $url := "" }}
5
6{{ if eq $social "github" }}
7 {{ $url = printf "https://github.com/%s" $username }}
8{{ else if eq $social "linkedin" }}
9 {{ $url = printf "https://www.linkedin.com/in/%s" $username }}
10{{ else }}
11 {{ $url = "#" }}
12{{ end }}
13
14<a href="{{ $url }}" target="_blank">
15 {{ title $social }}
16</a> \ No newline at end of file
diff --git a/layouts/partials/updated_posts.html b/layouts/partials/updated_posts.html
new file mode 100644
index 0000000..7010a5b
--- /dev/null
+++ b/layouts/partials/updated_posts.html
@@ -0,0 +1,17 @@
1{{ $lastBuildTime := time "2021-09-08T12:51:38-0400" }}
2{{ $updatedPosts := slice }}
3
4{{ range .Site.Pages }}
5 {{ if .Lastmod.After $lastBuildTime }}
6 <li>{{ .Title }} - {{ .Lastmod }}</li>
7 {{ end }}
8{{ end }}
9
10<h2>Updated Posts:</h2>
11<ul>
12 {{ range $updatedPosts }}
13 <li>{{ . }}</li>
14 {{ end }}
15</ul>
16
17{{ $currentTime := now.UTC }}