From e19ebe26ecd117a77c8fdda2e7667fca42160e1d Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Tue, 26 Sep 2023 22:06:05 -0400 Subject: stuff --- layouts/partials/footer.html | 47 ++++++++++++++++++++++++++++++++++++++++++++ layouts/partials/social.html | 16 +++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 layouts/partials/social.html (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eb1e7e7..d60e941 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,52 @@ \ 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 @@ +{{ $social := .social }} +{{ $username := .username }} + +{{ $url := "" }} + +{{ if eq $social "github" }} + {{ $url = printf "https://github.com/%s" $username }} +{{ else if eq $social "linkedin" }} + {{ $url = printf "https://www.linkedin.com/in/%s" $username }} +{{ else }} + {{ $url = "#" }} +{{ end }} + + + {{ title $social }} + \ No newline at end of file -- cgit v1.1 From b179606dac7cf36c490512146ad8ce898f7800b2 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Wed, 27 Sep 2023 21:50:42 -0400 Subject: theme tweaks --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials') 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 @@ {{- template "_internal/opengraph.html" . -}} {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}} - \ No newline at end of file + -- cgit v1.1 From 81200fa6a598557f36593c950d7a63c52aa0b22f Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Fri, 29 Sep 2023 00:14:30 -0400 Subject: tweak styles --- layouts/partials/footer.html | 5 ++++- layouts/partials/header.html | 10 +++------- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d60e941..3800b98 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -47,6 +47,9 @@ +
+ Powered by Hugo & Blackbear +
- \ No newline at end of file + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4a9ae70..28d3734 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,13 +1,9 @@
    {{ range .Site.Menus.main }}
  • {{ .Name }}
  • @@ -15,4 +11,4 @@
-
\ No newline at end of file + -- cgit v1.1 From 93a4ba55f2159e69aa1fcdaa1cf87c09e7455017 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Tue, 3 Oct 2023 23:44:31 -0400 Subject: add changelog, assets, new partial --- layouts/partials/head.html | 4 ++-- layouts/partials/scripts.html | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/scripts.html (limited to 'layouts/partials') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d7b2381..2106ef3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,8 +1,8 @@ {{ .Title }} - {{ with resources.Get "css/pico.min.css" }} + {{ with resources.Get "css/main.css" }} {{ end }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html new file mode 100644 index 0000000..152c32b --- /dev/null +++ b/layouts/partials/scripts.html @@ -0,0 +1,4 @@ +{{ $scripts := resources.Match "js/*.js" }} +{{ range $script := $scripts }} + +{{ end }} \ No newline at end of file -- cgit v1.1 From 4e30ae95eaf52a7f427bdf020d118f40e00ab291 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Mon, 9 Oct 2023 13:41:04 -0400 Subject: add some homemade svg, wpartials, and darkmode --- layouts/partials/func/GetSvg.html | 5 +++++ layouts/partials/head.html | 4 ++-- layouts/partials/scripts.html | 3 ++- layouts/partials/site-actions.html | 12 ++++++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/func/GetSvg.html create mode 100644 layouts/partials/site-actions.html (limited to 'layouts/partials') 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 @@ +{{ $resource := dict }} +{{ with resources.Get . | minify }} + {{ $resource = .Content | safeHTML }} +{{ end }} +{{ return $resource }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2106ef3..d7b2381 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,8 +1,8 @@ {{ .Title }} - + {{ end }} {{ with resources.Get "css/main.css" }} {{ end }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 152c32b..f7c95bd 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,4 +1,5 @@ {{ $scripts := resources.Match "js/*.js" }} {{ range $script := $scripts }} + {{ $script := $script | minify | fingerprint }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/site-actions.html b/layouts/partials/site-actions.html new file mode 100644 index 0000000..b9afa66 --- /dev/null +++ b/layouts/partials/site-actions.html @@ -0,0 +1,12 @@ +
+ + +
\ No newline at end of file -- cgit v1.1 From d0e7f43601e90229b95191a1cdc85039e233b622 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Mon, 9 Oct 2023 21:08:24 -0400 Subject: add icons, refine styles, update layouts --- layouts/partials/site-actions.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/site-actions.html b/layouts/partials/site-actions.html index b9afa66..ac9013a 100644 --- a/layouts/partials/site-actions.html +++ b/layouts/partials/site-actions.html @@ -1,12 +1,18 @@
- +
\ No newline at end of file -- cgit v1.1 From 6e6412e4a693ddc2da5e4611363fb882ad6497be Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Thu, 12 Oct 2023 08:08:37 -0400 Subject: Switch to light theme. remove articles. --- layouts/partials/updated_posts.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 layouts/partials/updated_posts.html (limited to 'layouts/partials') 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 @@ +{{ $lastBuildTime := time "2021-09-08T12:51:38-0400" }} +{{ $updatedPosts := slice }} + +{{ range .Site.Pages }} + {{ if .Lastmod.After $lastBuildTime }} +
  • {{ .Title }} - {{ .Lastmod }}
  • + {{ end }} +{{ end }} + +

    Updated Posts:

    +
      + {{ range $updatedPosts }} +
    • {{ . }}
    • + {{ end }} +
    + +{{ $currentTime := now.UTC }} -- cgit v1.1 From 2545016f8d6b63b0d857fc20fdd7276d2f0fc2a9 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Thu, 12 Oct 2023 23:40:26 -0400 Subject: Layout refinements. add config, disclaimer --- layouts/partials/disclaimer.html | 2 ++ layouts/partials/footer.html | 64 ++++++++++++++-------------------------- 2 files changed, 24 insertions(+), 42 deletions(-) create mode 100644 layouts/partials/disclaimer.html (limited to 'layouts/partials') 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 @@ +{{ $disclaimer := .Site.GetPage "/disclaimer.md" }} +{{ $disclaimer.Content }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3800b98..171d3ba 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,55 +1,35 @@
    -

    {{ .Site.Title }}

    -
    -
    -
    -

    Contact Info

    -

    Phone: {{ .Site.Params.phone }}

    -

    Email: {{ .Site.Params.email }}

    -
    -
    +
    +
    +

    {{ .Site.Title | upper }}

    +

    {{ .Site.Params.description }}

    +

    Connect

      {{ range $key, $value := .Site.Social }} -
    • - {{ partial "social.html" (dict "social" $key "username" $value) }} -
    • +
    • + {{ partial "social.html" (dict "social" $key "username" $value) }} +
    • {{ end }}
    -
    -
    - {{ with .Site.Params.friends }} -
    -

    Friends

    +
    + +
    +

    Get Around

    - {{ end }} -
    -

    Navigation

    -
      - {{ range .Site.Menus.main }} -
    • {{ .Name }}
    • - {{ end }} -
    -
    +
    +
    +
    Powered by Hugo & Blackbear (v{{.Site.Params.themeVersion }})
    +
    + v{{.Site.Params.siteVersion}}
    +
    © Copyright {{ now.Format "2006" }} | All Rights Reserved
    +
    -
    - Powered by Hugo & Blackbear -
    - -
    + \ No newline at end of file -- cgit v1.1 From 6bfd84ae2c7aad006c3bc84cdce9aebf894cbe62 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 20 Oct 2023 22:49:31 -0400 Subject: add summary for books --- layouts/partials/header.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 28d3734..0137db1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,9 +1,9 @@
    -