Improve announcements implementation
Signed-off-by: Celeste Horgan <celeste@cncf.io> Co-authored-by: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
{{ if .Param "announcement"}}
|
||||
<section id="announcement">
|
||||
<main>
|
||||
<div class="content announcement">
|
||||
<h3>
|
||||
{{ .Param "announcement_message" | markdownify }}
|
||||
</h3>
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ if .Page.Param "announcement" }}
|
||||
<section lang="en" id="announcement" style="background-color:{{ .Page.Param "announcement_bg" }}">
|
||||
<main>
|
||||
<div class="content announcement main-section">
|
||||
|
||||
<h4 class="announcement">
|
||||
{{ .Page.Param "announcement_title" | markdownify }}
|
||||
</h4>
|
||||
<p class="announcement">{{ .Page.Param "announcement_message_compact" | markdownify }}</p>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user