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

Commit 67f2596e606f0059150c81cc2a83da015710ad4c
Parent: 32b4a293e4b61c388dd3c7112d1ca57482ae4025
Author: mcol <mcol@posteo.net>
Date: 2021-09-24 11:10:59 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-24 11:10:59 +0100

Update log template to trim whitespace and print commit messages

templates/log.html Modified

@@ -5,13 +5,16 @@
     <meta http-equiv="x-ua-compatible" content="ie=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>gitserve -- {{ name }}</title>
-    <link rel="stylesheet" href="{{ host }}/style.css" />
+    <link rel="stylesheet" href="{{- host }}/style.css" />
   </head>
 
   <body>
-    <p>{{ name }}</p>
+    <p>{{- name }}</p>
     <hr>
-    <p>{{ description }}</p>
-    <p>git clone {{ host }}/{{ name }}</p>
+    <p>{{- description }}</p>
+    <p>git clone {{ host }}/{{- name }}</p>
+    {% for commit in commits %}
+    <p>{{- commit }}</p>
+    {% endfor %}
   </body>
 </html>