Skip to content

Commit

Permalink
Add warnings to nightly guides, and make them not indexed (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: stianst <[email protected]>
  • Loading branch information
stianst authored Oct 30, 2024
1 parent f5161ef commit eb75ecb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
9 changes: 8 additions & 1 deletion pages/nightly/guides.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#import "/templates/template.ftl" as tmpl>

<@tmpl.page current="nightly-guides" title="Guides / Nightly Release">
<@tmpl.page current="nightly-guides" title="Guides / Nightly Release" noindex=true>

<script src="${links.getResource('js/guides.js')}" type="text/javascript"></script>

Expand All @@ -22,7 +22,14 @@
</nav>

<div class="jumbotron jumbotron-fluid bg-light kc-bg-triangles pt-4">

<div class="container">
<div class="alert alert-warning" role="alert">
<h4>Nightly release</h4>

These guides are for the unstable nightly release, for the latest release go <a href="${links.guides}">here</a>.
</div>

<#list guides.categories as c>
<div class="row guide-category" id="${c.id}">
<h2>${c.title}</h2>
Expand Down
2 changes: 1 addition & 1 deletion pages/nightly/index.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#import "/templates/template.ftl" as tmpl>

<@tmpl.page current="nightly" title="Nightly Release">
<@tmpl.page current="nightly" title="Nightly Release" noindex=true>

<div class="container mt-5">
<h1>Nightly release</h1>
Expand Down
4 changes: 4 additions & 0 deletions resources/css/keycloak.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
--bs-primary-rgb: 66, 139, 202;
}

.no-top-margin {
margin-top: 0 !important;
}

.fs-xlarge {
font-size: 3.5rem;
}
Expand Down
10 changes: 9 additions & 1 deletion templates/guide-entry.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#import "/templates/template.ftl" as tmpl>

<@tmpl.page current="search" title="${guide.title}">
<@tmpl.page current="search" title="${guide.title}" noindex=guide.snapshot>

<div class="container mt-5 kc-article">
<div class="row">
Expand All @@ -13,6 +13,14 @@
</ol>
</nav>

<#if guide.snapshot>
<div class="mb-4 alert alert-warning" role="alert">
<h4 class="no-top-margin">Nightly release</h4>

This guide is for the unstable nightly release, for the latest release go <a href="${links.guides}">here</a>.
</div>
</#if>

<div class="mb-4">
<h1>${guide.title}</h1>
<#if guide.summary??>
Expand Down

0 comments on commit eb75ecb

Please sign in to comment.