From bec7f6d2ac9e5870b49a9865922d11202b79488d Mon Sep 17 00:00:00 2001
From: Deepak Khatri <deepaklorkhatri7@gmail.com>
Date: Tue, 20 Feb 2024 01:32:12 +0530
Subject: [PATCH] Update sidebar

---
 _templates/forum.html | 19 ++++++++++++++++---
 _templates/pdf.html   |  4 ++--
 conf.py               |  2 +-
 3 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/_templates/forum.html b/_templates/forum.html
index 4ba78dd..d3dfd9e 100644
--- a/_templates/forum.html
+++ b/_templates/forum.html
@@ -1,3 +1,16 @@
-<a class="btn btn-danger btn-sm btn-block text-light" role="button" href="https://bbb.io/gsocml">
-    <i class="fa-brands fa-discourse"></i> Discuss on Forum
-</a>
\ No newline at end of file
+{% if pagename == "ideas/index" %}
+    <a role="button" href="https://bbb.io/gsocml">
+        <i class="fa-brands fa-discourse"></i> More Ideas on Forum
+    </a>
+{% else %}
+    <a role="button" href="https://forum.beagleboard.org/new-topic?category=gsoc&tags=gsoc">
+        <i class="fa-brands fa-discourse"></i> Discuss on Forum
+    </a>
+{% endif %}
+
+<div class="card text-white bg-light mt-4 text-center">
+    <div class="card-body">
+      <p class="card-text">
+        <a href="https://www.beagleboard.org/">BeagleBoard.org</a> is all about being open, please discuss in public on our <a href="https://forum.beagleboard.org/">forum</a>!</p>
+    </div>
+</div>
\ No newline at end of file
diff --git a/_templates/pdf.html b/_templates/pdf.html
index 6f6e190..28a3c30 100644
--- a/_templates/pdf.html
+++ b/_templates/pdf.html
@@ -1,8 +1,8 @@
 {% if pages_slug != "index" %}
     {% for proposal_name in proposals %}
         {% if pagename == "proposals/"+proposal_name %}
-            <a class="btn btn-danger btn-sm btn-block text-light" role="button" href="{{proposal_name}}.pdf">
-                <i class="fa-solid fa-download"></i> {{proposal_name}}.pdf
+            <a role="button" href="{{proposal_name}}.pdf">
+                <i class="fa-solid fa-download"></i> Download PDF
             </a>
         {% endif %}
     {% endfor %}
diff --git a/conf.py b/conf.py
index 8e95902..ec38d9e 100644
--- a/conf.py
+++ b/conf.py
@@ -117,7 +117,7 @@ html_theme_options = {
     "footer_end": ["last-updated"],
     # "content_footer_items": ["last-updated"],
     "secondary_sidebar_items": {
-        "**": ["page-toc", "edit-this-page", "sourcelink","forum","pdf"]
+        "**": ["page-toc", "edit-this-page", "sourcelink","pdf","forum"]
     }
 }
 
-- 
GitLab