This commit is contained in:
Dave Gallant
2024-01-07 14:50:58 -05:00
parent bb5e1f688b
commit fdc27aad3a
8 changed files with 10 additions and 88 deletions

View File

@@ -7,6 +7,6 @@ draft: false
My primary motivation for hosting this website is to document my learnings and share them with others. I hope you find something useful here. Continuous improvement is what motivates me to keep learning.
I choose to self-host my own website and other tools instead of relying exclusively on larger platforms because I believe in the open web. Interopability is often not a primary concern for popular platforms today and I find that concerning. I first got access to the internet in 1996 and have seen it evolve into what it is today. I want to do my part to keep it open and free.
I choose to self-host this site and other tools instead of relying exclusively on larger platforms because I believe in the open web. Interopability is often not a primary concern for popular platforms today and I find that concerning. I first got access to the internet in 1996 and have seen it evolve into what it is today. I want to do my part to keep it open and free.
If you would like to reach out, find out how to contact me [here](/contact/).

View File

@@ -3,11 +3,11 @@ title: "Contact"
draft: false
---
| Connect with me using the following methods: |
| --------------------------------------------- |
| [me@davegallant.ca](mailto:me@davegallant.ca) |
| <https://www.linkedin.com/in/dave-gallant> |
| <https://mastodon.social/@davegallant> |
| <https://github.com/davegallant> |
| <https://davegallant.ca/index.xml> |
| <https://git.davegallant.ca/explore/repos> |
Connect with me by using any of the following methods:
- [me@davegallant.ca](mailto:me@davegallant.ca)
- <https://www.linkedin.com/in/dave-gallant>
- <https://mastodon.social/@davegallant>
- <https://github.com/davegallant>
- <https://davegallant.ca/index.xml>
- <https://git.davegallant.ca/explore/repos>

View File

@@ -3,7 +3,7 @@ title: "Credits"
draft: false
---
This website is powered by open-source software.
This site is powered by open-source software.
- The site is generated with [hugo](https://gohugo.io/)
- The theme is a modified version of [hugo-theme-gruvbox](https://github.com/schnerring/hugo-theme-gruvbox)

View File

@@ -68,16 +68,3 @@ aside.toc {
}
}
}
.tag-cloud {
line-height: 1.1;
text-align: justify;
}
.tag-cloud__tag:hover {
color: var(--fg3);
}
.tag-cloud__tag--active {
text-decoration: underline;
}

View File

@@ -1,8 +0,0 @@
{{ define "main" }}
<article class="post">
<h1>{{ .Title | markdownify }}</h1>
<div class="post-content">
{{ .Content }}
</div>
</article>
{{ end }}

View File

@@ -11,9 +11,4 @@
{{ end }}
{{ end }}
{{ if $.Site.Params.tagCloud.enable }}
<aside>
{{ partial "tag-cloud.html" . }}
</aside>
{{ end }}
</div>

View File

@@ -1,20 +0,0 @@
{{ $url := .Permalink }}
{{ $title := .Title }}
{{ with $.Site.Params.socialShare }}
<div class="social-share">
<strong class="social-share__heading">Share this post: </strong>
{{ range . }}
{{ $href := .formatString }}
{{ $href := replace $href "{url}" (urlquery $url) }}
{{ $href := replace $href "{title}" (urlquery $title) }}
<a
class="social-share__item"
href="{{ $href | safeURL }}"
target="_blank"
rel="noreferrer"
>
{{ partial (printf "icons/%s" .iconSuite) .iconName }}
</a>
{{ end }}
</div>
{{ end }}

View File

@@ -1,32 +0,0 @@
<!--
Original work by Artem Sidorenko: https://www.sidorenko.io/post/2017/07/nice-tagcloud-with-hugo/
Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/)
-->
{{ with $.Site.Taxonomies.tags }}
{{ $fontUnit := "rem" }}
{{ $minFontSize := $.Site.Params.tagCloud.minFontSizeRem | default 0.8 }}
{{ $maxFontSize := $.Site.Params.tagCloud.maxFontSizeRem | default 2.0 }}
{{ $fontSizeSpread := sub $maxFontSize $minFontSize }}
{{ $min := len (index .ByCount.Reverse 0).Pages }}
{{ $max := add (len (index .ByCount 0).Pages) 1 }}
<div class="tag-cloud">
{{ range $tagName, $weightedPages := . }}
{{ $count := len $weightedPages.Pages }}
{{ $weight := div (sub (math.Log $count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
{{ $fontSize := (add $minFontSize (mul $fontSizeSpread $weight) ) }}
<a
href="{{ "/tags/" | relLangURL }}{{ $tagName | urlize }}"
style="font-size:{{ $fontSize }}{{ $fontUnit }}"
{{ if eq $.Page.Params.title $tagName -}}
class="tag-cloud__tag tag-cloud__tag--active"
{{ else -}}
class="tag-cloud__tag"
{{ end -}}
>{{ $tagName }}</a
>
{{ end }}
</div>
{{ end }}