diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index 738d32fd25..c8077cd476 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -211,17 +211,16 @@ other = "JavaScript must be [enabled](https://www.enable-javascript.com/) to vie [katacoda_message] other = """<h4>Shutdown of interactive tutorials</h4> -<p>The interactive tutorials on this website are being shut down. The Kubernetes -project hopes to reinstate a similar interactive learning option in the long -term.</p> -<p>The shutdown follows O'Reilly Media's 2019 <a -href="https://www.oreilly.com/content/oreilly-acquires-katacoda-and-a-new-way-for-2-5m-customers-to-learn/">acquisition</a> -of Katacoda.</p> +<p>The interactive tutorials previously on this website have been shut down.</p> <p>Kubernetes is grateful to O'Reilly and Katacoda for many years of helping people take their first steps in learning Kubernetes.</p> -<p>The tutorials will cease to function after the <b>31<sup>st</sup> of March, -2023</b>. For more information, see "<a href="/blog/2023/02/14/kubernetes-katacoda-tutorials-stop-from-2023-03-31/">Free Katacoda Kubernetes Tutorials Are Shutting -Down</a>."</p>""" +<p>The shutdown followed O'Reilly Media's 2019 +<a href="https://www.oreilly.com/content/oreilly-acquires-katacoda-and-a-new-way-for-2-5m-customers-to-learn/">acquisition</a> +of Katacoda.</p> +<hr /> +<p>The tutorials ceased to function after the <b>31<sup>st</sup> of March, +2023</b>. You are seeing this notice because this particular page has not yet been updated +following that shutdown.</p>""" [latest_release] other = "Latest Release:" diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 8bc6fc7a0a..6db1b9a0de 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,5 +1,10 @@ {{ define "main" }} <div class="td-content"> + {{- if .HasShortcode "kat-button" -}} + <div class="pageinfo pageinfo-secondary"> + {{ T "katacoda_message" | safeHTML }} + </div> + {{- end -}} {{ partial "docs/content-page" (dict "ctx" . "page" .) }} <!-- Partial "docs/api-reference-links" determines API reference links for 'partial/page-meta-links.html' --> {{ partial "docs/api-reference-links" . }} diff --git a/layouts/shortcodes/kat-button b/layouts/shortcodes/kat-button deleted file mode 100644 index 4dcdfa5653..0000000000 --- a/layouts/shortcodes/kat-button +++ /dev/null @@ -1,2 +0,0 @@ -<script defer src="https://katacoda.com/embed.js"></script> -<button class="button" onclick="window.katacoda.init(); ">Launch Terminal</button> diff --git a/layouts/shortcodes/kat-button.html b/layouts/shortcodes/kat-button.html new file mode 100644 index 0000000000..d987ff88e3 --- /dev/null +++ b/layouts/shortcodes/kat-button.html @@ -0,0 +1,2 @@ +{{/* placeholder */}} +{{/* See https://k8s.io/blog/2023/02/14/kubernetes-katacoda-tutorials-stop-from-2023-03-31/ */}} diff --git a/layouts/shortcodes/katacoda-removal.html b/layouts/shortcodes/katacoda-removal.html deleted file mode 100644 index a00899a2e7..0000000000 --- a/layouts/shortcodes/katacoda-removal.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class="pageinfo pageinfo-secondary"> -{{ T "katacoda_message" | safeHTML }} -</div> diff --git a/layouts/shortcodes/katacoda-tutorial.html b/layouts/shortcodes/katacoda-tutorial.html index a17b4871a2..d987ff88e3 100644 --- a/layouts/shortcodes/katacoda-tutorial.html +++ b/layouts/shortcodes/katacoda-tutorial.html @@ -1 +1,2 @@ -<script defer src="https://katacoda.com/embed.js"></script> +{{/* placeholder */}} +{{/* See https://k8s.io/blog/2023/02/14/kubernetes-katacoda-tutorials-stop-from-2023-03-31/ */}}