Fix base-url where it was hard-coded
gitile/handler.scm
100 | 100 | (('*TOP* ('d content ...)) | |
101 | 101 | content)) | |
102 | 102 | (div (@ (class "instructions")) | |
103 | - | (code "git clone https://" ,base-git-url "/" | |
103 | + | (code "git clone " ,base-git-url "/" | |
104 | 104 | ,(project-slug project))))) | |
105 | 105 | projects))) | |
106 | 106 | (footer ,@footer)))) | |
… | |||
185 | 185 | ((project-name) | |
186 | 186 | (call-with-repo project-name | |
187 | 187 | (lambda (repo) | |
188 | - | (show (style (project-index project-name repo) | |
188 | + | (show (style (project-index base-git-url project-name repo) | |
189 | 189 | project-name "-" footer))))) | |
190 | 190 | ((project-name "tree" ref path ...) | |
191 | 191 | (call-with-repo project-name |
gitile/pages.scm
161 | 161 | (proc out (config->pointer config) (string->pointer name)) | |
162 | 162 | (pointer->string out))))) | |
163 | 163 | ||
164 | - | (define (project-index repository-name repo) | |
164 | + | (define (project-index base-url repository-name repo) | |
165 | 165 | `((h1 ,repository-name) | |
166 | 166 | (p ,(get-synopsis repo)) | |
167 | 167 | (p (@ (class "clone")) | |
168 | - | (code "git clone https://git.lepiller.eu/git/" ,repository-name)) | |
168 | + | (code "git clone " base-url "/" ,repository-name)) | |
169 | 169 | ,(project-files repository-name repo))) | |
170 | 170 | ||
171 | 171 | (define (author-image author) |