Reimplement announcements (#21586)
* Reimplement announcements Signed-off-by: Celeste Horgan <celeste@cncf.io> Address deprecation-warning styling Signed-off-by: Celeste Horgan <celeste@cncf.io> Use partial only Signed-off-by: Celeste Horgan <celeste@cncf.io> Refine Signed-off-by: Celeste Horgan <celeste@cncf.io> * Turn on announcements for preview only Signed-off-by: Celeste Horgan <celeste@cncf.io> * Update config.toml Co-authored-by: Celeste Horgan <celeste@cncf.io> Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
<div class="content announcement main-section">
|
||||
|
||||
<h4 class="announcement">
|
||||
{{ .Page.Param "announcement_title" | markdownify }}
|
||||
{{ T "announcement_title" | markdownify }}
|
||||
</h4>
|
||||
<p class="announcement">{{ .Page.Param "announcement_message_compact" | markdownify }}</p>
|
||||
<p class="announcement">{{ T "announcement_message" | markdownify }}</p>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -22,7 +22,7 @@
|
||||
{{- if .Site.Params.announcement }}
|
||||
<link rel="stylesheet" href="{{ "css/announcement.css" | relURL }}">
|
||||
{{- end }}
|
||||
{{- if .Params.deprecated }}
|
||||
{{- if .Site.Params.deprecated }}
|
||||
<link rel="stylesheet" href="{{ "css/deprecation-warning.css" | relURL }}">
|
||||
{{- end }}
|
||||
{{- if or (eq .Params.class "gridPage") (eq .Params.class "gridPage gridPageHome") }}
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
{{ if .Param "deprecated" }}
|
||||
{{ if .Site.Param "deprecated" }}
|
||||
<section id="deprecationWarning">
|
||||
<main>
|
||||
<div class="content deprecation-warning">
|
||||
<h3>
|
||||
Kubernetes {{ .Param "version" }}
|
||||
{{ T "deprecation_warning" }}
|
||||
<a href="{{ site.Params.currentUrl }}">{{ T "latest_version" }}</a>
|
||||
{{ T "deprecation_title" }} {{ .Param "version" }}
|
||||
</h3>
|
||||
<p> Kubernetes {{ .Param "version" }} {{ T "deprecation_warning" }}
|
||||
<a href="{{ site.Params.currentUrl }}">{{ T "latest_version" }}</a>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -4,11 +4,11 @@
|
||||
<div class="content announcement main-section">
|
||||
|
||||
<h3>
|
||||
{{ .Page.Param "announcement_title" | markdownify }}
|
||||
{{ T "announcement_title" | markdownify }}
|
||||
</h3>
|
||||
<p>{{ .Page.Param "announcement_message_full" | markdownify }}</p>
|
||||
<p>{{ T "announcement_message" | markdownify }}</p>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user