smithy

commit 8a44b970ddcf6a38a6d9013f44b1ec3ca14500a3

Author: Honza Pokorny <honza@pokorny.ca>

Use title on repo-index if available

 pkg/smithy/templates/repo-index.html | 4 ++++


diff --git a/pkg/smithy/templates/repo-index.html b/pkg/smithy/templates/repo-index.html
index 0277a5c2728989ea035b152603468e4fd9d4bf72..4000a7d50bd90176c018a26fa18720d76b8c6a27 100644
--- a/pkg/smithy/templates/repo-index.html
+++ b/pkg/smithy/templates/repo-index.html
@@ -2,7 +2,11 @@ {{ template "header" . }}
 
 {{ $repo := .RepoName }}
 
+{{ if .Repo.Meta.Title }}
+<h1>{{ .Repo.Meta.Title }}</h1>
+{{ else }}
 <h1>{{ .RepoName }}</h1>
+{{ end }}
 
 <nav class="navbar navbar-expand navbar-light bg-light">
   <div class="collapse navbar-collapse" id="navbarNav">