Improve announcements implementation
Signed-off-by: Celeste Horgan <celeste@cncf.io> Co-authored-by: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user