summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 09:02:23 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 09:02:23 +0530
commitdf0962a39ebef3853cbe90b3f7b07f7d2fce96d6 (patch)
treef293cb914ea3cf9da599a90b55793c8dbf5217c8 /templates
parent232a3603a6dc67537109cec06e738b596265475c (diff)
downloadlegit-df0962a39ebef3853cbe90b3f7b07f7d2fce96d6.tar.gz
legit-df0962a39ebef3853cbe90b3f7b07f7d2fce96d6.tar.bz2
legit-df0962a39ebef3853cbe90b3f7b07f7d2fce96d6.zip
all: no more pretty urls
Diffstat (limited to '')
-rw-r--r--templates/head.html4
-rw-r--r--templates/repo.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/head.html b/templates/head.html
index 0bde52e..1121480 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -4,8 +4,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/style.css" type="text/css">
<link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css">
- {{ if .goimport }}
- {{ .goimport }}
+ {{ if .servername }}
+ <meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}">
{{ end }}
<!-- other meta tags here -->
</head>
diff --git a/templates/repo.html b/templates/repo.html
index 8dc5f54..c588a0f 100644
--- a/templates/repo.html
+++ b/templates/repo.html
@@ -36,7 +36,7 @@
<div class="clone-url">
<strong>clone</strong>
<pre>
-git clone {{ .clone -}}
+git clone https://{{ .servername }}/{{ .name }}
</pre>
</div>
</main>