Skip to content

Commit

Permalink
Add redirect for the metallb.io/metallb vanity url
Browse files Browse the repository at this point in the history
As part of the process of moving from metallb.universe.tf
to metallb.io, we'd have to rename the package.
In order to do so, a vanity url page must be implemented to refer
metallb.io/metallb to the actual repo.

Note: this could made parametric, and it will probably make sense to do
so if we need vanity urls for frr-k8s and / or a separated test repo.

Signed-off-by: Federico Paolinelli <[email protected]>
  • Loading branch information
fedepaol committed Feb 27, 2025
1 parent 7f612ff commit d72aef0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/content/metallb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "vanity url"
layout: vanityurl
---
12 changes: 12 additions & 0 deletions website/layouts/_default/vanityurl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="metallb.io/metallb git https://github.com/metallb/metallb">
<meta name="go-source" content="metallb.io/metallb https://github.com/metallb/metallb https://github.com/metallb/metallb/tree/master{/dir} https://github.com/metallb/metallb/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/metallb.io/metallb">
</head>
<body>
Nothing to see here; <a href="https://godoc.org/metallb.io/metallb">move along</a>.
</body>
</html>

0 comments on commit d72aef0

Please sign in to comment.