From 84cddca2b5e2a08f3ea4a5d98b745a84e8273d00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Je=C5=BEek?= <252651@mail.muni.cz>
Date: Fri, 14 Jun 2024 11:00:49 +0200
Subject: [PATCH] Added information on base html about osbolete documentation

---
 themes/hugo-geekdoc/layouts/_default/baseof.html | 7 +++++++
 themes/hugo-geekdoc/static/custom.css            | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/themes/hugo-geekdoc/layouts/_default/baseof.html b/themes/hugo-geekdoc/layouts/_default/baseof.html
index aea0a1a..a345ff2 100644
--- a/themes/hugo-geekdoc/layouts/_default/baseof.html
+++ b/themes/hugo-geekdoc/layouts/_default/baseof.html
@@ -25,6 +25,13 @@
                 {{ partial "menu" . }}
             </aside>
             {{ end }}
+            
+            <blockquote class="container gdoc-hint danger obsolete">
+                <p><strong>WARNING</strong></p>
+                <p>
+                    This documentation is obsolete and not maintained anymore, please use new <a class="gdoc-markdown__link" href="https://docs.e-infra.cz/compute/openstack/">e-INFRA CZ documentation</a>
+                </p>  
+            </blockquote>
 
             <div class="gdoc-page">
                 {{ template "main" . }}
diff --git a/themes/hugo-geekdoc/static/custom.css b/themes/hugo-geekdoc/static/custom.css
index e488c91..845af57 100644
--- a/themes/hugo-geekdoc/static/custom.css
+++ b/themes/hugo-geekdoc/static/custom.css
@@ -1 +1,5 @@
 /* You can add custom styles here. */
+.obsolete{
+  filter: saturate(2.5) brightness(.85);
+  border-left: 4px solid #d50000;  
+}
\ No newline at end of file
-- 
GitLab