From 544ced362819ae9bd2abd9c12480f76945b368aa Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 24 Apr 2026 11:15:04 -0400 Subject: format html --- Makefile | 10 ++- content/_index.html | 154 +++++++++++++++++------------------ layouts/_partials/asset-table.html | 36 ++++---- layouts/_partials/copyright.html | 6 +- layouts/_partials/footer.html | 24 +++--- layouts/_partials/pages.html | 32 ++++---- layouts/_partials/terms.html | 8 +- layouts/_shortcodes/asset-table.html | 6 +- layouts/articles/page.html | 26 +++--- layouts/baseof.html | 32 ++++---- layouts/home.html | 2 +- layouts/list.html | 4 +- layouts/page.html | 6 +- layouts/resume/page.html | 2 +- layouts/taxonomy.html | 34 ++++---- layouts/term.html | 8 +- themes/aoidh | 2 +- 17 files changed, 199 insertions(+), 193 deletions(-) diff --git a/Makefile b/Makefile index 1f2850c..b4f36a2 100644 --- a/Makefile +++ b/Makefile @@ -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 ---
- - /* _nop() has been deprecated; use __nop() */
- #define _nop() __nop() -
- —excerpt from pic.h + + /* _nop() has been deprecated; use __nop() */
+ #define _nop() __nop() +
+ —excerpt from pic.h

About

- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
Personal information
NameSam Anthony
OccupationComputer programmer
Education - BCompSc, - Concordia University.
- All credits obtained; graduating June 2026. -
Previous employers - C-CORE -
- WheelTec -
Personal information
NameSam Anthony
OccupationComputer programmer
Education + BCompSc, + Concordia University.
+ All credits obtained; graduating June 2026. +
Previous employers + C-CORE +
+ WheelTec +
- - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
Contact
Emailsam@samanthony.xyz
Phone+1 (709) 746–7582
GitHubsam-rba
LinkedInsam-anthony-4746252b5
Contact
Emailsam@samanthony.xyz
Phone+1 (709) 746–7582
GitHubsam-rba
LinkedInsam-anthony-4746252b5

Design philosophy

- - - - - - - - - - - - + + + + + + + + + + + +
Simplicity, clarity, generality.
Frugality. Less is more.
Consistency, coherence, conceptual integrity.
Timelessness. Ignore design trends.
Transparency. Don't hide the innards; make them beautiful.
Respect the user, don't infantilize them.
Readability. Code is documentation (but not a substitute for it).
Design top-down, build and test bottom-up.
Reliability. Consummate design and rigorous testing.
Performance and minimal memory footprint.
Maintainability. Programs outlive people and computers.
Incremental development. Software is grown, not built.
Simplicity, clarity, generality.
Frugality. Less is more.
Consistency, coherence, conceptual integrity.
Timelessness. Ignore design trends.
Transparency. Don't hide the innards; make them beautiful.
Respect the user, don't infantilize them.
Readability. Code is documentation (but not a substitute for it).
Design top-down, build and test bottom-up.
Reliability. Consummate design and rigorous testing.
Performance and minimal memory footprint.
Maintainability. Programs outlive people and computers.
Incremental development. Software is grown, not built.

Biography

Headshot of Sam Anthony

- 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.

- 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. - —John Carmack, 1997 + 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. + —John Carmack, 1997
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. */}} - - - - - - - - {{- range . }} - - - - - {{- end }} - + + + + + + + + {{- range . }} + + + + + {{- end }} +
Mod. dateFile
- {{- with resources.Get (printf "%s.moddate" .Name) -}} - {{- chomp .Content | time | dateFormat "2006-01-02" -}} - {{- end -}} - {{ path.Base .Name }}
Mod. dateFile
+ {{- with resources.Get (printf "%s.moddate" .Name) -}} + {{- chomp .Content | time | dateFormat "2006-01-02" -}} + {{- end -}} + {{ path.Base .Name }}
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 @@

{{ partial "copyright.html" . }}

- Powered by - Hugo, - OpenBSD, and - Free DNS. + Powered by + Hugo, + OpenBSD, and + Free DNS.

- {{- $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" }}: - {{ .AbbreviatedHash }}. - {{- end }} - Source code → + {{- $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" }}: + {{ .AbbreviatedHash }}. + {{- end }} + Source code →

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. */}} - - - - - - - - - {{- range .Pages }} - - - - - - {{- end }} - + + + + + + + + + {{- range .Pages }} + + + + + + {{- end }} +
DateTitleTags
{{ partial "date.html" .Date -}}{{ .LinkTitle }}{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
DateTitleTags
{{ partial "date.html" .Date -}}{{ .LinkTitle }}{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
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 -}} - {{ .LinkTitle }} - {{- end -}} + {{- range $index, $term := . -}} + {{- if $index }}, {{ end -}} + {{ .LinkTitle }} + {{- 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" }} -

{{ .Title }}

-

- {{- partial "date.html" .Date -}} - {{- if gt .Lastmod .Date -}} - — modified {{ partial "date.html" .Lastmod }} - {{- end -}} -
- {{- if .Page.GetTerms "tags" }} - Tags: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) -}}. - {{- end }} -

-
- {{ .Content }} +

{{ .Title }}

+

+ {{- partial "date.html" .Date -}} + {{- if gt .Lastmod .Date -}} + — modified {{ partial "date.html" .Lastmod }} + {{- end -}} +
+ {{- if .Page.GetTerms "tags" }} + Tags: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) -}}. + {{- end }} +

+
+{{ .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 @@ - - {{ partial "head.html" . }} - - -
-
- {{ partial "header.html" . }} -
-
- {{ block "main" . }}{{ end }} -
-
- {{ partial "footer.html" . }} -
-
- + + {{ partial "head.html" . }} + + +
+
+ {{ partial "header.html" . }} +
+
+ {{ block "main" . }}{{ end }} +
+
+ {{ partial "footer.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" }} -

{{ .Title }}

- {{ partial "pages.html" . }} +

{{ .Title }}

+{{ 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" }} -

{{ .Title }}

- {{ .Content }} - {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +

{{ .Title }}

+{{ .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 -}} -

{{ .Title }}

- {{ .Content }} - - - - - - - {{- range $taxonomy.Terms.ByCount }} - - - - - {{- end }} - -
{{ $taxonomy.Singular | humanize }}Pages
{{ .Page.Title }}{{ .Count }}
+{{- $taxonomy := .Data -}} +

{{ .Title }}

+{{ .Content }} + + + + + + + {{- range $taxonomy.Terms.ByCount }} + + + + + {{- end }} + +
{{ $taxonomy.Singular | humanize }}Pages
{{ .Page.Title }}{{ .Count }}
{{ 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 -}} -

Pages with {{ $term.Singular | humanize }} ‘{{ .Title }}’

- {{ .Content }} - {{- partial "pages.html" . -}} +{{- $term := .Data -}} +

Pages with {{ $term.Singular | humanize }} ‘{{ .Title }}’

+{{ .Content }} +{{- partial "pages.html" . -}} {{ end }} diff --git a/themes/aoidh b/themes/aoidh index 66869b2..ad37bcf 160000 --- a/themes/aoidh +++ b/themes/aoidh @@ -1 +1 @@ -Subproject commit 66869b2b094321039ea77293809a9a7eaa858b04 +Subproject commit ad37bcfc2310d2af386fb3b41fcfbf4852fc2a9c -- cgit v1.2.3