feat: go get vanity url for abra

This commit is contained in:
2021-08-12 16:01:42 +01:00
parent ff200f56d1
commit db538b9d1a
5 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html><html>
<head>
{{if .Page.Params.vanity -}}
{{ partial "goimport/goimport.html" . }}
{{- end}}
<title>{{ .Permalink }}</title>
<link rel="canonical" href="{{ .Permalink }}"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0; url={{ .Permalink }}" />
</head>
</html>

View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<head>
{{ partial "goimport/goimport.html" . }}
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0; url={{.Params.vanity}}">
</head>
</html>

View File

@ -0,0 +1,2 @@
<meta name="go-import" content="coopcloud.tech{{substr .RelPermalink 0 -1}} git {{.Params.vanity}}">
<meta name="go-source" content="coopcloud.tech{{substr .RelPermalink 0 -1}} {{.Params.vanity}} {{.Params.vanity}}/tree/main{/dir} {{.Params.vanity}}/blob/main{/dir}/{file}#L{line}">