♻️ Refactor projects section to use data file

This commit is contained in:
Dan Jones 2025-11-21 20:20:47 -06:00
commit 6c56f6dc5f
4 changed files with 70 additions and 81 deletions

View file

@ -0,0 +1,18 @@
<section class="projects">
{{ with . | transform.Unmarshal -}}
{{- range $project := . -}}
{{- range $slug, $proj := $project -}}
<section class="project {{ $slug }}">
<h3>{{ $proj.name }}</h3>
<p><a href="{{ $proj.url }}" class="noprint">🔗</a>
{{ $proj.desc }}</p>
</section><!-- /.project.{{ $slug }} -->
{{- end -}}
{{- end -}}
{{- end }}
</section>