🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 6c541337026f26356a41b76e581f066b9882149c
Parent: 8690292adfbe3f9a36e2d65dea33176dd6f32a63
Author: mcol <mcol@posteo.net>
Date: 2021-09-24 00:31:03 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-24 00:31:03 +0100

Adjust example config and template to use some variables

templates/log.html Modified

@@ -1,18 +1,18 @@
 <!doctype html>
 <html lang="en">
-	<head>
-		<meta charset="utf-8">
-		<meta http-equiv="x-ua-compatible" content="ie=edge">
-		<meta name="viewport" content="width=device-width, initial-scale=1">
-		<title>gitserve - {{ title }}</title>
-		<link rel="stylesheet" href="{{ host }}/style.css" />
-	</head>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="x-ua-compatible" content="ie=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>{{ name }} -- {{ title }}</title>
+    <link rel="stylesheet" href="{{ host }}/style.css" />
+  </head>
 
-	<body>
-		<p>{{ title }}</p>
-		<hr>
-		<p>{{ description }}</p>
-		<p>git clone {{ host }}{{ path }}</p>
-		{{ title }}
-	</body>
+  <body>
+    <p>{{ name }}</p>
+    <hr>
+    <p>{{ description }}</p>
+    <p>git clone {{ host }}/{{ name }}</p>
+    {{ title }}
+  </body>
 </html>

config.dhall Modified

@@ -2,11 +2,11 @@
 -- It uses the Dhall configuration language: dhall-lang.org
 
 -- This is a folder containing repositories.
-let root = "."
+let root = ".."
 
 -- And these are relative paths from root to those repositories.
-let folders = [
-    "${root}/"
+let folders =
+    [ "${root}/gitserve"
     ]
 
 -- This is the configuration object that is used by gitserve