From ad1bb9787eb2317571cd3d1bfcd5a8b22df4803f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 21 Dec 2025 21:34:02 -0330 Subject: init hugo --- .gitignore | 2 ++ archetypes/default.md | 5 +++ hugo.toml | 4 +++ themes/aoidh/archetypes/default.md | 5 +++ themes/aoidh/assets/css/main.css | 22 ++++++++++++ themes/aoidh/assets/js/main.js | 2 ++ themes/aoidh/hugo.toml | 24 +++++++++++++ themes/aoidh/layouts/_partials/footer.html | 1 + themes/aoidh/layouts/_partials/head.html | 5 +++ themes/aoidh/layouts/_partials/head/css.html | 9 +++++ themes/aoidh/layouts/_partials/head/js.html | 16 +++++++++ themes/aoidh/layouts/_partials/header.html | 2 ++ themes/aoidh/layouts/_partials/menu.html | 51 +++++++++++++++++++++++++++ themes/aoidh/layouts/_partials/terms.html | 23 ++++++++++++ themes/aoidh/layouts/baseof.html | 17 +++++++++ themes/aoidh/layouts/home.html | 7 ++++ themes/aoidh/layouts/page.html | 10 ++++++ themes/aoidh/layouts/section.html | 8 +++++ themes/aoidh/layouts/taxonomy.html | 7 ++++ themes/aoidh/layouts/term.html | 7 ++++ themes/aoidh/static/favicon.ico | Bin 0 -> 15406 bytes 21 files changed, 227 insertions(+) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 hugo.toml create mode 100644 themes/aoidh/archetypes/default.md create mode 100644 themes/aoidh/assets/css/main.css create mode 100644 themes/aoidh/assets/js/main.js create mode 100644 themes/aoidh/hugo.toml create mode 100644 themes/aoidh/layouts/_partials/footer.html create mode 100644 themes/aoidh/layouts/_partials/head.html create mode 100644 themes/aoidh/layouts/_partials/head/css.html create mode 100644 themes/aoidh/layouts/_partials/head/js.html create mode 100644 themes/aoidh/layouts/_partials/header.html create mode 100644 themes/aoidh/layouts/_partials/menu.html create mode 100644 themes/aoidh/layouts/_partials/terms.html create mode 100644 themes/aoidh/layouts/baseof.html create mode 100644 themes/aoidh/layouts/home.html create mode 100644 themes/aoidh/layouts/page.html create mode 100644 themes/aoidh/layouts/section.html create mode 100644 themes/aoidh/layouts/taxonomy.html create mode 100644 themes/aoidh/layouts/term.html create mode 100644 themes/aoidh/static/favicon.ico diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4b387a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.hugo_build.lock +public/ diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..8327460 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,4 @@ +baseURL = 'https://www.samanthony.xyz/' +languageCode = 'en-us' +title = "Sam Anthony's Webpage" +theme = 'aoidh' diff --git a/themes/aoidh/archetypes/default.md b/themes/aoidh/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/themes/aoidh/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/themes/aoidh/assets/css/main.css b/themes/aoidh/assets/css/main.css new file mode 100644 index 0000000..166ade9 --- /dev/null +++ b/themes/aoidh/assets/css/main.css @@ -0,0 +1,22 @@ +body { + color: #222; + font-family: sans-serif; + line-height: 1.5; + margin: 1rem; + max-width: 768px; +} + +header { + border-bottom: 1px solid #222; + margin-bottom: 1rem; +} + +footer { + border-top: 1px solid #222; + margin-top: 1rem; +} + +a { + color: #00e; + text-decoration: none; +} diff --git a/themes/aoidh/assets/js/main.js b/themes/aoidh/assets/js/main.js new file mode 100644 index 0000000..1756afc --- /dev/null +++ b/themes/aoidh/assets/js/main.js @@ -0,0 +1,2 @@ +console.log('This site was generated by Hugo.'); +console.log('Theme: Aoidh'); diff --git a/themes/aoidh/hugo.toml b/themes/aoidh/hugo.toml new file mode 100644 index 0000000..5c26950 --- /dev/null +++ b/themes/aoidh/hugo.toml @@ -0,0 +1,24 @@ +baseURL = 'https://example.org/' +languageCode = 'en-US' +title = 'My New Hugo Site' + +[menus] + [[menus.main]] + name = 'Home' + pageRef = '/' + weight = 10 + + [[menus.main]] + name = 'Posts' + pageRef = '/posts' + weight = 20 + + [[menus.main]] + name = 'Tags' + pageRef = '/tags' + weight = 30 + +[module] + [module.hugoVersion] + extended = false + min = '0.146.0' diff --git a/themes/aoidh/layouts/_partials/footer.html b/themes/aoidh/layouts/_partials/footer.html new file mode 100644 index 0000000..a7cd916 --- /dev/null +++ b/themes/aoidh/layouts/_partials/footer.html @@ -0,0 +1 @@ +

Copyright {{ now.Year }}. All rights reserved.

diff --git a/themes/aoidh/layouts/_partials/head.html b/themes/aoidh/layouts/_partials/head.html new file mode 100644 index 0000000..02c2240 --- /dev/null +++ b/themes/aoidh/layouts/_partials/head.html @@ -0,0 +1,5 @@ + + +{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} +{{ partialCached "head/css.html" . }} +{{ partialCached "head/js.html" . }} diff --git a/themes/aoidh/layouts/_partials/head/css.html b/themes/aoidh/layouts/_partials/head/css.html new file mode 100644 index 0000000..d76d23a --- /dev/null +++ b/themes/aoidh/layouts/_partials/head/css.html @@ -0,0 +1,9 @@ +{{- with resources.Get "css/main.css" }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} diff --git a/themes/aoidh/layouts/_partials/head/js.html b/themes/aoidh/layouts/_partials/head/js.html new file mode 100644 index 0000000..16ffbed --- /dev/null +++ b/themes/aoidh/layouts/_partials/head/js.html @@ -0,0 +1,16 @@ +{{- with resources.Get "js/main.js" }} + {{- $opts := dict + "minify" (not hugo.IsDevelopment) + "sourceMap" (cond hugo.IsDevelopment "external" "") + "targetPath" "js/main.js" + }} + {{- with . | js.Build $opts }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | fingerprint }} + + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/themes/aoidh/layouts/_partials/header.html b/themes/aoidh/layouts/_partials/header.html new file mode 100644 index 0000000..7980a00 --- /dev/null +++ b/themes/aoidh/layouts/_partials/header.html @@ -0,0 +1,2 @@ +

