nerderland/layouts/home.html
Phil 217e4a5de5
Some checks failed
Build Hugo Site / build (push) Failing after 19s
Initial commit: Hugo static site for nerdy events
- Custom cyberpunk/console theme with pure CSS
- Event management with RSS and iCal calendar feeds
- Gitea workflow for automated deployment
- Complete documentation and setup instructions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 13:53:50 -06:00

44 lines
1.4 KiB
HTML

{{ define "main" }}
<div class="intro">
<p class="prompt">{{ .Site.Params.description | default "Welcome to the underground tech scene." }}</p>
</div>
<div class="ascii-border">
<pre>
+==================================================================+
| UPCOMING EVENTS |
+==================================================================+
</pre>
</div>
{{ $futureEvents := where .Site.RegularPages "Section" "events" }}
{{ $futureEvents := where $futureEvents "Params.date" "ge" now }}
{{ $futureEvents := $futureEvents.ByParam "date" }}
{{ if $futureEvents }}
<ul class="event-list">
{{ range $futureEvents }}
<li class="event-item">
<div class="event-date">{{ .Params.date | dateFormat "Monday, January 2, 2006 at 3:04 PM MST" }}</div>
<h3 class="event-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h3>
{{ if .Params.location }}
<div class="event-location">📍 {{ .Params.location }}</div>
{{ end }}
{{ if .Params.cost }}
<div class="event-cost">💰 {{ .Params.cost }}</div>
{{ end }}
<div class="event-description">{{ .Summary }}</div>
<div class="event-link">
<a href="{{ .RelPermalink }}">View Details →</a>
</div>
</li>
{{ end }}
</ul>
{{ else }}
<div class="no-events">
<p class="prompt">No upcoming events found. Check back later for more cyberpunk gatherings!</p>
</div>
{{ end }}
{{ end }}