4 files changed,
+26,
-5
M
Makefile
+2,
-0
1@@ -34,6 +34,8 @@ test-site:
2 go run main.go \
3 --repo ./testdata \
4 --out testdata.site \
5+ --clone-url "https://test.com/test/test2" \
6+ --home-url "https://test.com/test" \
7 --label testdata \
8 --desc "pgit testing site" \
9 --theme "dracula" \
1@@ -1,4 +1,10 @@
2 {{define "footer"}}
3+{{if and (eq .Active "summary") .SiteURLs.CloneURL}}
4+<div class="clone-url-container text-left">
5+ <div class="clone-url-title">CLONE URL</div>
6+ <div class="clone-url-text mono">git clone {{.SiteURLs.CloneURL}}</div>
7+</div>
8+{{end}}
9 <div>
10 built with <a href="https://pgit.pico.sh">pgit</a>
11 </div>
+0,
-5
1@@ -6,10 +6,5 @@
2 {{end}}
3
4 {{define "content"}}
5- {{if .SiteURLs.CloneURL}}
6- <div class="mb-4">
7- <pre class="mt-2 mb-0">git clone {{.SiteURLs.CloneURL}}</pre>
8- </div>
9- {{end}}
10 {{.Readme}}
11 {{end}}
+18,
-0
1@@ -153,3 +153,21 @@ body {
2 white-space: nowrap;
3 }
4
5+/* Clone URL in footer - summary page only */
6+.clone-url-container {
7+ text-align: left;
8+ margin-bottom: calc(var(--line-height) * 1.5);
9+}
10+
11+.clone-url-title {
12+ color: var(--grey-light);
13+ font-size: 0.8rem;
14+ font-weight: 600;
15+ text-transform: uppercase;
16+}
17+
18+.clone-url-text {
19+ color: var(--text-color);
20+ font-size: 0.9rem;
21+}
22+