take one on music feature

This commit is contained in:
2022-05-09 19:19:16 -06:00
parent e5bf0c952c
commit 8cc150569b
8 changed files with 142 additions and 9 deletions

View File

@@ -22,5 +22,10 @@
<button type="submit">Make post</button>
<button type="clear">Clear form</button>
</form>
<form action="/admin/music" method="POST">
<input required type="text" placeholder="url" name="url"/>
<input required type="text" placeholder="name" name="name"/>
<button type="submit">Add Band</button>
</form>
</body>
</html>

11
templates/tunes.tmpl Normal file
View File

@@ -0,0 +1,11 @@
<!--music.tmpl-->
{{ template "header.tmpl" . }}
<p>
This serves as a compilation of every band that I like. Genres may vary, however I mostly listen to Hardcore, various genres of Metal, and Ska.
</p>
<div class="music-container">
{{ $val := range . }}
<a href="{{ $val.Url }}" class="music">{{ $val.Name }}</a>
{{ end }}
</div>
{{ template "footer_no_banners.tmpl" . }}