A website inspired by Last.fm that will keep track of your listening statistics
lastfm music statistics
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Small changes

oscar345 446f7781 118b13b6

+8 -6
+5 -1
internal/web/pages/pages.go
··· 3 3 import ( 4 4 "html/template" 5 5 "io/fs" 6 + "log" 6 7 "path/filepath" 7 8 8 9 "github.com/oscar345/keeptrack/resources" ··· 36 37 opt(&options) 37 38 } 38 39 39 - fs, _ := fs.Sub(resources.TemplatesFS, "views") 40 + fs, err := fs.Sub(resources.TemplatesFS, "views") 41 + if err != nil { 42 + log.Fatal(err) 43 + } 40 44 41 45 return template.Must(template. 42 46 New(filepath.Base(options.layout)).
-1
resources/js/main.js
··· 1 - import "htmx.org";
+1 -1
resources/views/about.html
··· 3 3 {{ define "content"}} 4 4 <h1>About</h1> 5 5 6 - <a href="/" hx-boost="true">Link</a> 6 + <a href="/">Link</a> 7 7 {{ end }}
+1 -1
resources/views/index.html
··· 4 4 <h1>Hello World</h1> 5 5 <p>This is a test</p> 6 6 7 - <a class="button variant-default shape-square scheme-default" href="/about" hx-boost="true">Link</a> 7 + <a class="button variant-default shape-square scheme-default" href="/about">Link</a> 8 8 9 9 10 10 <button type="button">Button</button>
-1
resources/views/partials/header.html
··· 16 16 <li class="item"> 17 17 <a 18 18 {{ if eq .href "/library" }} aria-current="page" {{ end }} 19 - hx-boost="true" 20 19 href="{{ $item.href }}" 21 20 >{{ $item.label }}</a> 22 21 </li>
+1 -1
resources/views/partials/library/aside.html
··· 13 13 {{ $current := .current }} 14 14 {{ range $i, $item := $items }} 15 15 <li class="item"> 16 - <a hx-boost="true" {{ if eq $item.name $current }} aria-current="page" {{ end }} href="{{ $item.href }}">{{ $item.label }}</a> 16 + <a {{ if eq $item.name $current }} aria-current="page" {{ end }} href="{{ $item.href }}">{{ $item.label }}</a> 17 17 </li> 18 18 {{ end }} 19 19 </ul>