gshr
git static host repo -- generates static html for repos
git clone https://git.vogt.world/gshr.git
Log | Files | README.md | LICENSE
← Commit log
commit
message
Cleaner templates, fixing dev config
author
Ben Vogt <[email protected]>
date
2023-04-06 15:14:33
stats
3 file(s) changed, 6 insertions(+), 21 deletions(-)
files
dev-config-gshr.toml
template.index.html
template.partials.html
 1diff --git a/dev-config-gshr.toml b/dev-config-gshr.toml
 2index 7d3ddd8..f5ac421 100644
 3--- a/dev-config-gshr.toml
 4+++ b/dev-config-gshr.toml
 5@@ -1,4 +1,4 @@
 6-base_url = "https://localhost/"
 7+base_url = "http://localhost/"
 8 site_name = "development site - should run on port 80"
 9 
10 [[repos]]
11@@ -7,17 +7,3 @@ description = "git static host repo -- generates static html for repos"
12 url = "https://github.com/vogtb/gshr"
13 published_git_url = "https://github.com/vogtb/gshr"
14 host_git = true
15-
16-[[repos]]
17-name = "f7"
18-description = "f7 is a spreadsheet formula execution library"
19-url = "https://github.com/vogtb/f7"
20-published_git_url = "https://github.com/vogtb/f7"
21-host_git = true
22-
23-[[repos]]
24-name = "spreadsheet"
25-description = "typeScript/javascript spreadsheet parser, with formulas"
26-url = "https://github.com/vogtb/spreadsheet"
27-published_git_url = "https://github.com/vogtb/spreadsheet"
28-host_git = true
29diff --git a/template.index.html b/template.index.html
30index 3f5b874..ece0c02 100644
31--- a/template.index.html
32+++ b/template.index.html
33@@ -25,7 +25,7 @@
34             <tr>
35               <td><b>Name</b></td>
36               <td><b>Description</b></td>
37-              <td><b>Git URL</b></td>
38+              <td><b>Git</b></td>
39             </tr>
40           </thead>
41           <tbody>
42@@ -40,9 +40,8 @@
43                 {{ .Description }}
44               </td>
45               <td>
46-                git clone
47-                <a href="{{ .PublishedGitURL }}">
48-                  {{ .PublishedGitURL }}
49+                <a href="{{ .BaseURL }}{{ .Name }}.git">
50+                  {{ .BaseURL }}{{ .Name }}.git
51                 </a>
52               </td>
53             </tr>
54diff --git a/template.partials.html b/template.partials.html
55index d5519d8..c6374d7 100644
56--- a/template.partials.html
57+++ b/template.partials.html
58@@ -1,7 +1,6 @@
59 {{ define "head" }}
60 <meta charset="utf-8">
61 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
62-<meta name="viewport" content="width=device-width, initial-scale=1">
63 <meta http-equiv="X-UA-Compatible" content="IE=edge">
64 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
65 <title>gshr</title>
66@@ -40,13 +39,13 @@
67       </tr>
68       <tr>
69         <td>
70-          git clone <a href="{{ .BaseURL }}{{ .Name }}.git">{{ .BaseURL }}{{ .Name }}.git</a>
71+          git clone {{ .BaseURL }}{{ .Name }}.git
72         </td>
73       </tr>
74       {{ if not (eq .PublishedGitURL "") }}
75       <tr>
76         <td>
77-          alternate url: <a href="{{ .PublishedGitURL }}">{{ .PublishedGitURL }}</a>
78+          alt url: <a href="{{ .PublishedGitURL }}">{{ .PublishedGitURL }}</a>
79         </td>
80       </tr>
81       {{ end }}