Remove parameter
This commit is contained in:
parent
fdcaa8933b
commit
dbe504c810
3 changed files with 5 additions and 6 deletions
|
@ -18,6 +18,9 @@
|
|||
.extra-sun-icon {
|
||||
@apply h-4 w-4 shrink-0 -mb-1 mr-2 text-primary;
|
||||
}
|
||||
.grid-apps {
|
||||
@apply grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4;
|
||||
}
|
||||
.extra-info {
|
||||
@apply text-xs truncate text-secondary;
|
||||
}
|
||||
|
|
|
@ -45,5 +45,5 @@ func (bh *AppHandler) appHandler(c echo.Context) error {
|
|||
|
||||
titlePage := bh.env.Title
|
||||
|
||||
return renderView(c, home.HomeIndex(titlePage, bh.env.Version, bookmarks, staticSystem, liveSystem, weather, home.Home(titlePage, bookmarks, staticSystem, liveSystem, weather)))
|
||||
return renderView(c, home.HomeIndex(titlePage, bh.env.Version, home.Home(titlePage, bookmarks, staticSystem, liveSystem, weather)))
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI
|
|||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4">
|
||||
<div class="grid-apps">
|
||||
for _, l := range bookmarks.Links {
|
||||
<div class="flex flex-col gap-2">
|
||||
if l.Category != "" {
|
||||
|
@ -51,10 +51,6 @@ templ Home(title string, bookmarks *services.Bookmarks, static *services.StaticI
|
|||
templ HomeIndex(
|
||||
title,
|
||||
version string,
|
||||
bookmarks *services.Bookmarks,
|
||||
static *services.StaticInformation,
|
||||
live *services.LiveInformation,
|
||||
weather *services.OpenWeather,
|
||||
cmp templ.Component,
|
||||
) {
|
||||
@layout.Base(title, version) {
|
||||
|
|
Loading…
Reference in a new issue