aboutsummaryrefslogtreecommitdiff
path: root/templates/head.html
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2023-01-31 21:30:40 -0700
committerAnirudh Oppiliappan <x@icyphox.sh>2023-02-05 15:12:02 +0530
commitde046690c01cf90c906ee74b8180d10f17757fb7 (patch)
tree5e4294489f6b8c1883816a5c9275c2dd35adca65 /templates/head.html
parentsort tags and deduplicate (diff)
downloadlegitrx-de046690c01cf90c906ee74b8180d10f17757fb7.tar.gz
legitrx-de046690c01cf90c906ee74b8180d10f17757fb7.tar.zst
legitrx-de046690c01cf90c906ee74b8180d10f17757fb7.zip
only add go meta import tag if go.mod exists in repo root
This is a multipart message in MIME format. Pretty self-explanitory :3 Signed-off-by: Derek Stevens <nilix@nilfm.cc>
Diffstat (limited to 'templates/head.html')
-rw-r--r--templates/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/head.html b/templates/head.html
index ea910dc..53487eb 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -5,7 +5,7 @@
<link rel="stylesheet" href="/static/style.css" type="text/css">
<link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css">
<link rel="icon" type="image/png" size="32x32" href="/static/legit.png">
- {{ if .servername }}
+ {{ if and .servername .gomod }}
<meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}">
{{ end }}
<!-- other meta tags here -->