added raw version of website cards

This commit is contained in:
Hazel Noack 2025-07-14 16:41:30 +02:00
parent 39dfac77a9
commit 7da58e1619
2 changed files with 12 additions and 1 deletions

View File

@ -2,4 +2,4 @@
Port = 1234 Port = 1234
[Template] [Template]
ActiveCard = "stores" ActiveCard = "websites"

View File

@ -36,6 +36,17 @@
{{- end }} {{- end }}
</div> </div>
{{ end }} {{ end }}
{{ if eq .ActiveCard "websites" }}
<div class="cards" id="websites">
{{range $Website := .Websites }}
<a target="_blank" href="{{ $Website.Url }}" class="card">
<h3>{{ $Website.Name }}</h3>
<img class="card-image" src="{{ $Website.ImageUrl }}" alt="{{ $Website.Name }} picture">
</a>
{{- end }}
</div>
{{ end }}
</form> </form>
<script> <script>