diff --git a/assets/css/main.css b/assets/css/main.css index 5e75e62..91c6fbb 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -64,9 +64,10 @@ s { text-decoration-color: var(--strike); text-decoration-thickness: 1.5px; } /* Masthead */ .masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); } .masthead-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; padding: 0 24px; max-width: 1440px; margin: 0 auto; } -.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; } +.masthead-main { display: flex; align-items: baseline; gap: 24px; } +.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; } .brand:hover { color: var(--ink); } -.mark { width: 32px; height: 28px; image-rendering: pixelated; } +.mark { align-self: center; width: 32px; height: 28px; image-rendering: pixelated; } .brand-sub { font-weight: 400; color: var(--ink-2); } .topnav { display: flex; gap: 20px; } .topnav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; } @@ -232,8 +233,9 @@ h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin: 0 0 12px; letter-spa .home-section-head p { margin: 0; color: var(--ink-2); } .site-footer { border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); } -.site-footer-inner { max-width: 1440px; margin: 0 auto; padding: 28px 24px 40px; } -.site-footer p { margin: 0 0 6px; max-width: 80ch; } +.site-footer-inner { max-width: 1440px; margin: 0 auto; padding: 32px 24px; } +.site-footer p { margin: 0 auto 6px; max-width: 80ch; text-align: center; text-wrap: balance; } +.site-footer p:last-child { margin-bottom: 0; } /* Syntax highlighting (minimal) */ .chroma .c, .chroma .c1, .chroma .cm { color: var(--ink-2); font-style: italic; } diff --git a/content/ai-brain/_index.md b/content/ai-brain/_index.md new file mode 100644 index 0000000..2d9c003 --- /dev/null +++ b/content/ai-brain/_index.md @@ -0,0 +1,21 @@ +--- +title: "AI Brain" +tagline: "Lorem ipsum dolor sit amet, consectetur adipiscing elit." +weight: 30 +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + +## Lorem ipsum + +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +- Lorem ipsum dolor sit amet. +- Consectetur adipiscing elit. +- Sed do eiusmod tempor incididunt. + +## Dolor sit amet + +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. + +Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. diff --git a/hugo.toml b/hugo.toml index fbac69a..d3db326 100644 --- a/hugo.toml +++ b/hugo.toml @@ -33,6 +33,10 @@ disableKinds = ["taxonomy", "term", "rss"] name = "Applications" pageRef = "/apps" weight = 20 + [[menus.main]] + name = "AI Brain" + pageRef = "/ai-brain" + weight = 30 # Category order and descriptions used on the home page and in the sidebar. [[params.appGroups]] diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 9433717..77c22fd 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -3,16 +3,18 @@ - - {{ partial "mark.html" . }} - Federated Computer Docs - - +
+ + {{ partial "mark.html" . }} + Federated Computer Docs + + +
{{ end }} + {{ with site.GetPage "/ai-brain" }} +
+ {{ .Title }} + {{ with .Pages.ByWeight }} + + {{ end }} +
+ {{ end }} {{ with site.GetPage "/apps" }} {{ $apps := .Pages }}
diff --git a/layouts/home.json b/layouts/home.json index 7d1698f..71b18cd 100644 --- a/layouts/home.json +++ b/layouts/home.json @@ -3,7 +3,7 @@ {{- $items = $items | append (dict "title" .Title "url" .RelPermalink - "section" (cond (eq .Section "apps") (.Params.category | default "Applications") "Getting started") + "section" (cond (eq .Section "apps") (.Params.category | default "Applications") .CurrentSection.Title) "tagline" (.Params.tagline | default "") "replaces" (delimit (.Params.replaces | default slice) ", ") "headings" (delimit (findRE `(?m)^#{2,3} .+$` .RawContent) " " | replaceRE `#+ ` "") diff --git a/layouts/list.html b/layouts/list.html index f08f234..2c29010 100644 --- a/layouts/list.html +++ b/layouts/list.html @@ -9,14 +9,16 @@ {{ if eq .Section "apps" }} {{ partial "directory.html" (dict "headingLevel" 2) }} {{ else }} + {{ with .Pages.ByWeight }}
    - {{ range .Pages.ByWeight }} + {{ range . }}
  1. {{ .Title }} {{ with .Params.tagline }}

    {{ . }}

    {{ end }}
  2. {{ end }}
+ {{ end }} {{ end }}