feat: go get vanity url for abra
This commit is contained in:
11
themes/coopcloud.tech/layouts/aliases.html
Normal file
11
themes/coopcloud.tech/layouts/aliases.html
Normal 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>
|
7
themes/coopcloud.tech/layouts/code/single.html
Normal file
7
themes/coopcloud.tech/layouts/code/single.html
Normal 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>
|
@ -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}">
|
Reference in New Issue
Block a user