From d7034806a4b1279f62d606501f831dcad31798e6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 12 Aug 2015 14:50:09 +0200 Subject: about: always ensure page has a trailing slash Otherwise we can't easily embed links to other /about/ pages. Signed-off-by: Jason A. Donenfeld --- cmd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd.h') diff --git a/cmd.h b/cmd.h index 752f078..2507ca5 100644 --- a/cmd.h +++ b/cmd.h @@ -2,10 +2,12 @@ #define CMD_H typedef void (*cgit_cmd_fn)(void); +typedef void (*cgit_cmd_pre_fn)(void); struct cgit_cmd { const char *name; cgit_cmd_fn fn; + cgit_cmd_pre_fn pre; unsigned int want_repo:1, want_layout:1, want_vpath:1, -- cgit v1.2.1