fix to context recycling and top/bottom anchors on posts display

This commit is contained in:
2026-01-17 22:40:19 -07:00
parent 785c45543c
commit 4814947852
2 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -575,9 +575,7 @@ func contextRecycler(incoming chan *amContext, done chan bool) {
for c := range incoming {
c.echoContext = nil
c.httprc = http.StatusOK
for k := range c.rendervars {
delete(c.rendervars, k)
}
c.rendervars = make(jet.VarMap)
c.outputType = ""
c.session = nil
c.globals = nil
+2 -2
View File
@@ -71,7 +71,7 @@
<button type="submit" name="go" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">Go</button>
</form>
<div class="flex items-center gap-2 text-sm" name="top">
<span>[</span>
<a name="top"><span>[</span></a>
<a href="{{ post_stem }}?r=0,-1" class="text-blue-700 hover:text-blue-900">View All</a>
{{ if rangeStart > 0 }}
<span>|</span>
@@ -141,7 +141,7 @@
<!-- Bottom Navigation -->
<div class="flex justify-end items-center mb-6 text-sm" name="bottom">
<span>[</span>
<a name="bottom"><span>[</span></a>
<a href="{{ post_stem }}?r=0,-1" class="text-blue-700 hover:text-blue-900 mx-2">View All</a>
{{ if rangeStart > 0 }}
<span>|</span>