summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-04-13 22:19:45 +0200
committerMartin Fischer <martin@push-f.com>2025-04-14 07:04:45 +0200
commitef3318a78050ea8aa4f6a65dd4673958c0eadf85 (patch)
tree8328422f9ee89310d294e424ad8fe79f8cad9070
parent564d0acca8aea41e9d2d233f64d1cdda6dbcd4ab (diff)
docs: add README and link to repoHEADmaster
-rw-r--r--README.md5
-rw-r--r--lex-serve/main_test.go1
-rw-r--r--lex-serve/templates/index.html.tmpl1
3 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..1795f3c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+# lex-surf
+
+A web portal to national laws.
+
+Hosted under https://lex.surf/.
diff --git a/lex-serve/main_test.go b/lex-serve/main_test.go
index bd284a8..a45c38d 100644
--- a/lex-serve/main_test.go
+++ b/lex-serve/main_test.go
@@ -59,6 +59,7 @@ func TestStartPage(t *testing.T) {
<div class=countries>
</div>
+ <p><a href="https://git.push-f.com/lex-surf">source code</a></p>
</body>
</html>
`
diff --git a/lex-serve/templates/index.html.tmpl b/lex-serve/templates/index.html.tmpl
index 108bc17..6064f49 100644
--- a/lex-serve/templates/index.html.tmpl
+++ b/lex-serve/templates/index.html.tmpl
@@ -14,6 +14,7 @@
{{template "country-links" .SecondTier}}
<div>3rd tier (just a link)</div>
{{template "country-links" .ThirdTier}}
+ <p><a href="https://git.push-f.com/lex-surf">source code</a></p>
</body>
</html>
{{define "country-links" -}}