Add option of background
This commit is contained in:
parent
dba27e3368
commit
f7adb14a25
2 changed files with 8 additions and 6 deletions
|
@ -5,16 +5,18 @@ type Config struct {
|
||||||
Links []struct {
|
Links []struct {
|
||||||
Category string
|
Category string
|
||||||
Entries []struct {
|
Entries []struct {
|
||||||
Name string
|
Name string
|
||||||
URL string
|
Background bool
|
||||||
|
URL string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Applications []struct {
|
Applications []struct {
|
||||||
Category string
|
Category string
|
||||||
Entries []struct {
|
Entries []struct {
|
||||||
Name string
|
Name string
|
||||||
Icon string
|
Icon string
|
||||||
URL string
|
Background bool
|
||||||
|
URL string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -287,7 +287,7 @@
|
||||||
<div class="grid-apps">
|
<div class="grid-apps">
|
||||||
{{ range .Entries }}
|
{{ range .Entries }}
|
||||||
<a href="{{ .URL }}" class="bookmark-link flex items-center hover-effect">
|
<a href="{{ .URL }}" class="bookmark-link flex items-center hover-effect">
|
||||||
<div class="img rounded w-8 h-8 bg-contain bg-center bg-no-repeat opacity-90" style="background-image: url({{ .Icon }})"></div>
|
<div class="{{ if .Background }}bg-white {{ end }}img rounded w-8 h-8 bg-contain bg-center bg-no-repeat opacity-90" style="background-image: url({{ .Icon }})"></div>
|
||||||
<div class="uppercase truncate ml-2">{{ .Name }}</div>
|
<div class="uppercase truncate ml-2">{{ .Name }}</div>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue