feat: go get vanity url for abra
This commit is contained in:
parent
ff200f56d1
commit
db538b9d1a
@ -34,4 +34,7 @@ enableemoji = true
|
||||
link = "https://social.coop/@coopcloud"
|
||||
[[params.links.footer]]
|
||||
name = "Twitter"
|
||||
link = "https://twitter.com/coop_cloud"
|
||||
link = "https://twitter.com/coop_cloud"
|
||||
|
||||
[Permalinks]
|
||||
code = "/:filename/"
|
18
content/code/abra.md
Normal file
18
content/code/abra.md
Normal 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",
|
||||
]
|
||||
+++
|
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}">
|
Loading…
x
Reference in New Issue
Block a user