From 01f00a444a27dd59390fcb98108c8f073cf6b293 Mon Sep 17 00:00:00 2001
From: tvluke <tvluke@chaotikum.org>
Date: Tue, 13 Feb 2024 17:53:09 +0100
Subject: [PATCH] footer and asside for werkstatt

---
 _includes/site-aside.html  | 12 ++++++------
 _includes/site-footer.html |  5 ++++-
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/_includes/site-aside.html b/_includes/site-aside.html
index 2e261d1b..6785fc45 100644
--- a/_includes/site-aside.html
+++ b/_includes/site-aside.html
@@ -57,16 +57,16 @@
       {% endif -%}
     </section>
 
-  {% elsif page.layout == "werkstatt" %}
+  {% elsif page.layout == "werkstatt" -%}
   <section class="section  section--description">
-  <h3>Offene Werkstatt</h3>
-  <h4>Geräte</h4>
+  <h3>Geräte</h3>
   <ul>
-  {% for tool in site.tools %}
-    <li><a href="#{{ tool.uid }}">{{ tool.name }}</a></li>
+  {% for tool in site.inventory %}
+    {%- if tool.sets contains 'werkstatt' -%}
+      <li><a href="#{{ tool.uid }}">{{ tool.name }}</a></li>
+    {% endif -%}
   {% endfor %}
   </ul>
-  <h4><a href="#werkzeug">Werkzeug</a></h4>
   </section>
   
   {% endif %}
diff --git a/_includes/site-footer.html b/_includes/site-footer.html
index 2fbcdcda..0de8f86a 100644
--- a/_includes/site-footer.html
+++ b/_includes/site-footer.html
@@ -1,8 +1,11 @@
 <footer class="footer">
   <div class="container">
     <div class="copyright  typeset">
-      <small class="small">Based on <a href="http://jekyllthemes.org/themes/alembic/">Alembic by David Darnes</a></small>
+      <small class="small">Based on <a href="http://jekyllthemes.org/themes/alembic/">Alembic by David Darnes</a></small> 
     </div>
+    <center>
+      <small class="small"><a href="https://git.chaotikum.org/chaotikum/website/-/blob/master/{{page.path}}">Edit this page.</a></small> 
+    </center>
     {% include nav-footer.html %}
   </div>
 </footer>
-- 
GitLab