d549942636
Add shortcode, partial, and css so we can display an accouncement site-wide. Create a shortcode for use in content/en/ _index.html so announcement is displayed on website landing page. Create a partial for use in layouts/docs/baseof.html so announcement is displaye on every page in '<url>/docs/home' directory. Add two values to config.toml: announcement (boolean) for toggling display of announcement; announcement_message, which is the actual message. Signed-off-by: Aimee Ukasick <aimeeu.opensource@gmail.com>
11 lines
241 B
HTML
11 lines
241 B
HTML
{{ if .Page.Param "announcement" }}
|
|
<section id="announcement">
|
|
<main>
|
|
<div class="content announcement">
|
|
<h3>
|
|
{{ .Page.Param "announcement_message" | markdownify }}
|
|
</h3>
|
|
</div>
|
|
</main>
|
|
</section>
|
|
{{ end }} |