From db538b9d1a2d70572ae3750b7abf7f683fe8c021 Mon Sep 17 00:00:00 2001 From: Roxie Gibson Date: Thu, 12 Aug 2021 16:01:42 +0100 Subject: [PATCH] feat: go get vanity url for abra --- config.toml | 5 ++++- content/code/abra.md | 18 ++++++++++++++++++ themes/coopcloud.tech/layouts/aliases.html | 11 +++++++++++ themes/coopcloud.tech/layouts/code/single.html | 7 +++++++ .../layouts/partials/goimport/goimport.html | 2 ++ 5 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 content/code/abra.md create mode 100644 themes/coopcloud.tech/layouts/aliases.html create mode 100644 themes/coopcloud.tech/layouts/code/single.html create mode 100644 themes/coopcloud.tech/layouts/partials/goimport/goimport.html diff --git a/config.toml b/config.toml index 7ca1ca5..835f833 100644 --- a/config.toml +++ b/config.toml @@ -34,4 +34,7 @@ enableemoji = true link = "https://social.coop/@coopcloud" [[params.links.footer]] name = "Twitter" - link = "https://twitter.com/coop_cloud" \ No newline at end of file + link = "https://twitter.com/coop_cloud" + +[Permalinks] +code = "/:filename/" \ No newline at end of file diff --git a/content/code/abra.md b/content/code/abra.md new file mode 100644 index 0000000..dd909f8 --- /dev/null +++ b/content/code/abra.md @@ -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", +] ++++ \ No newline at end of file diff --git a/themes/coopcloud.tech/layouts/aliases.html b/themes/coopcloud.tech/layouts/aliases.html new file mode 100644 index 0000000..7b8d248 --- /dev/null +++ b/themes/coopcloud.tech/layouts/aliases.html @@ -0,0 +1,11 @@ + + + {{if .Page.Params.vanity -}} + {{ partial "goimport/goimport.html" . }} + {{- end}} + {{ .Permalink }} + + + + + \ No newline at end of file diff --git a/themes/coopcloud.tech/layouts/code/single.html b/themes/coopcloud.tech/layouts/code/single.html new file mode 100644 index 0000000..85c8534 --- /dev/null +++ b/themes/coopcloud.tech/layouts/code/single.html @@ -0,0 +1,7 @@ + + + {{ partial "goimport/goimport.html" . }} + + + + \ No newline at end of file diff --git a/themes/coopcloud.tech/layouts/partials/goimport/goimport.html b/themes/coopcloud.tech/layouts/partials/goimport/goimport.html new file mode 100644 index 0000000..221c5d1 --- /dev/null +++ b/themes/coopcloud.tech/layouts/partials/goimport/goimport.html @@ -0,0 +1,2 @@ + + \ No newline at end of file