Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warnings to nightly guides, and make them not indexed #523

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading