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

Commit b21f7c1c42e1086cadaf89aae83f52443c297505
Parent: 39841ff9c9d9643f7081141099f0a902d4f13dd7
Author: mcol <mcol@posteo.net>
Date: 2021-09-24 23:49:47 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-24 23:49:47 +0100

Add example tree template accessing files in the tree

templates/tree.html Added

@@ -0,0 +1,20 @@
+<!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>{{ name }} -- tree</title>
+    <link rel="stylesheet" href="{{- host }}/style.css" />
+  </head>
+
+  <body>
+    <p>{{- name }}</p>
+    <hr>
+    <p>{{- description }}</p>
+    <p>git clone {{ host }}/{{- name }}</p>
+    {% for file in tree %}
+    <p>{{- file.path }}</p>
+    {% endfor %}
+  </body>
+</html>

templates/log.html Modified

@@ -4,7 +4,7 @@
     <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 -- {{ name }}</title>
+    <title>{{ name }} -- log</title>
     <link rel="stylesheet" href="{{- host }}/style.css" />
   </head>