From 6ac6a48df026f5aa50d79a4317c4a461b7358740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 17 Sep 2024 08:02:27 +0200 Subject: [PATCH] docs: put releasenotes legend in snippet #917 --- .../content/basics/releasenotes/legend.en.md | 17 ++++++++++ .../content/basics/releasenotes/legend.pir.md | 6 ++++ .../layouts/releasenotes/views/article.html | 34 +------------------ 3 files changed, 24 insertions(+), 33 deletions(-) create mode 100644 exampleSite/content/basics/releasenotes/legend.en.md create mode 100644 exampleSite/content/basics/releasenotes/legend.pir.md diff --git a/exampleSite/content/basics/releasenotes/legend.en.md b/exampleSite/content/basics/releasenotes/legend.en.md new file mode 100644 index 0000000000..58164c37f8 --- /dev/null +++ b/exampleSite/content/basics/releasenotes/legend.en.md @@ -0,0 +1,17 @@ ++++ +[_build] + list = "never" + publishResources = false ++++ + +For a detailed list of changes, see the [history page](basics/history). + +- {{% badge color="fuchsia" icon="fa-fw fab fa-hackerrank" title=" " %}}0.126.0{{% /badge %}} The minimum required Hugo version. + +- {{% badge style="warning" title=" " %}}Breaking{{% /badge %}} A change that requires action by you after upgrading to assure the site is still functional. + +- {{% badge style="note" title=" " %}}Change{{% /badge %}} A change in default behavior that may requires action by you if you want to revert it. + +- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Marks new behavior you might find interesting or comes configurable. + +--- diff --git a/exampleSite/content/basics/releasenotes/legend.pir.md b/exampleSite/content/basics/releasenotes/legend.pir.md new file mode 100644 index 0000000000..3899a7c592 --- /dev/null +++ b/exampleSite/content/basics/releasenotes/legend.pir.md @@ -0,0 +1,6 @@ ++++ +[_build] + list = "never" + publishResources = false ++++ +{{< piratify >}} \ No newline at end of file diff --git a/exampleSite/layouts/releasenotes/views/article.html b/exampleSite/layouts/releasenotes/views/article.html index a4a37cf792..20be3c815c 100644 --- a/exampleSite/layouts/releasenotes/views/article.html +++ b/exampleSite/layouts/releasenotes/views/article.html @@ -5,39 +5,7 @@ {{ partial "heading-pre.html" . }}{{ partial "heading.html" . }}{{ partial "heading-post.html" . }} -

This document shows you what's new in the release and flags it with one of the following badges. For a detailed list of changes, see the {{ partial "shortcodes/link.html" (dict - "page" . - "url" "basics/history" - "content" "history page" -) }}.

- -
+{{ partial "partials/shortcodes/include.html" (dict "page" . "file" "basics/releasenotes/legend") | .RenderString }} {{ partial "article-content.html" . }}