From 0665d0c65974533fbd313f4e0b062b5103057aeb Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 18 May 2024 18:29:19 +0200 Subject: Replace all URL rendering within templates by a URLConstructor --- src/http/tpl/posts-manage.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/http/tpl/posts-manage.html') diff --git a/src/http/tpl/posts-manage.html b/src/http/tpl/posts-manage.html index f9adbc1..ad9c9d7 100644 --- a/src/http/tpl/posts-manage.html +++ b/src/http/tpl/posts-manage.html @@ -1,6 +1,6 @@ {{ define "body" }} - {{ $page := .GetQueryIntValue "p" 0 -}} + {{ $page := .GetQueryIntValue "page" 0 -}} {{ $getPostsRes := .GetPosts $page 20 -}}

- Back to Admin + Back to Admin

Posts

{{ if gt $page 0 }}

- < < Previous Page + < < Previous Page

{{ end }} @@ -33,15 +33,15 @@ {{ range $getPostsRes.Posts }} {{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }} - {{ .Title }} + {{ .Title }} - + Edit
- Next Page > > + Next Page > >

{{ end }} -- cgit v1.2.3