{{ site.Title }}

+{{ partial "menu.html" (dict "menuID" "main" "page" .) }} diff --git a/themes/aoidh/layouts/_partials/menu.html b/themes/aoidh/layouts/_partials/menu.html new file mode 100644 index 0000000..14245b5 --- /dev/null +++ b/themes/aoidh/layouts/_partials/menu.html @@ -0,0 +1,51 @@ +{{- /* +Renders a menu for the given menu ID. + +@context {page} page The current page. +@context {string} menuID The menu ID. + +@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }} +*/}} + +{{- $page := .page }} +{{- $menuID := .menuID }} + +{{- with index site.Menus $menuID }} + +{{- end }} + +{{- define "_partials/inline/menu/walk.html" }} + {{- $page := .page }} + {{- range .menuEntries }} + {{- $attrs := dict "href" .URL }} + {{- if $page.IsMenuCurrent .Menu . }} + {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} + {{- else if $page.HasMenuCurrent .Menu .}} + {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} + {{- end }} + {{- $name := .Name }} + {{- with .Identifier }} + {{- with T . }} + {{- $name = . }} + {{- end }} + {{- end }} +
  • + {{ $name }} + {{- with .Children }} + + {{- end }} +
  • + {{- end }} +{{- end }} diff --git a/themes/aoidh/layouts/_partials/terms.html b/themes/aoidh/layouts/_partials/terms.html new file mode 100644 index 0000000..8a6ebec --- /dev/null +++ b/themes/aoidh/layouts/_partials/terms.html @@ -0,0 +1,23 @@ +{{- /* +For a given taxonomy, renders a list of terms assigned to the page. + +@context {page} page The current page. +@context {string} taxonomy The taxonomy. + +@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +*/}} + +{{- $page := .page }} +{{- $taxonomy := .taxonomy }} + +{{- with $page.GetTerms $taxonomy }} + {{- $label := (index . 0).Parent.LinkTitle }} +
    +
    {{ $label }}:
    + +
    +{{- end }} diff --git a/themes/aoidh/layouts/baseof.html b/themes/aoidh/layouts/baseof.html new file mode 100644 index 0000000..39dcbec --- /dev/null +++ b/themes/aoidh/layouts/baseof.html @@ -0,0 +1,17 @@ + + + + {{ partial "head.html" . }} + + +
    + {{ partial "header.html" . }} +
    +
    + {{ block "main" . }}{{ end }} +
    + + + diff --git a/themes/aoidh/layouts/home.html b/themes/aoidh/layouts/home.html new file mode 100644 index 0000000..0df6597 --- /dev/null +++ b/themes/aoidh/layouts/home.html @@ -0,0 +1,7 @@ +{{ define "main" }} + {{ .Content }} + {{ range site.RegularPages }} +

    {{ .LinkTitle }}

    + {{ .Summary }} + {{ end }} +{{ end }} diff --git a/themes/aoidh/layouts/page.html b/themes/aoidh/layouts/page.html new file mode 100644 index 0000000..7e286c8 --- /dev/null +++ b/themes/aoidh/layouts/page.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

    {{ .Title }}

    + + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + + + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +{{ end }} diff --git a/themes/aoidh/layouts/section.html b/themes/aoidh/layouts/section.html new file mode 100644 index 0000000..50fc92d --- /dev/null +++ b/themes/aoidh/layouts/section.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

    {{ .Title }}

    + {{ .Content }} + {{ range .Pages }} +

    {{ .LinkTitle }}

    + {{ .Summary }} + {{ end }} +{{ end }} diff --git a/themes/aoidh/layouts/taxonomy.html b/themes/aoidh/layouts/taxonomy.html new file mode 100644 index 0000000..c2e7875 --- /dev/null +++ b/themes/aoidh/layouts/taxonomy.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

    {{ .Title }}

    + {{ .Content }} + {{ range .Pages }} +

    {{ .LinkTitle }}

    + {{ end }} +{{ end }} diff --git a/themes/aoidh/layouts/term.html b/themes/aoidh/layouts/term.html new file mode 100644 index 0000000..c2e7875 --- /dev/null +++ b/themes/aoidh/layouts/term.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

    {{ .Title }}

    + {{ .Content }} + {{ range .Pages }} +

    {{ .LinkTitle }}

    + {{ end }} +{{ end }} diff --git a/themes/aoidh/static/favicon.ico b/themes/aoidh/static/favicon.ico new file mode 100644 index 0000000..67f8b77 Binary files /dev/null and b/themes/aoidh/static/favicon.ico differ -- cgit v1.2.3 From 536494b1e9bd5eda363837faacbed0ad46bfc5ae Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 13:47:44 -0330 Subject: theme: css and nav --- hugo.toml | 2 + themes/aoidh/assets/css/aoidh.css | 87 ++++++++++++++++++++++++++++ themes/aoidh/assets/css/main.css | 22 ------- themes/aoidh/layouts/_partials/head/css.html | 10 +--- themes/aoidh/layouts/_partials/menu.html | 25 +++----- themes/aoidh/layouts/baseof.html | 1 + 6 files changed, 99 insertions(+), 48 deletions(-) create mode 100644 themes/aoidh/assets/css/aoidh.css delete mode 100644 themes/aoidh/assets/css/main.css diff --git a/hugo.toml b/hugo.toml index 8327460..5ed3998 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,3 +2,5 @@ baseURL = 'https://www.samanthony.xyz/' languageCode = 'en-us' title = "Sam Anthony's Webpage" theme = 'aoidh' +[params] + author = "Sam Anthony" diff --git a/themes/aoidh/assets/css/aoidh.css b/themes/aoidh/assets/css/aoidh.css new file mode 100644 index 0000000..5307ee0 --- /dev/null +++ b/themes/aoidh/assets/css/aoidh.css @@ -0,0 +1,87 @@ +:root { + --paper-color: #ffffea; + --dark-yellow: #99994c; + --light-blue: #eaffff; + --dark-blue: #8888cc; + --light-gray: #eee; + --dark-gray: #888; +} + +html { + background: var(--light-gray); +} + +body { + display: block; + float: none; + margin-left: auto; + margin-right: auto; + line-height: 1.5rem; + max-width: 60rem; + margin-top: 2rem; + margin-bottom: 2rem; + padding: .5rem 1rem .25rem; + border: 1px solid var(--dark-gray); + box-shadow: 2px 2px var(--dark-yellow); +} + +body { + font-family: serif; + text-rendering: optimizeLegibility; + color: #000; + background: #fff; +} + +header { + margin-bottom: 2rem; +} + +nav { + display: block; +} + +nav ul { + display: flex; + list-style-type: none; +} + +nav a { + color: #000; + background: #fff; + padding: .2rem 1.5rem .2rem 1.5rem; + margin: .1rem 0 .1rem 1rem; + border: .1rem solid var(--dark-blue); + box-shadow: .1rem .1rem var(--dark-blue); +} + +nav li:first-child a { + margin-left: 0; +} + +nav a:hover, nav a:focus { + color: #000; + background: var(--light-blue); +} + +nav a:active { + color: #000; + background: #fff; + box-shadow: 0 0; +} + +ul { + padding: 0; +} + +p { + text-align: justify; + max-width: 40rem; +} + +a { + text-decoration: none; +} + +p a { + text-decoration: underline; +} diff --git a/themes/aoidh/assets/css/main.css b/themes/aoidh/assets/css/main.css deleted file mode 100644 index 166ade9..0000000 --- a/themes/aoidh/assets/css/main.css +++ /dev/null @@ -1,22 +0,0 @@ -body { - color: #222; - font-family: sans-serif; - line-height: 1.5; - margin: 1rem; - max-width: 768px; -} - -header { - border-bottom: 1px solid #222; - margin-bottom: 1rem; -} - -footer { - border-top: 1px solid #222; - margin-top: 1rem; -} - -a { - color: #00e; - text-decoration: none; -} diff --git a/themes/aoidh/layouts/_partials/head/css.html b/themes/aoidh/layouts/_partials/head/css.html index d76d23a..dec8013 100644 --- a/themes/aoidh/layouts/_partials/head/css.html +++ b/themes/aoidh/layouts/_partials/head/css.html @@ -1,9 +1,3 @@ -{{- with resources.Get "css/main.css" }} - {{- if hugo.IsDevelopment }} - - {{- else }} - {{- with . | minify | fingerprint }} - - {{- end }} - {{- end }} +{{- with resources.Get "css/aoidh.css" }} + {{- end }} diff --git a/themes/aoidh/layouts/_partials/menu.html b/themes/aoidh/layouts/_partials/menu.html index 14245b5..485fe0b 100644 --- a/themes/aoidh/layouts/_partials/menu.html +++ b/themes/aoidh/layouts/_partials/menu.html @@ -21,26 +21,15 @@ Renders a menu for the given menu ID. {{- define "_partials/inline/menu/walk.html" }} {{- $page := .page }} {{- range .menuEntries }} - {{- $attrs := dict "href" .URL }} - {{- if $page.IsMenuCurrent .Menu . }} - {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} - {{- else if $page.HasMenuCurrent .Menu .}} - {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} - {{- end }} - {{- $name := .Name }} - {{- with .Identifier }} - {{- with T . }} - {{- $name = . }} - {{- end }} - {{- end }}
  • {{ $name }} + {{ if $page.IsMenuCurrent .Menu . }} + class="nav-active" + {{ else if $page.HasMenuCurrent .Menu . }} + class="nav-ancestor" + {{ end }} + {{ printf "href=%q" .URL | safeHTMLAttr }} + >{{ .Name }} {{- with .Children }}
      {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }} diff --git a/themes/aoidh/layouts/baseof.html b/themes/aoidh/layouts/baseof.html index 39dcbec..1b58fdc 100644 --- a/themes/aoidh/layouts/baseof.html +++ b/themes/aoidh/layouts/baseof.html @@ -10,6 +10,7 @@
      {{ block "main" . }}{{ end }}
      +
      {{ partial "footer.html" . }}
      -- cgit v1.2.3 From 723c98c1d7ae8d74840c5fa30bd2e38256e17332 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:30:56 -0330 Subject: styling --- themes/aoidh/assets/css/aoidh.css | 46 +++++++++++++++++++++------------------ themes/aoidh/layouts/baseof.html | 22 ++++++++++--------- 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/themes/aoidh/assets/css/aoidh.css b/themes/aoidh/assets/css/aoidh.css index 5307ee0..0b787b7 100644 --- a/themes/aoidh/assets/css/aoidh.css +++ b/themes/aoidh/assets/css/aoidh.css @@ -12,32 +12,29 @@ html { } body { - display: block; - float: none; - margin-left: auto; - margin-right: auto; - line-height: 1.5rem; - max-width: 60rem; - margin-top: 2rem; - margin-bottom: 2rem; + margin: 2rem auto; padding: .5rem 1rem .25rem; - border: 1px solid var(--dark-gray); + max-width: 60rem; + border: 1px solid var(--dark-yellow); box-shadow: 2px 2px var(--dark-yellow); } body { + line-height: 1.35rem; font-family: serif; text-rendering: optimizeLegibility; color: #000; background: #fff; } -header { - margin-bottom: 2rem; +.content { + margin-left: auto; + margin-right: auto; + max-width: 40rem; } -nav { - display: block; +header { + margin-bottom: 2rem; } nav ul { @@ -46,6 +43,7 @@ nav ul { } nav a { + text-decoration: none; color: #000; background: #fff; padding: .2rem 1.5rem .2rem 1.5rem; @@ -58,11 +56,6 @@ nav li:first-child a { margin-left: 0; } -nav a:hover, nav a:focus { - color: #000; - background: var(--light-blue); -} - nav a:active { color: #000; background: #fff; @@ -75,13 +68,24 @@ ul { p { text-align: justify; - max-width: 40rem; + hyphens: auto; + text-justify: inter-word; } a { + text-decoration: underline; + border: 1px solid transparent; +} + +a:hover, nav a:focus { text-decoration: none; + color: #000; + background: var(--light-blue); } -p a { - text-decoration: underline; +a:active { + text-decoration: none; + color: #000; + background: var(--light-blue); + border: 1px solid var(--dark-blue); } diff --git a/themes/aoidh/layouts/baseof.html b/themes/aoidh/layouts/baseof.html index 1b58fdc..dd61d01 100644 --- a/themes/aoidh/layouts/baseof.html +++ b/themes/aoidh/layouts/baseof.html @@ -4,15 +4,17 @@ {{ partial "head.html" . }} -
      - {{ partial "header.html" . }} -
      -
      - {{ block "main" . }}{{ end }} -
      -
      -
      - {{ partial "footer.html" . }} -
      +
      +
      + {{ partial "header.html" . }} +
      +
      + {{ block "main" . }}{{ end }} +
      +
      +
      + {{ partial "footer.html" . }} +
      +
      -- cgit v1.2.3 From 55ed353216554d6327984fa8f1cf707b70e06ac1 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:34:08 -0330 Subject: move layout from theme to site --- layouts/baseof.html | 20 ++++++++++++++++++++ layouts/home.html | 7 +++++++ layouts/page.html | 10 ++++++++++ layouts/section.html | 8 ++++++++ layouts/taxonomy.html | 7 +++++++ layouts/term.html | 7 +++++++ themes/aoidh/layouts/baseof.html | 20 -------------------- themes/aoidh/layouts/home.html | 7 ------- themes/aoidh/layouts/page.html | 10 ---------- themes/aoidh/layouts/section.html | 8 -------- themes/aoidh/layouts/taxonomy.html | 7 ------- themes/aoidh/layouts/term.html | 7 ------- 12 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 layouts/baseof.html create mode 100644 layouts/home.html create mode 100644 layouts/page.html create mode 100644 layouts/section.html create mode 100644 layouts/taxonomy.html create mode 100644 layouts/term.html delete mode 100644 themes/aoidh/layouts/baseof.html delete mode 100644 themes/aoidh/layouts/home.html delete mode 100644 themes/aoidh/layouts/page.html delete mode 100644 themes/aoidh/layouts/section.html delete mode 100644 themes/aoidh/layouts/taxonomy.html delete mode 100644 themes/aoidh/layouts/term.html diff --git a/layouts/baseof.html b/layouts/baseof.html new file mode 100644 index 0000000..dd61d01 --- /dev/null +++ b/layouts/baseof.html @@ -0,0 +1,20 @@ + + + + {{ partial "head.html" . }} + + +
      +
      + {{ partial "header.html" . }} +
      +
      + {{ block "main" . }}{{ end }} +
      +
      +
      + {{ partial "footer.html" . }} +
      +
      + + diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..0df6597 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,7 @@ +{{ define "main" }} + {{ .Content }} + {{ range site.RegularPages }} +

      {{ .LinkTitle }}

      + {{ .Summary }} + {{ end }} +{{ end }} diff --git a/layouts/page.html b/layouts/page.html new file mode 100644 index 0000000..7e286c8 --- /dev/null +++ b/layouts/page.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

      {{ .Title }}

      + + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + + + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +{{ end }} diff --git a/layouts/section.html b/layouts/section.html new file mode 100644 index 0000000..50fc92d --- /dev/null +++ b/layouts/section.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

      {{ .Title }}

      + {{ .Content }} + {{ range .Pages }} +

      {{ .LinkTitle }}

      + {{ .Summary }} + {{ end }} +{{ end }} diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html new file mode 100644 index 0000000..c2e7875 --- /dev/null +++ b/layouts/taxonomy.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

      {{ .Title }}

      + {{ .Content }} + {{ range .Pages }} +

      {{ .LinkTitle }}

      + {{ end }} +{{ end }} diff --git a/layouts/term.html b/layouts/term.html new file mode 100644 index 0000000..c2e7875 --- /dev/null +++ b/layouts/term.html @@ -0,0 +1,7 @@ +{{ define "main" }} +

      {{ .Title }}

      + {{ .Content }} + {{ range .Pages }} +

      {{ .LinkTitle }}

      + {{ end }} +{{ end }} diff --git a/themes/aoidh/layouts/baseof.html b/themes/aoidh/layouts/baseof.html deleted file mode 100644 index dd61d01..0000000 --- a/themes/aoidh/layouts/baseof.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - {{ partial "head.html" . }} - - -
      -
      - {{ partial "header.html" . }} -
      -
      - {{ block "main" . }}{{ end }} -
      -
      -
      - {{ partial "footer.html" . }} -
      -
      - - diff --git a/themes/aoidh/layouts/home.html b/themes/aoidh/layouts/home.html deleted file mode 100644 index 0df6597..0000000 --- a/themes/aoidh/layouts/home.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} - {{ .Content }} - {{ range site.RegularPages }} -

      {{ .LinkTitle }}

      - {{ .Summary }} - {{ end }} -{{ end }} diff --git a/themes/aoidh/layouts/page.html b/themes/aoidh/layouts/page.html deleted file mode 100644 index 7e286c8..0000000 --- a/themes/aoidh/layouts/page.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ define "main" }} -

      {{ .Title }}

      - - {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} - {{ $dateHuman := .Date | time.Format ":date_long" }} - - - {{ .Content }} - {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} -{{ end }} diff --git a/themes/aoidh/layouts/section.html b/themes/aoidh/layouts/section.html deleted file mode 100644 index 50fc92d..0000000 --- a/themes/aoidh/layouts/section.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ define "main" }} -

      {{ .Title }}

      - {{ .Content }} - {{ range .Pages }} -

      {{ .LinkTitle }}

      - {{ .Summary }} - {{ end }} -{{ end }} diff --git a/themes/aoidh/layouts/taxonomy.html b/themes/aoidh/layouts/taxonomy.html deleted file mode 100644 index c2e7875..0000000 --- a/themes/aoidh/layouts/taxonomy.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

      {{ .Title }}

      - {{ .Content }} - {{ range .Pages }} -

      {{ .LinkTitle }}

      - {{ end }} -{{ end }} diff --git a/themes/aoidh/layouts/term.html b/themes/aoidh/layouts/term.html deleted file mode 100644 index c2e7875..0000000 --- a/themes/aoidh/layouts/term.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "main" }} -

      {{ .Title }}

      - {{ .Content }} - {{ range .Pages }} -

      {{ .LinkTitle }}

      - {{ end }} -{{ end }} -- cgit v1.2.3 From 627cdfd418c6d55c4b8e130068aa34de23324c0d Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:37:46 -0330 Subject: theme: flatten partials and assets dirs --- themes/aoidh/assets/aoidh.css | 91 ++++++++++++++++++++++++++++ themes/aoidh/assets/css/aoidh.css | 91 ---------------------------- themes/aoidh/assets/js/main.js | 2 - themes/aoidh/layouts/_partials/head.html | 5 +- themes/aoidh/layouts/_partials/head/css.html | 3 - themes/aoidh/layouts/_partials/head/js.html | 16 ----- 6 files changed, 94 insertions(+), 114 deletions(-) create mode 100644 themes/aoidh/assets/aoidh.css delete mode 100644 themes/aoidh/assets/css/aoidh.css delete mode 100644 themes/aoidh/assets/js/main.js delete mode 100644 themes/aoidh/layouts/_partials/head/css.html delete mode 100644 themes/aoidh/layouts/_partials/head/js.html diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css new file mode 100644 index 0000000..0b787b7 --- /dev/null +++ b/themes/aoidh/assets/aoidh.css @@ -0,0 +1,91 @@ +:root { + --paper-color: #ffffea; + --dark-yellow: #99994c; + --light-blue: #eaffff; + --dark-blue: #8888cc; + --light-gray: #eee; + --dark-gray: #888; +} + +html { + background: var(--light-gray); +} + +body { + margin: 2rem auto; + padding: .5rem 1rem .25rem; + max-width: 60rem; + border: 1px solid var(--dark-yellow); + box-shadow: 2px 2px var(--dark-yellow); +} + +body { + line-height: 1.35rem; + font-family: serif; + text-rendering: optimizeLegibility; + color: #000; + background: #fff; +} + +.content { + margin-left: auto; + margin-right: auto; + max-width: 40rem; +} + +header { + margin-bottom: 2rem; +} + +nav ul { + display: flex; + list-style-type: none; +} + +nav a { + text-decoration: none; + color: #000; + background: #fff; + padding: .2rem 1.5rem .2rem 1.5rem; + margin: .1rem 0 .1rem 1rem; + border: .1rem solid var(--dark-blue); + box-shadow: .1rem .1rem var(--dark-blue); +} + +nav li:first-child a { + margin-left: 0; +} + +nav a:active { + color: #000; + background: #fff; + box-shadow: 0 0; +} + +ul { + padding: 0; +} + +p { + text-align: justify; + hyphens: auto; + text-justify: inter-word; +} + +a { + text-decoration: underline; + border: 1px solid transparent; +} + +a:hover, nav a:focus { + text-decoration: none; + color: #000; + background: var(--light-blue); +} + +a:active { + text-decoration: none; + color: #000; + background: var(--light-blue); + border: 1px solid var(--dark-blue); +} diff --git a/themes/aoidh/assets/css/aoidh.css b/themes/aoidh/assets/css/aoidh.css deleted file mode 100644 index 0b787b7..0000000 --- a/themes/aoidh/assets/css/aoidh.css +++ /dev/null @@ -1,91 +0,0 @@ -:root { - --paper-color: #ffffea; - --dark-yellow: #99994c; - --light-blue: #eaffff; - --dark-blue: #8888cc; - --light-gray: #eee; - --dark-gray: #888; -} - -html { - background: var(--light-gray); -} - -body { - margin: 2rem auto; - padding: .5rem 1rem .25rem; - max-width: 60rem; - border: 1px solid var(--dark-yellow); - box-shadow: 2px 2px var(--dark-yellow); -} - -body { - line-height: 1.35rem; - font-family: serif; - text-rendering: optimizeLegibility; - color: #000; - background: #fff; -} - -.content { - margin-left: auto; - margin-right: auto; - max-width: 40rem; -} - -header { - margin-bottom: 2rem; -} - -nav ul { - display: flex; - list-style-type: none; -} - -nav a { - text-decoration: none; - color: #000; - background: #fff; - padding: .2rem 1.5rem .2rem 1.5rem; - margin: .1rem 0 .1rem 1rem; - border: .1rem solid var(--dark-blue); - box-shadow: .1rem .1rem var(--dark-blue); -} - -nav li:first-child a { - margin-left: 0; -} - -nav a:active { - color: #000; - background: #fff; - box-shadow: 0 0; -} - -ul { - padding: 0; -} - -p { - text-align: justify; - hyphens: auto; - text-justify: inter-word; -} - -a { - text-decoration: underline; - border: 1px solid transparent; -} - -a:hover, nav a:focus { - text-decoration: none; - color: #000; - background: var(--light-blue); -} - -a:active { - text-decoration: none; - color: #000; - background: var(--light-blue); - border: 1px solid var(--dark-blue); -} diff --git a/themes/aoidh/assets/js/main.js b/themes/aoidh/assets/js/main.js deleted file mode 100644 index 1756afc..0000000 --- a/themes/aoidh/assets/js/main.js +++ /dev/null @@ -1,2 +0,0 @@ -console.log('This site was generated by Hugo.'); -console.log('Theme: Aoidh'); diff --git a/themes/aoidh/layouts/_partials/head.html b/themes/aoidh/layouts/_partials/head.html index 02c2240..c72c8c5 100644 --- a/themes/aoidh/layouts/_partials/head.html +++ b/themes/aoidh/layouts/_partials/head.html @@ -1,5 +1,6 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} -{{ partialCached "head/css.html" . }} -{{ partialCached "head/js.html" . }} +{{- with resources.Get "aoidh.css" }} + +{{- end }} diff --git a/themes/aoidh/layouts/_partials/head/css.html b/themes/aoidh/layouts/_partials/head/css.html deleted file mode 100644 index dec8013..0000000 --- a/themes/aoidh/layouts/_partials/head/css.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- with resources.Get "css/aoidh.css" }} - -{{- end }} diff --git a/themes/aoidh/layouts/_partials/head/js.html b/themes/aoidh/layouts/_partials/head/js.html deleted file mode 100644 index 16ffbed..0000000 --- a/themes/aoidh/layouts/_partials/head/js.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- with resources.Get "js/main.js" }} - {{- $opts := dict - "minify" (not hugo.IsDevelopment) - "sourceMap" (cond hugo.IsDevelopment "external" "") - "targetPath" "js/main.js" - }} - {{- with . | js.Build $opts }} - {{- if hugo.IsDevelopment }} - - {{- else }} - {{- with . | fingerprint }} - - {{- end }} - {{- end }} - {{- end }} -{{- end }} -- cgit v1.2.3 From 91fdb1440c99e4614e980d027c627dfc4a029230 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:47:57 -0330 Subject: move menu entries from theme config to site config --- hugo.toml | 16 +++++++++++++++- layouts/baseof.html | 2 +- themes/aoidh/hugo.toml | 20 -------------------- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/hugo.toml b/hugo.toml index 5ed3998..79b60a3 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,5 +2,19 @@ baseURL = 'https://www.samanthony.xyz/' languageCode = 'en-us' title = "Sam Anthony's Webpage" theme = 'aoidh' + [params] - author = "Sam Anthony" + author = "Sam Anthony" + +[menus] + [[menus.main]] + name = 'Home' + pageRef = '/' + + [[menus.main]] + name = 'Posts' + pageRef = '/posts' + + [[menus.main]] + name = 'Tags' + pageRef = '/tags' diff --git a/layouts/baseof.html b/layouts/baseof.html index dd61d01..6cdd0e6 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,5 +1,5 @@ - + {{ partial "head.html" . }} diff --git a/themes/aoidh/hugo.toml b/themes/aoidh/hugo.toml index 5c26950..1410ef9 100644 --- a/themes/aoidh/hugo.toml +++ b/themes/aoidh/hugo.toml @@ -1,23 +1,3 @@ -baseURL = 'https://example.org/' -languageCode = 'en-US' -title = 'My New Hugo Site' - -[menus] - [[menus.main]] - name = 'Home' - pageRef = '/' - weight = 10 - - [[menus.main]] - name = 'Posts' - pageRef = '/posts' - weight = 20 - - [[menus.main]] - name = 'Tags' - pageRef = '/tags' - weight = 30 - [module] [module.hugoVersion] extended = false -- cgit v1.2.3 From 9824081b8f79f086a20ce5fff941475b7a48adcf Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 16:51:20 -0330 Subject: theme: remove unused dirs --- themes/aoidh/archetypes/default.md | 5 ----- themes/aoidh/static/favicon.ico | Bin 15406 -> 0 bytes 2 files changed, 5 deletions(-) delete mode 100644 themes/aoidh/archetypes/default.md delete mode 100644 themes/aoidh/static/favicon.ico diff --git a/themes/aoidh/archetypes/default.md b/themes/aoidh/archetypes/default.md deleted file mode 100644 index 25b6752..0000000 --- a/themes/aoidh/archetypes/default.md +++ /dev/null @@ -1,5 +0,0 @@ -+++ -date = '{{ .Date }}' -draft = true -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -+++ diff --git a/themes/aoidh/static/favicon.ico b/themes/aoidh/static/favicon.ico deleted file mode 100644 index 67f8b77..0000000 Binary files a/themes/aoidh/static/favicon.ico and /dev/null differ -- cgit v1.2.3 From 8b44ae42e2b769872413e78e6ddfee93dbe1fcc2 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 17:00:16 -0330 Subject: theme: display copyright holder in footer --- hugo.toml | 4 +++- themes/aoidh/layouts/_partials/footer.html | 6 +++++- themes/aoidh/layouts/_partials/header.html | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hugo.toml b/hugo.toml index 79b60a3..41b8b33 100644 --- a/hugo.toml +++ b/hugo.toml @@ -4,7 +4,9 @@ title = "Sam Anthony's Webpage" theme = 'aoidh' [params] - author = "Sam Anthony" + [params.author] + name = "Sam Anthony" + email = "sam@samanthony.xyz" [menus] [[menus.main]] diff --git a/themes/aoidh/layouts/_partials/footer.html b/themes/aoidh/layouts/_partials/footer.html index a7cd916..316a707 100644 --- a/themes/aoidh/layouts/_partials/footer.html +++ b/themes/aoidh/layouts/_partials/footer.html @@ -1 +1,5 @@ -

      Copyright {{ now.Year }}. All rights reserved.

      +

      Copyright {{ now.Year }} +{{- if .Site.Params.author.name -}} + , {{ .Site.Params.author.name }} +{{- end -}} +. All rights reserved.

      diff --git a/themes/aoidh/layouts/_partials/header.html b/themes/aoidh/layouts/_partials/header.html index 7980a00..8995308 100644 --- a/themes/aoidh/layouts/_partials/header.html +++ b/themes/aoidh/layouts/_partials/header.html @@ -1,2 +1 @@ -

      {{ site.Title }}

      {{ partial "menu.html" (dict "menuID" "main" "page" .) }} -- cgit v1.2.3 From d909830932346051b63f9d3beb6d4085051b4c0d Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 23 Dec 2025 18:16:33 -0330 Subject: home page: contact info --- content/_index.html | 53 +++++++++++++++++++++++++++++++++++++++++++ content/posts/_index.md | 7 ++++++ content/posts/lorem-ipsum.md | 14 ++++++++++++ hugo.toml | 2 +- themes/aoidh/assets/aoidh.css | 35 ++++++++++++++++++++++++++-- 5 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 content/_index.html create mode 100644 content/posts/_index.md create mode 100644 content/posts/lorem-ipsum.md diff --git a/content/_index.html b/content/_index.html new file mode 100644 index 0000000..d1e4213 --- /dev/null +++ b/content/_index.html @@ -0,0 +1,53 @@ +--- +title: "" +date: 2025-12-23T17:12:55-03:30 +draft: true +--- + +

      About

      + + + + + + + + + + + + + + + + + + + + + + + + +
      Personal information
      NameSam Anthony
      OccupationComputer programmer
      EducationBCompSc, Concordia University (expected to graduate 2026)
      Previous employers + WheelTec +
      + C-CORE +
      + + + + + + + + + + + + + + + + +
      Contact
      Emailsam@samanthony.xyz
      Phone+1 (709) 746-7582
      diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..e7066c0 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,7 @@ ++++ +title = 'Posts' +date = 2023-01-01T08:30:00-07:00 +draft = false ++++ + +Tempor est exercitation ad qui pariatur quis adipisicing aliquip nisi ea consequat ipsum occaecat. Nostrud consequat ullamco laboris fugiat esse esse adipisicing velit laborum ipsum incididunt ut enim. Dolor pariatur nulla quis fugiat dolore excepteur. Aliquip ad quis aliqua enim do consequat. diff --git a/content/posts/lorem-ipsum.md b/content/posts/lorem-ipsum.md new file mode 100644 index 0000000..0425ef9 --- /dev/null +++ b/content/posts/lorem-ipsum.md @@ -0,0 +1,14 @@ ++++ +title = 'Post 1' +date = 2023-01-15T09:00:00-07:00 +draft = false +tags = ['red'] ++++ + +Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. This is a [link](http://git.samanthony.xyz) within body text. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem. + +Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do. + +Tempor proident minim aliquip reprehenderit dolor et ad anim Lorem duis sint eiusmod. Labore ut ea duis dolor. Incididunt consectetur proident qui occaecat incididunt do nisi Lorem. Tempor do laborum elit laboris excepteur eiusmod do. Eiusmod nisi excepteur ut amet pariatur adipisicing Lorem. + +Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sint esse velit ea officia minim fugiat. Elit ea esse id aliquip pariatur cupidatat id duis minim incididunt ea ea. Anim ut duis sunt nisi. Culpa cillum sit voluptate voluptate eiusmod dolor. Enim nisi Lorem ipsum irure est excepteur voluptate eu in enim nisi. Nostrud ipsum Lorem anim sint labore consequat do. diff --git a/hugo.toml b/hugo.toml index 41b8b33..3f34d8f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,6 +1,6 @@ baseURL = 'https://www.samanthony.xyz/' languageCode = 'en-us' -title = "Sam Anthony's Webpage" +title = "Sam Anthony" theme = 'aoidh' [params] diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css index 0b787b7..9acb0ef 100644 --- a/themes/aoidh/assets/aoidh.css +++ b/themes/aoidh/assets/aoidh.css @@ -66,6 +66,18 @@ ul { padding: 0; } +h1 { + font-size: 130%; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 110%; +} + p { text-align: justify; hyphens: auto; @@ -73,11 +85,11 @@ p { } a { - text-decoration: underline; + text-decoration: none; border: 1px solid transparent; } -a:hover, nav a:focus { +a:hover { text-decoration: none; color: #000; background: var(--light-blue); @@ -89,3 +101,22 @@ a:active { background: var(--light-blue); border: 1px solid var(--dark-blue); } + +table { + border-collapse: collapse; + text-align: left; + margin-bottom: 1.5rem; +} + +thead tr { + border: 1px solid #000; +} + +tr { + border: 1px solid var(--dark-gray); +} + +th, td { + padding: .15rem .6rem .15rem; + vertical-align: middle; +} -- cgit v1.2.3 From c45f3ae525762eb5abfbaadd07605e58706ab9b9 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 28 Dec 2025 19:20:09 -0330 Subject: mark active nav menu entry --- themes/aoidh/assets/aoidh.css | 57 +++++++++++++++++++------------- themes/aoidh/layouts/_partials/menu.html | 12 +++---- 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css index 9acb0ef..eacc098 100644 --- a/themes/aoidh/assets/aoidh.css +++ b/themes/aoidh/assets/aoidh.css @@ -1,5 +1,6 @@ :root { --paper-color: #ffffea; + --light-yellow: #eeee9e; --dark-yellow: #99994c; --light-blue: #eaffff; --dark-blue: #8888cc; @@ -12,7 +13,7 @@ html { } body { - margin: 2rem auto; + margin: 1rem auto; padding: .5rem 1rem .25rem; max-width: 60rem; border: 1px solid var(--dark-yellow); @@ -30,7 +31,7 @@ body { .content { margin-left: auto; margin-right: auto; - max-width: 40rem; + max-width: 45rem; } header { @@ -39,26 +40,36 @@ header { nav ul { display: flex; - list-style-type: none; + flex-wrap: wrap; +} + +nav li { + display: inline-block; + width: 16.66666667%; /* 1/6 */ + margin: .1rem 0 .1rem 1.5rem; +} + +nav li:first-child { + margin-left: 0; } nav a { - text-decoration: none; + display: inline-block; + width: 100%; + text-align: center; + vertical-align: middle; + white-space: nowrap; color: #000; - background: #fff; - padding: .2rem 1.5rem .2rem 1.5rem; - margin: .1rem 0 .1rem 1rem; border: .1rem solid var(--dark-blue); box-shadow: .1rem .1rem var(--dark-blue); } -nav li:first-child a { - margin-left: 0; +li.nav-active a { + font-weight: bold; + box-shadow: .2rem .2rem var(--dark-yellow); } nav a:active { - color: #000; - background: #fff; box-shadow: 0 0; } @@ -66,18 +77,6 @@ ul { padding: 0; } -h1 { - font-size: 130%; -} - -h2 { - font-size: 120%; -} - -h3 { - font-size: 110%; -} - p { text-align: justify; hyphens: auto; @@ -102,6 +101,18 @@ a:active { border: 1px solid var(--dark-blue); } +h1 { + font-size: 130%; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 110%; +} + table { border-collapse: collapse; text-align: left; diff --git a/themes/aoidh/layouts/_partials/menu.html b/themes/aoidh/layouts/_partials/menu.html index 485fe0b..b053791 100644 --- a/themes/aoidh/layouts/_partials/menu.html +++ b/themes/aoidh/layouts/_partials/menu.html @@ -21,13 +21,13 @@ Renders a menu for the given menu ID. {{- define "_partials/inline/menu/walk.html" }} {{- $page := .page }} {{- range .menuEntries }} -
    • +