blob: 34a8c7ce76e4b00e9a17ffc2619cadd4b988afb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{ $pathSplit := splitList "/" .Req.URL.Path }}
{{ $base := last $pathSplit | default "index.gmi" }}
{{ $filePath := append (initial $pathSplit) $base | join "/" | printf "static%s" }}
{{ if not (fileExists $filePath) }}{{ httpError 404 }}{{ end }}
<!DOCTYPE html>
<html>
<head>
<title>TODO Title</title>
<link rel="stylesheet" type="text/css" href="/bamboo.css" />
</head>
<body>
{{ gemtext (include $filePath) }}
</body>
</html>
|