diff --git a/web/templates/manage.html b/web/templates/manage.html index 8b83596..2aa11b8 100644 --- a/web/templates/manage.html +++ b/web/templates/manage.html @@ -20,7 +20,9 @@ {{ niceURL .URL }} - {{ join .Tags ", " }} + {{ range .Tags }} + {{ . }} + {{ end }} {{ (nicetime .TimestampCreated).HumanDuration }} ago {{ (nicetime .TimestampLastScraped).HumanDuration }} ago diff --git a/web/templates/tags_widget.html b/web/templates/tags_widget.html index 1df50fc..4788eed 100644 --- a/web/templates/tags_widget.html +++ b/web/templates/tags_widget.html @@ -12,11 +12,12 @@
{{ range .tags }} [-] - {{ . }} + {{ . }} {{ end }} diff --git a/web/web.go b/web/web.go index 034170b..55d00d8 100644 --- a/web/web.go +++ b/web/web.go @@ -250,7 +250,7 @@ func cleanupTags(tags []string) []string { keys := make(map[string]struct{}) for _, k := range tags { if k != "" && k != "|" { - keys[k] = struct{}{} + keys[strings.ToLower(k)] = struct{}{} } } out := []string{}