From 7a573575d15b29f7a173f7f0d4e49baf8f181d42 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Mon, 22 Apr 2019 18:20:31 -0700 Subject: [PATCH] Use splat redirects Signed-off-by: lucperkins --- data/redirects.yaml | 9 ++++++++- layouts/index.redirects | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/data/redirects.yaml b/data/redirects.yaml index 2a898e8..818b227 100644 --- a/data/redirects.yaml +++ b/data/redirects.yaml @@ -6,4 +6,11 @@ - proto - web - dart -- community \ No newline at end of file +- community +- node +- swift +- php +- java-api-checker +- docker-library +- experiments +- haskell diff --git a/layouts/index.redirects b/layouts/index.redirects index c705406..5701af9 100644 --- a/layouts/index.redirects +++ b/layouts/index.redirects @@ -1,4 +1,4 @@ {{- $redirects := site.Data.redirects -}} -{{- range $redirects }} -/grpc-{{ . }} https://github.com/grpc/grpc-{{ . }} -{{- end }} +{{- range $redirects -}} +/grpc-{{ . }}/* https://github.com/grpc/grpc-{{ . }}/:splat +{{ end -}}