2
0
mirror of https://git.zx2c4.com/cgit synced 2025-09-02 23:35:56 +00:00

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 <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2015-08-12 14:50:09 +02:00
parent 13c2d3df04
commit d7034806a4
5 changed files with 26 additions and 2 deletions

2
cmd.h
View File

@@ -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,