Elektromarket/templates/index.html

14 lines
443 B
HTML
Raw Normal View History

{{define "content"}}
<h1>Kategorie</h1>
{{range $.categories}}
<a href="/category?id={{ .Id }}">
<div class="categoryTile">
<div class="categoryTileContent">
<div class="categoryIcon" style="background-image: url(http://127.0.0.1:8000/static/icons/{{ .Name }}.png);"></div>
<div class="categoryName">{{ .Name }}</div>
</div>
</div>
</a>
{{end}}
{{end}}