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
.IsHomeboolean within template conditionals. - Pattern:
or using a variable for cleaner syntax:
{{ if .IsHome }}{{ .Site.Title }}/home{{ else }}{{ .Title }}{{ end }}{{ $suffix := "" }} {{ if .IsHome }}{{ $suffix = "/home" }}{{ end }} {{ if .IsHome }}{{ .Site.Title }}{{ $suffix }}{{ else }}{{ .Title }}{{ end }} - Context: Applied to
layouts/index.htmlor 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.
Related Pages#
Sources#
ingested/chats/115-Adding -home to index page conditionally.md