summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jeremiah Dow <jeremdow@gmail.com> 2013-04-24 12:31:08 -0800
committerGravatar Jeremiah Dow <jeremdow@gmail.com> 2013-04-24 12:36:44 -0800
commitff92734ff868448cad883e2243a012e7501b08e8 (patch)
tree5139adb0ac4b4b71abb44753bde013810be32673
parentce85d678d3883e432023574ef358ca163555d2a4 (diff)
downloadjeremdow.us-ff92734ff868448cad883e2243a012e7501b08e8.tar.gz
only serve go-import tag when go-get requested
-rw-r--r--lib/headers.tpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/headers.tpl b/lib/headers.tpl
index 5a32e1a..44d5779 100644
--- a/lib/headers.tpl
+++ b/lib/headers.tpl
@@ -12,9 +12,10 @@
<meta charset="UTF-8">
% # Legacy charset declaration for backards compatibility with non-html5 browsers.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-% # Go import tag for `go get jeremdow.us/$repo`
- <meta name="go-import" content="jeremdow.us%($req_path%) git git://jeremdow.us%($req_path%)">
+% # Go import tag for `go get jeremdow.us/$repo`
+% if(~ $REQUEST_URI *go-get*1)
+% echo '<meta name="go-import" content="'jeremdow.us$"req_path' git git://jeremdow.us'$"req_path'">'
% if(! ~ $#meta_description 0)
% echo ' <meta name="description" content="'$"meta_description'">'
% if(! ~ $#meta_keywords 0)