feat: go get vanity url for abra

This commit is contained in:
Roxie Gibson 2021-08-12 16:01:42 +01:00
parent ff200f56d1
commit db538b9d1a
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
5 changed files with 42 additions and 1 deletions

View File

@ -35,3 +35,6 @@ enableemoji = true
[[params.links.footer]]
name = "Twitter"
link = "https://twitter.com/coop_cloud"
[Permalinks]
code = "/:filename/"

18
content/code/abra.md Normal file
View File

@ -0,0 +1,18 @@
+++
title = "abra"
vanity = "https://git.coopcloud.tech/coop-cloud/go-abra"
aliases = [
"/abra/cli",
"/abra/cli/app",
"/abra/cli/formatter",
"/abra/cli/internal",
"/abra/cli/recipe",
"/abra/cli/server",
"/abra/client",
"/abra/client/convert",
"/abra/client/stack",
"/abra/config",
"/abra/secret",
"/abra/web",
]
+++

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}">