diff options
| -rw-r--r-- | .gitmodules | 2 | ||||
| -rw-r--r-- | content/articles/header-test.md | 14 | ||||
| -rw-r--r-- | hugo.toml | 56 | ||||
| m--------- | modules/fonts/plex (renamed from themes/aoidh/assets/fonts/plex) | 0 | ||||
| -rw-r--r-- | themes/aoidh/assets/aoidh.css | 46 | ||||
| -rw-r--r-- | themes/aoidh/hugo.toml | 57 | ||||
| -rw-r--r-- | themes/aoidh/layouts/_partials/head.html | 10 |
7 files changed, 65 insertions, 120 deletions
diff --git a/.gitmodules b/.gitmodules index 1501e36..cc808bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,5 +2,5 @@ path = static/resume url = https://git.samanthony.xyz/resume [submodule "static/fonts/plex"] - path = themes/aoidh/assets/fonts/plex + path = modules/fonts/plex url = https://github.com/IBM/plex.git diff --git a/content/articles/header-test.md b/content/articles/header-test.md deleted file mode 100644 index 6cfde73..0000000 --- a/content/articles/header-test.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = 'Header Test' -date = '2026-01-13T08:35:55-05:00' -tags = [] -draft = true -+++ - -# First level - -## Second level - -### Third level - -Lorem ipsum dolor sit amet. @@ -33,3 +33,59 @@ theme = 'aoidh' name = 'Projects' pageRef = '/projects' weight = 5 + +[module] + [[module.mounts]] + source = 'modules/fonts/plex/packages/plex-serif/fonts/split/woff2' + target = 'static/fonts/plex/packages/plex-serif/fonts/split/woff2' + + # Default mounts + [[module.mounts]] + disableWatch = false + source = 'content' + target = 'content' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] + [[module.mounts]] + disableWatch = false + source = 'data' + target = 'data' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] + [[module.mounts]] + disableWatch = false + source = 'layouts' + target = 'layouts' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] + [[module.mounts]] + disableWatch = false + source = 'i18n' + target = 'i18n' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] + [[module.mounts]] + disableWatch = false + source = 'archetypes' + target = 'archetypes' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] + [[module.mounts]] + disableWatch = false + source = 'assets' + target = 'assets' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] + [[module.mounts]] + disableWatch = false + source = 'static' + target = 'static' + [module.mounts.sites] + [module.mounts.sites.complements] + [module.mounts.sites.matrix] diff --git a/themes/aoidh/assets/fonts/plex b/modules/fonts/plex -Subproject bb3ab6404e1881ea286f8742dc839e09057db6d +Subproject bb3ab6404e1881ea286f8742dc839e09057db6d diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css index 6eb1e9b..a761a50 100644 --- a/themes/aoidh/assets/aoidh.css +++ b/themes/aoidh/assets/aoidh.css @@ -1,5 +1,4 @@ :root { - /* Colors */ --paper-color: #ffffea; --light-yellow: #eeee9e; --dark-yellow: #99994c; @@ -8,22 +7,10 @@ --light-gray: #eee; --dark-gray: #888; - /* Spacing */ --pagewidth: 60rem; --textwidth: 45rem; --parspace: .6em; - /* IBM Plex Serif weights */ - --thinweight: 100; - --extralightweight: 200; - --lightweight: 300; - --regularweight: 400; - --textweight: 450; - --mediumweight: 500; - --semiboldweight: 600; - --boldweight: 700; - - /* US letter page dimensions */ --letter-page-width: 8.5in; --letter-page-height: 11in; } @@ -41,10 +28,8 @@ body { } body { - font-family: 'IBM Plex Serif', serif; - font-weight: 400; - font-size: 1rem; line-height: 1.35em; + font-family: serif; text-rendering: optimizeLegibility; color: #000; background: #fff; @@ -82,12 +67,12 @@ nav a { } li.nav-active a { - font-weight: var(--semiboldweight); + font-weight: bold; box-shadow: .2rem .2rem var(--dark-yellow); } li.nav-ancestor a { - font-weight: var(--semiboldweight); + font-weight: bold; } nav a:active { @@ -103,7 +88,6 @@ p { } a { - font-weight: var(--textweight); text-decoration: none; border: 1px solid transparent; } @@ -123,27 +107,23 @@ a:active { .title { font-size: 1.4rem; - font-weight: var(--boldweight); } h1 { - font-size: 1.15rem; - font-weight: var(--semiboldweight); + font-size: 1.3rem; } h2 { - font-size: 1.10rem; - font-weight: var(--mediumweight); + font-size: 1.2rem; } h3 { - font-size: 1.05rem; - font-weight: var(--textweight); + font-size: 1.1rem; } h1, h2, h3 { - margin-block-start: .8em; - margin-block-end: .4em; + margin-block-end: .4em; /* above */ + margin-block-start: .8em; /* below */ } table { @@ -166,10 +146,6 @@ th, td { vertical-align: middle; } -th { - font-weight: var(--mediumweight); -} - footer { margin-top: 2rem; } @@ -228,9 +204,3 @@ iframe { border: 1px solid var(--dark-yellow); box-shadow: 2px 2px var(--dark-yellow); } - -code { - font-family: 'IBM Plex Mono', monospace; - font-weight: var(--regularweight); - font-size: .9em; -} diff --git a/themes/aoidh/hugo.toml b/themes/aoidh/hugo.toml index b8cf716..1410ef9 100644 --- a/themes/aoidh/hugo.toml +++ b/themes/aoidh/hugo.toml @@ -2,60 +2,3 @@ [module.hugoVersion] extended = false min = '0.146.0' - [[module.mounts]] - source = 'assets/fonts/plex/packages/plex-serif/fonts/split/woff2' - target = 'static/fonts/plex/packages/plex-serif/fonts/split/woff2' - [[module.mounts]] - source = 'assets/fonts/plex/packages/plex-mono/fonts/split/woff2' - target = 'static/fonts/plex/packages/plex-mono/fonts/split/woff2' - - # Default mounts - [[module.mounts]] - disableWatch = false - source = 'content' - target = 'content' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'data' - target = 'data' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'layouts' - target = 'layouts' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'i18n' - target = 'i18n' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'archetypes' - target = 'archetypes' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'assets' - target = 'assets' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'static' - target = 'static' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] diff --git a/themes/aoidh/layouts/_partials/head.html b/themes/aoidh/layouts/_partials/head.html index e0e5010..c72c8c5 100644 --- a/themes/aoidh/layouts/_partials/head.html +++ b/themes/aoidh/layouts/_partials/head.html @@ -1,16 +1,6 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> - -{{/* Stylesheets */}} {{- with resources.Get "aoidh.css" }} <link rel="stylesheet" href="{{ .RelPermalink }}"> {{- end }} - -{{/* Fonts */}} -{{- range resources.Match "fonts/plex/packages/plex-serif/fonts/split/woff2/*.css" }} - <link rel="stylesheet" href="{{ .RelPermalink }}"> -{{- end }} -{{- range resources.Match "fonts/plex/packages/plex-mono/fonts/split/woff2/*.css" }} - <link rel="stylesheet" href="{{ .RelPermalink }}"> -{{- end }} |