smithy

commit 2708ab032c7eacf4137b8579547e500c31013a70

Author: Doug Hellmann <doug@doughellmann.com>

templates: pass context to the header template

The header template cannot access any of the variables provided to the
parent template unless we pass the context pipeline to it.

Signed-off-by: Doug Hellmann <doug@doughellmann.com>

 include/404.html | 2 +-
 include/500.html | 2 +-
 include/blob.html | 2 +-
 include/commit.html | 2 +-
 include/index.html | 2 +-
 include/log.html | 2 +-
 include/refs.html | 2 +-
 include/repo-index.html | 2 +-
 include/tree.html | 2 +-


diff --git a/include/404.html b/include/404.html
index 9f9b0b119a9f3ef5bc97267225ef7364db971e3c..b17ba42852517162509cfba0bb55acc861f3ecc2 100644
--- a/include/404.html
+++ b/include/404.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 <h1>404 - Not Found</h1>
 




diff --git a/include/500.html b/include/500.html
index 313e95a3a6424d6f4720a1ae7250c5414256c988..ddbe63b913dae6724cf430b6c4a050072c2a0120 100644
--- a/include/500.html
+++ b/include/500.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 <h1>500 - Unexpected Server Error</h1>
 




diff --git a/include/blob.html b/include/blob.html
index b49af5b32ea2ad2858252a1effd8ff47b73c6d7d..b2c4fd440cb87875457d93ba48495b86b505cd7a 100644
--- a/include/blob.html
+++ b/include/blob.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 {{ $repo := .RepoName }}
 




diff --git a/include/commit.html b/include/commit.html
index 8a58cc0ca458e30ed13b3f218e1cd3ec4535d18e..6f2c4641f6f49afc8a0c9b868a4b083843d7da04 100644
--- a/include/commit.html
+++ b/include/commit.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 {{ $repo := .Name }}
 




diff --git a/include/index.html b/include/index.html
index 7d5697953c88006a211a3240934a1290a892cd0e..2c73a8cb3f27815edd1b5bb9591c84a39036aa88 100644
--- a/include/index.html
+++ b/include/index.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 <h3>{{ .Title }}</h3>
 




diff --git a/include/log.html b/include/log.html
index d3fe0a5f42267d3334126e40149acb4f2a1b9755..6a67bc3dbdb57e201cd56d7573d8ea23928387f0 100644
--- a/include/log.html
+++ b/include/log.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 {{ $repo := .Name }}
 




diff --git a/include/refs.html b/include/refs.html
index 6e3b766013dff022011ae02a81c482ad3e7da293..378fd2a0295d98d9f74268526a0f78a562407756 100644
--- a/include/refs.html
+++ b/include/refs.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 {{ $repo := .Name }}
 




diff --git a/include/repo-index.html b/include/repo-index.html
index 905954c96682e48938798320add5bb0240b7beb2..253367bd9ac12722f4d51ac50dba5e6bee9eb459 100644
--- a/include/repo-index.html
+++ b/include/repo-index.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 {{ $repo := .Name }}
 




diff --git a/include/tree.html b/include/tree.html
index ce6a716c5568394bc00abeda4b8190acd1215d60..15440d765fd4a3afa2db0d7457cb272e0fc7b2b9 100644
--- a/include/tree.html
+++ b/include/tree.html
@@ -1,4 +1,4 @@
-{{ template "header" }}
+{{ template "header" . }}
 
 {{ $repo := .RepoName }}
 {{ $subtree := .SubTree }}