Make unlisted gists not SEO crawlable (#78)

This commit is contained in:
Thomas Miceli
2023-07-17 03:58:45 +02:00
committed by GitHub
parent 038d81df2d
commit 5bb5886770
2 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,10 @@ func gistInit(next echo.HandlerFunc) echo.HandlerFunc {
setData(ctx, "hasLiked", hasLiked)
}
if gist.Private {
setData(ctx, "NoIndex", true)
}
return next(ctx)
}
}