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/draft-posts-manage.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/http/tpl/draft-posts-manage.html') diff --git a/src/http/tpl/draft-posts-manage.html b/src/http/tpl/draft-posts-manage.html index b1b4362..417f716 100644 --- a/src/http/tpl/draft-posts-manage.html +++ b/src/http/tpl/draft-posts-manage.html @@ -1,6 +1,6 @@ {{ define "body" }} - {{ $page := .GetQueryIntValue "p" 0 -}} + {{ $page := .GetQueryIntValue "page" 0 -}} {{ $getPostsRes := .GetDraftPosts $page 20 -}}

- Back to Admin + Back to Admin

Drafts

- New Draft + New Draft

{{ if gt $page 0 }}

- < < Previous Page + < < Previous Page

{{ end }} @@ -32,13 +32,13 @@ {{ .Title }} - + Edit
- Next Page > > + Next Page > >

{{ end }} -- cgit v1.2.3