remove previous button and increase cache time

This commit is contained in:
orangix 2024-02-05 22:39:49 +01:00
parent 1cadb417b9
commit 61eb1c5a86
No known key found for this signature in database
GPG Key ID: C31D4A86601C8416
2 changed files with 1 additions and 5 deletions

View File

@ -105,6 +105,6 @@ func (client *Client) FetchTag(tag string, sort string, page string) (Tag, error
Background: "/" + data.Get("background_id").String() + ".webp", Background: "/" + data.Get("background_id").String() + ".webp",
} }
client.Cache.Set(tag+sort+page+"-tag", tagData, cache.DefaultExpiration) client.Cache.Set(tag+sort+page+"-tag", tagData, 4*cache.DefaultExpiration)
return tagData, nil return tagData, nil
} }

View File

@ -54,10 +54,6 @@
</div> </div>
{{#noteq next ""}} {{#noteq next ""}}
<div class="flex"> <div class="flex">
{{#noteq prev ""}}
<!-- TODO: prev -->
<a href="{{prev}}" title="Previous" class="px-3 py-2 rounded-l-lg bg-gray-400 text-gray-800">&lt;</a>
{{/noteq}}
<a href="{{next}}" class="px-3 py-2 rounded-r-lg [&:only-child]:rounded-lg bg-green-400 text-gray-800">Next <a href="{{next}}" class="px-3 py-2 rounded-r-lg [&:only-child]:rounded-lg bg-green-400 text-gray-800">Next
&gt;</a> &gt;</a>
</div> </div>