New home page!

This commit is contained in:
Eryn Wells 2022-09-03 15:30:38 -07:00
parent d281f22242
commit 83f9550849
7 changed files with 174 additions and 126 deletions

View file

@ -1,11 +1,12 @@
{{ define "main" }}
{{ if .Title }}
<h1 class="main-title">{{ .Title }}</h1>
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ with site.Menus.main }}
{{ $url := $.RelPermalink }}
<nav>
{{ range . }}
<li><a class="{{ if eq .URL $url }}active{{ end }}" href="{{ .URL }}"><span>{{ .Name }}</span></a></li>
{{ end }}
</nav>
{{ end }}
<section id="homepage-content">
{{ .Content }}
</section>
{{ end }}