Improve announcements implementation

Signed-off-by: Celeste Horgan <celeste@cncf.io>

Co-authored-by: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
Celeste Horgan
2020-06-04 14:20:16 -07:00
parent 3b6e9e0d6f
commit 9caa83d75b
11 changed files with 81 additions and 32 deletions
+8 -2
View File
@@ -4,6 +4,13 @@
{{ partial "head.html" . }}
</head>
<body class="page">
{{ block "announcement" . }}
{{ if .IsHome }}
{{ partial "frontpage-announcement.html" . }}
{{ else }}
{{ partial "announcement.html" . }}
{{ end }}
{{ end }}
{{ partial "header.html" . }}
{{ block "hero" . }}
<!-- HERO -->
@@ -18,7 +25,6 @@
</section>
{{ block "post-hero" . }}{{ end }}
{{ end }}
<main>
<article class="page-content">
{{ block "main" . }}{{ end }}
@@ -28,4 +34,4 @@
{{ partialCached "footer.html" . }}
{{ partialCached "footer-scripts.html" . }}
</body>
</html>
</html>