aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/index.html8
-rw-r--r--templates/primary-header.html9
2 files changed, 10 insertions, 7 deletions
diff --git a/templates/index.html b/templates/index.html
index 8da859b..1ceb974 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,13 +4,7 @@
{{ template "head" . }}
<body>
<main id="legitrx">
-<table id="header">
- <tr>
- <td class='logo' rowspan='2'><a href='/'><img src='/legitrx.png' alt='legitrx logo'/></a></td>
- <td class='main'>{{ .meta.Title }}</td>
- <tr><td class='sub'>{{ .meta.Description }}</td>
- </tr>
-</table>
+{{ template "primaryheader" . }}
<div class="content">
<table summary="repository list" class="list nowrap">
<tr class="nohover">
diff --git a/templates/primary-header.html b/templates/primary-header.html
new file mode 100644
index 0000000..f20417a
--- /dev/null
+++ b/templates/primary-header.html
@@ -0,0 +1,9 @@
+{{ define "primaryheader" }}
+<table id="header">
+ <tr>
+ <td class='logo' rowspan='2'><a href='/'><img src='/legitrx.png' alt='legitrx logo'/></a></td>
+ <td class='main'>{{ .meta.Title }}</td>
+ <tr><td class='sub'>{{ .meta.Description }}</td>
+ </tr>
+</table>
+{{ end }}