//nbkelley /homelab

Ilmarë Website#

What Was Established#

  • Static Hugo site hosted on Varda (192.168.1.131).
  • Features CSS Grid layout, hamburger menu, and parallax hero.

Development Patterns#

Conditional Title Suffixes#

  • Goal: Append a suffix (e.g., /home) to the page title only on the index page.
  • Implementation: Leverage Hugo’s .IsHome boolean within template conditionals.
  • Pattern:
    {{ if .IsHome }}{{ .Site.Title }}/home{{ else }}{{ .Title }}{{ end }}
    or using a variable for cleaner syntax:
    {{ $suffix := "" }}
    {{ if .IsHome }}{{ $suffix = "/home" }}{{ end }}
    {{ if .IsHome }}{{ .Site.Title }}{{ $suffix }}{{ else }}{{ .Title }}{{ end }}
  • Context: Applied to layouts/index.html or base templates to differentiate the root URL from inner pages.

Current Configuration#

  • Host: Varda (192.168.1.131)
  • Stack: Hugo static site generation
  • Template Engine: Go templates

Historical Notes#

  • Conversation dated 2025-11-24. Pattern confirmed for Hugo static site generation.

Open Questions#

  • None.

Sources#

  • ingested/chats/115-Adding -home to index page conditionally.md