diff --git a/_includes/site-aside.html b/_includes/site-aside.html index 2e261d1b70fd905fabbef3f4ff1e33b6277025f2..6785fc455f86e1485eefee97b1b57b2060dadb81 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 2fbcdcdab18e4a6d76f3f47d4150fbb5d32c702a..0de8f86a42da305ef413393600ea9d8fe7adc627 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>