diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-04-24 11:15:04 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-04-24 11:15:04 -0400 |
| commit | 544ced362819ae9bd2abd9c12480f76945b368aa (patch) | |
| tree | 84695604c33c6266a65d63759e3474c9bd87892e | |
| parent | 8dfec6a37d8adb55d500df1866901e3ee0d3c067 (diff) | |
| download | samanthony.xyz-master.zip | |
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | content/_index.html | 154 | ||||
| -rw-r--r-- | layouts/_partials/asset-table.html | 36 | ||||
| -rw-r--r-- | layouts/_partials/copyright.html | 6 | ||||
| -rw-r--r-- | layouts/_partials/footer.html | 24 | ||||
| -rw-r--r-- | layouts/_partials/pages.html | 32 | ||||
| -rw-r--r-- | layouts/_partials/terms.html | 8 | ||||
| -rw-r--r-- | layouts/_shortcodes/asset-table.html | 6 | ||||
| -rw-r--r-- | layouts/articles/page.html | 26 | ||||
| -rw-r--r-- | layouts/baseof.html | 32 | ||||
| -rw-r--r-- | layouts/home.html | 2 | ||||
| -rw-r--r-- | layouts/list.html | 4 | ||||
| -rw-r--r-- | layouts/page.html | 6 | ||||
| -rw-r--r-- | layouts/resume/page.html | 2 | ||||
| -rw-r--r-- | layouts/taxonomy.html | 34 | ||||
| -rw-r--r-- | layouts/term.html | 8 | ||||
| m--------- | themes/aoidh | 0 |
17 files changed, 198 insertions, 192 deletions
@@ -1,7 +1,11 @@ -MODS = themes/aoidh static/resume +MODS = $(shell git submodule | awk '{print $$2}') -build: ${MODS} static/resume.png +build: fmt ${MODS} static/resume.png hugo build + find public -name '*.html' -exec tidy -mqi {} \; + +fmt: + gotmplfmt -w . publish: build rsync -rz --delete public/ samanthony.xyz:/var/www/htdocs/samanthony.xyz/ @@ -20,3 +24,5 @@ static/resume.png: static/resume.pdf ${MODS}: git submodule update --init --recursive + +.PHONY: build fmt publish serve clean diff --git a/content/_index.html b/content/_index.html index 42cd5b9..222b7ce 100644 --- a/content/_index.html +++ b/content/_index.html @@ -5,96 +5,96 @@ draft: false --- <blockquote> - <code> - /* _nop() has been deprecated; use __nop() */<br> - #define _nop() __nop() - </code> - <cite>—excerpt from <a href="https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8"><span class="mono">pic.h</span></a></cite> + <code> + /* _nop() has been deprecated; use __nop() */<br> + #define _nop() __nop() + </code> + <cite>—excerpt from <a href="https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8"><span class="mono">pic.h</span></a></cite> </blockquote> <h1 id="about">About</h1> <table> - <thead> - <tr> - <th>Personal information</th> - <th></th> - </tr> - </thead> - <tbody> - <tr> - <td>Name</td> - <td>Sam Anthony</td> - </tr> - <tr> - <td>Occupation</td> - <td>Computer programmer</td> - </tr> - <tr> - <td>Education</td> - <td> - BCompSc, - <a href="https://www.concordia.ca/">Concordia University</a>.<br> - All credits obtained; graduating June 2026. - </td> - </tr> - <tr> - <td>Previous employers</td> - <td> - <a href="https://c-core.ca/">C-CORE</a> - <br> - <a href="https://wheeltec.ca/">WheelTec</a> - </td> - </tr> - </tbody> + <thead> + <tr> + <th>Personal information</th> + <th></th> + </tr> + </thead> + <tbody> + <tr> + <td>Name</td> + <td>Sam Anthony</td> + </tr> + <tr> + <td>Occupation</td> + <td>Computer programmer</td> + </tr> + <tr> + <td>Education</td> + <td> + BCompSc, + <a href="https://www.concordia.ca/">Concordia University</a>.<br> + All credits obtained; graduating June 2026. + </td> + </tr> + <tr> + <td>Previous employers</td> + <td> + <a href="https://c-core.ca/">C-CORE</a> + <br> + <a href="https://wheeltec.ca/">WheelTec</a> + </td> + </tr> + </tbody> </table> <table> - <thead> - <tr> - <th>Contact</th> - <th></th> - </tr> - </thead> - <tbody> - <tr> - <td>Email</td> - <td><a href="mailto:sam@samanthony.xyz">sam@samanthony.xyz</a></td> - </tr> - <tr> - <td>Phone</td> - <td>+1 (709) 746–7582</td> - </tr> - <tr> - <td>GitHub</td> - <td><a href="https://github.com/sam-rba">sam-rba</a></td> - </tr> - <tr> - <td>LinkedIn</td> - <td><a href="https://www.linkedin.com/in/sam-anthony-4746252b5">sam-anthony-4746252b5</a></td> - </tr> - </tbody> + <thead> + <tr> + <th>Contact</th> + <th></th> + </tr> + </thead> + <tbody> + <tr> + <td>Email</td> + <td><a href="mailto:sam@samanthony.xyz">sam@samanthony.xyz</a></td> + </tr> + <tr> + <td>Phone</td> + <td>+1 (709) 746–7582</td> + </tr> + <tr> + <td>GitHub</td> + <td><a href="https://github.com/sam-rba">sam-rba</a></td> + </tr> + <tr> + <td>LinkedIn</td> + <td><a href="https://www.linkedin.com/in/sam-anthony-4746252b5">sam-anthony-4746252b5</a></td> + </tr> + </tbody> </table> <h1 id="design-philosophy">Design philosophy</h1> <table> - <tr><td><a href="https://www.cs.princeton.edu/~bwk/tpop.webpage/">Simplicity, clarity, generality.</a></td></tr> - <tr><td><a href="https://suckless.org/philosophy/">Frugality</a>. <a href="https://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html">Less is more</a>.</td></tr> - <tr><td><a href="https://archive.org/details/MythicalManMonth/page/n53/mode/2up">Consistency, coherence, conceptual integrity.</a></td></tr> - <tr><td><a href="https://usgraphics.com/">Timelessness. Ignore design trends.</a></td></tr> - <tr><td>Transparency. Don't hide the innards; make them beautiful.</td></tr> - <tr><td>Respect the user, don't infantilize them.</td></tr> - <tr><td>Readability. Code is documentation (but not a substitute for it).</td></tr> - <tr><td><a href="https://archive.org/details/MythicalManMonth/page/n153/mode/2up">Design top-down, build and test bottom-up.</a></td></tr> - <tr><td>Reliability. Consummate design and rigorous testing.</td></tr> - <tr><td>Performance and <a href="https://archive.org/details/MythicalManMonth/page/n109/mode/2up">minimal memory footprint</a>.</td></tr> - <tr><td>Maintainability. Programs outlive people and computers.</td></tr> - <tr><td>Incremental development. Software is <a href="https://www.cs.dartmouth.edu/~cs50/Reading/NoSilverBullet.pdf">grown</a>, not built.</td></tr> + <tr><td><a href="https://www.cs.princeton.edu/~bwk/tpop.webpage/">Simplicity, clarity, generality.</a></td></tr> + <tr><td><a href="https://suckless.org/philosophy/">Frugality</a>. <a href="https://commandcenter.blogspot.com/2012/06/less-is-exponentially-more.html">Less is more</a>.</td></tr> + <tr><td><a href="https://archive.org/details/MythicalManMonth/page/n53/mode/2up">Consistency, coherence, conceptual integrity.</a></td></tr> + <tr><td><a href="https://usgraphics.com/">Timelessness. Ignore design trends.</a></td></tr> + <tr><td>Transparency. Don't hide the innards; make them beautiful.</td></tr> + <tr><td>Respect the user, don't infantilize them.</td></tr> + <tr><td>Readability. Code is documentation (but not a substitute for it).</td></tr> + <tr><td><a href="https://archive.org/details/MythicalManMonth/page/n153/mode/2up">Design top-down, build and test bottom-up.</a></td></tr> + <tr><td>Reliability. Consummate design and rigorous testing.</td></tr> + <tr><td>Performance and <a href="https://archive.org/details/MythicalManMonth/page/n109/mode/2up">minimal memory footprint</a>.</td></tr> + <tr><td>Maintainability. Programs outlive people and computers.</td></tr> + <tr><td>Incremental development. Software is <a href="https://www.cs.dartmouth.edu/~cs50/Reading/NoSilverBullet.pdf">grown</a>, not built.</td></tr> </table> <h1 id="biography">Biography</h1> <img style="width: 16rem;" src="img/headshot.jpg" alt="Headshot of Sam Anthony"> <p> - I'm a computer programmer from Newfoundland, Canada. - I was born in 2004. + I'm a computer programmer from Newfoundland, Canada. + I was born in 2004. </p> <blockquote> - To state my life .plan in a single sentence: “I want to write the best software I can.” There isn't even a close second place. - <cite>—John Carmack, <a href="https://raw.githubusercontent.com/ESWAT/john-carmack-plan-archive/refs/heads/master/by_day/johnc_plan_19970707.txt">1997</a></cite> + To state my life .plan in a single sentence: “I want to write the best software I can.” There isn't even a close second place. + <cite>—John Carmack, <a href="https://raw.githubusercontent.com/ESWAT/john-carmack-plan-archive/refs/heads/master/by_day/johnc_plan_19970707.txt">1997</a></cite> </blockquote> diff --git a/layouts/_partials/asset-table.html b/layouts/_partials/asset-table.html index df47501..2e236de 100644 --- a/layouts/_partials/asset-table.html +++ b/layouts/_partials/asset-table.html @@ -12,22 +12,22 @@ the modification times of files when the repository is cloned. */}} <table> - <thead> - <tr> - <th>Mod. date</th> - <th>File</th> - </tr> - </thead> - <tbody> - {{- range . }} - <tr> - <td> - {{- with resources.Get (printf "%s.moddate" .Name) -}} - {{- chomp .Content | time | dateFormat "2006-01-02" -}} - {{- end -}} - </td> - <td><a href="{{ .RelPermalink }}">{{ path.Base .Name }}</a></td> - </tr> - {{- end }} - </tbody> + <thead> + <tr> + <th>Mod. date</th> + <th>File</th> + </tr> + </thead> + <tbody> + {{- range . }} + <tr> + <td> + {{- with resources.Get (printf "%s.moddate" .Name) -}} + {{- chomp .Content | time | dateFormat "2006-01-02" -}} + {{- end -}} + </td> + <td><a href="{{ .RelPermalink }}">{{ path.Base .Name }}</a></td> + </tr> + {{- end }} + </tbody> </table> diff --git a/layouts/_partials/copyright.html b/layouts/_partials/copyright.html index 0fed830..5a26d6d 100644 --- a/layouts/_partials/copyright.html +++ b/layouts/_partials/copyright.html @@ -1,11 +1,11 @@ {{- $oldest := (index .Site.RegularPages.ByDate 0).Date.Year }} {{- $newest := (index .Site.Pages.ByLastmod.Reverse 0).Lastmod.Year }} {{- if gt $newest $oldest }} - Copyright {{ $oldest }}–{{ $newest }} + Copyright {{ $oldest }}–{{ $newest }} {{- else }} - Copyright {{ $newest }} + Copyright {{ $newest }} {{- end }} {{- with .Site.Params.author.name -}} - , {{ . }} + , {{ . }} {{- end -}} . diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html index 882c3f8..cd01a54 100644 --- a/layouts/_partials/footer.html +++ b/layouts/_partials/footer.html @@ -1,18 +1,18 @@ <hr> <p>{{ partial "copyright.html" . }}</p> <p> - Powered by - <a href="https://gohugo.io/">Hugo</a>, - <a href="https://www.openbsd.org/">OpenBSD</a>, and - <a href="https://freedns.afraid.org/">Free DNS</a>. + Powered by + <a href="https://gohugo.io/">Hugo</a>, + <a href="https://www.openbsd.org/">OpenBSD</a>, and + <a href="https://freedns.afraid.org/">Free DNS</a>. </p> <p> - {{- $repoUrl := .Site.Params.Repo.Url }} - {{- with .GitInfo }} - {{- $baseUrl := urls.JoinPath $repoUrl "/commit/" }} - {{- $commitUrl := printf "%s?id=%s" $baseUrl .Hash }} - Last modified {{ .CommitDate.Format "2006-01-02" }}: - <a href="{{ $commitUrl }}">{{ .AbbreviatedHash }}</a>. - {{- end }} - <a href="{{ $repoUrl }}">Source code →</a> + {{- $repoUrl := .Site.Params.Repo.Url }} + {{- with .GitInfo }} + {{- $baseUrl := urls.JoinPath $repoUrl "/commit/" }} + {{- $commitUrl := printf "%s?id=%s" $baseUrl .Hash }} + Last modified {{ .CommitDate.Format "2006-01-02" }}: + <a href="{{ $commitUrl }}">{{ .AbbreviatedHash }}</a>. + {{- end }} + <a href="{{ $repoUrl }}">Source code →</a> </p> diff --git a/layouts/_partials/pages.html b/layouts/_partials/pages.html index 6a7dc16..8ebdb58 100644 --- a/layouts/_partials/pages.html +++ b/layouts/_partials/pages.html @@ -7,20 +7,20 @@ Renders a table of pages. */}} <table> - <thead> - <tr> - <th>Date</th> - <th>Title</th> - <th><a href="{{ partial "taxonomy-url.html" (dict "taxonomy" "tags" "site" .Site) }}">Tags</a></th> - </tr> - </thead> - <tbody> - {{- range .Pages }} - <tr> - <td>{{ partial "date.html" .Date -}}</td> - <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> - <td>{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}</td> - </tr> - {{- end }} - </tbody> + <thead> + <tr> + <th>Date</th> + <th>Title</th> + <th><a href="{{ partial "taxonomy-url.html" (dict "taxonomy" "tags" "site" .Site) }}">Tags</a></th> + </tr> + </thead> + <tbody> + {{- range .Pages }} + <tr> + <td>{{ partial "date.html" .Date -}}</td> + <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> + <td>{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}</td> + </tr> + {{- end }} + </tbody> </table> diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html index afe3a14..e693236 100644 --- a/layouts/_partials/terms.html +++ b/layouts/_partials/terms.html @@ -11,8 +11,8 @@ For a given taxonomy, renders a comma-separated list of terms assigned to the pa {{- $page := .page }} {{- with $page.GetTerms $taxonomy -}} - {{- range $index, $term := . -}} - {{- if $index }}, {{ end -}} - <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> - {{- end -}} + {{- range $index, $term := . -}} + {{- if $index }}, {{ end -}} + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + {{- end -}} {{- end -}} diff --git a/layouts/_shortcodes/asset-table.html b/layouts/_shortcodes/asset-table.html index 82849fd..88932d2 100644 --- a/layouts/_shortcodes/asset-table.html +++ b/layouts/_shortcodes/asset-table.html @@ -1,12 +1,12 @@ {{- $patterns := slice -}} {{- range split (.Get "patterns") "," }} - {{- $pattern := strings.TrimSpace . -}} - {{- $patterns = $patterns | append $pattern -}} + {{- $pattern := strings.TrimSpace . -}} + {{- $patterns = $patterns | append $pattern -}} {{- end -}} {{- $assets := slice -}} {{- range $patterns }} - {{- $assets = union $assets (resources.Match .) -}} + {{- $assets = union $assets (resources.Match .) -}} {{- end -}} {{ partial "asset-table.html" $assets }} diff --git a/layouts/articles/page.html b/layouts/articles/page.html index 6465f71..5fe8cf4 100644 --- a/layouts/articles/page.html +++ b/layouts/articles/page.html @@ -1,15 +1,15 @@ {{ define "main" }} - <h1 class="title">{{ .Title }}</h1> - <p> - {{- partial "date.html" .Date -}} - {{- if gt .Lastmod .Date -}} - — modified {{ partial "date.html" .Lastmod }} - {{- end -}} - <br> - {{- if .Page.GetTerms "tags" }} - Tags: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) -}}. - {{- end }} - </p> - <hr> - {{ .Content }} +<h1 class="title">{{ .Title }}</h1> +<p> + {{- partial "date.html" .Date -}} + {{- if gt .Lastmod .Date -}} + — modified {{ partial "date.html" .Lastmod }} + {{- end -}} + <br> + {{- if .Page.GetTerms "tags" }} + Tags: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) -}}. + {{- end }} +</p> +<hr> +{{ .Content }} {{ end }} diff --git a/layouts/baseof.html b/layouts/baseof.html index 4162138..536ff08 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,19 +1,19 @@ <!DOCTYPE html> <html lang="{{ site.Language.LanguageCode }}"> -<head> - {{ partial "head.html" . }} -</head> -<body> - <div id="content"> - <header> - {{ partial "header.html" . }} - </header> - <main> - {{ block "main" . }}{{ end }} - </main> - <footer> - {{ partial "footer.html" . }} - </footer> - </div> -</body> + <head> + {{ partial "head.html" . }} + </head> + <body> + <div id="content"> + <header> + {{ partial "header.html" . }} + </header> + <main> + {{ block "main" . }}{{ end }} + </main> + <footer> + {{ partial "footer.html" . }} + </footer> + </div> + </body> </html> diff --git a/layouts/home.html b/layouts/home.html index e0e8308..9983b08 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,3 +1,3 @@ {{ define "main" }} - {{ .Content }} +{{ .Content }} {{ end }} diff --git a/layouts/list.html b/layouts/list.html index 43c0bc4..0db2c2b 100644 --- a/layouts/list.html +++ b/layouts/list.html @@ -1,4 +1,4 @@ {{ define "main" }} - <h1 class="title">{{ .Title }}</h1> - {{ partial "pages.html" . }} +<h1 class="title">{{ .Title }}</h1> +{{ partial "pages.html" . }} {{ end }} diff --git a/layouts/page.html b/layouts/page.html index bac8b18..b99efb2 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,5 +1,5 @@ {{ define "main" }} - <h1 class="title">{{ .Title }}</h1> - {{ .Content }} - {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +<h1 class="title">{{ .Title }}</h1> +{{ .Content }} +{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ end }} diff --git a/layouts/resume/page.html b/layouts/resume/page.html index e0e8308..9983b08 100644 --- a/layouts/resume/page.html +++ b/layouts/resume/page.html @@ -1,3 +1,3 @@ {{ define "main" }} - {{ .Content }} +{{ .Content }} {{ end }} diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html index ef791e8..61810d2 100644 --- a/layouts/taxonomy.html +++ b/layouts/taxonomy.html @@ -1,19 +1,19 @@ {{ define "main" }} - {{- $taxonomy := .Data -}} - <h1 class="title">{{ .Title }}</h1> - {{ .Content }} - <table> - <thead><tr> - <th>{{ $taxonomy.Singular | humanize }}</th> - <th>Pages</th> - </thead> - <tbody> - {{- range $taxonomy.Terms.ByCount }} - <tr> - <td><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></td> - <td>{{ .Count }}</td> - </tr> - {{- end }} - </tbody> - </table> +{{- $taxonomy := .Data -}} +<h1 class="title">{{ .Title }}</h1> +{{ .Content }} +<table> + <thead><tr> + <th>{{ $taxonomy.Singular | humanize }}</th> + <th>Pages</th> + </thead> + <tbody> + {{- range $taxonomy.Terms.ByCount }} + <tr> + <td><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></td> + <td>{{ .Count }}</td> + </tr> + {{- end }} + </tbody> + </table> {{ end }} diff --git a/layouts/term.html b/layouts/term.html index 2a99edb..a44796a 100644 --- a/layouts/term.html +++ b/layouts/term.html @@ -1,6 +1,6 @@ {{ define "main" }} - {{- $term := .Data -}} - <h1 class="title">Pages with {{ $term.Singular | humanize }} ‘{{ .Title }}’</h1> - {{ .Content }} - {{- partial "pages.html" . -}} +{{- $term := .Data -}} +<h1 class="title">Pages with {{ $term.Singular | humanize }} ‘{{ .Title }}’</h1> +{{ .Content }} +{{- partial "pages.html" . -}} {{ end }} diff --git a/themes/aoidh b/themes/aoidh -Subproject 66869b2b094321039ea77293809a9a7eaa858b0 +Subproject ad37bcfc2310d2af386fb3b41fcfbf4852fc2a9 |