go.unistack.org/layouts/_default/single.html
Vasiliy Tolstov 2472366994 update
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-03-31 00:08:56 +03:00

18 lines
994 B
HTML

{{- $version := cond (eq .Params.version "v0") "" (cond (eq .Params.version "v1") "" (cond (eq .Params.version "") "" (printf "/%s" .Params.version ))) -}}
{{- $branch := cond (eq .Params.version "v0") "master" (cond (eq .Params.version "v1") "master" (cond (eq .Params.version "") "" .Params.version)) -}}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ .Title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="5;url=https://pkg.go.dev/{{ .Params.import }}{{ $version }}"/>
<meta name="go-import" content="{{ .Params.import }}{{ $version }} git {{ .Params.source }}"/>
<meta name="go-source" content="{{ .Params.import }}{{ $version }} _ {{ .Params.source }}{/dir} {{ .Params.source }}/src/branch/{{ $branch }}/{/dir}/{file}#L{line}"/>
</head>
<body>
<a href="https://pkg.go.dev/{{ .Params.import }}{{ $version }}">pkg.go.dev</a><br/>
go get {{ .Params.import }}{{ $version }}<br/>
</body>
</html>