Break submenus out into separately included files for reuse in sidebars.

This commit is contained in:
Ben Sturmfels 2021-10-19 13:53:07 +11:00 committed by Bradley M. Kuhn
parent 8270a221b9
commit 37d67fb1da
6 changed files with 35 additions and 39 deletions

View file

@ -3,18 +3,10 @@
<div id="container">
<div id="sidebar" class="{% block submenuselection %}other{% endblock %}">
<h2>{% block category %}About{% endblock %}</h2>
<ul>
<li class="Overview"><a href="/about/index.html">Overview</a></li>
<li class="Contact"><a href="/about/contact">Contact</a></li>
<li class="Directors"><a href="/about/board/">Directors</a></li>
<li class="Staff"><a href="/about/staff/">Staff</a></li>
<li class="Eval"><a href="/about/eval-committee/">Evaluation Committee</a></li>
<li class="Outside"><a href="/about/outside/">Outside Counsel, et alia</a></li>
<li class="Filings"><a href="/about/filings/">Filings</a></li>
<li class="License"><a href="/about/license/">License &amp; Sources</a></li>
</ul>
{% include 'submenus/who_we_are_partial.html' %}
</div>
<div id="mainContent">{% block content %}{% endblock %}
</div>
</div>
{% endblock %}
g

View file

@ -71,41 +71,16 @@
</li>
<li class="home dn db-ns"><a href="/">Home</a></li>
<li class="what"><a href="#fixme">What we do</a>
<ul>
<li><a href="/projects/">Member Projects</a></li>
<li><a href="/copyleft-compliance/">Copyleft Compliance</a></li>
<li><a href="/vizio/">Vizio</a></li>
<li><a href="#fixme">FAQs</a></li>
</ul>
{% include 'submenus/what_we_do_partial.html' %}
</li>
<li class="who"><a href="/about/">Who we are</a>
<ul>
<li><a href="/sponsors/">Sponsors</a></li>
<li><a href="/sustainer/">Sustainers</a></li>
<li><a href="/about/board/">Board of Directors</a></li>
<li><a href="/about/staff/">Staff</a></li>
<li><a href="/about/eval-committee/">Evaluation Committee</a></li>
<li><a href="/about/outside/">Outside Counsel, et alia</a></li>
<li><a href="#fixme">Transparency</a></li>
<li><a href="/about/contact/">Contact</a></li>
</ul>
{% include 'submenus/who_we_are_partial.html' %}
</li>
<li class="learn"><a href="#fixme">Learn</a>
<ul>
<li><a href="/copyleft-compliance/glossary.html">Glossary of Terms</a></li>
<li><a href="/press/qanda.html">Q&A</a></li>
<li><a href="#fixme">Recommended Resources</a></li>
<li><a href="#fixme">In The News</a></li>
<li><a href="/about/filings/">Public Filings</a></li>
</ul>
{% include 'submenus/learn_partial.html' %}
</li>
<li class="news"><a href="/news/">News</a>
<ul>
<li><a href="/news/">News Releases</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="#fixme">In The News</a></li>
<li><a href="/press/">Press</a></li>
</ul>
{% include 'submenus/news_partial.html' %}
</li>
</ul>
</div>

View file

@ -0,0 +1,7 @@
<ul>
<li><a href="/copyleft-compliance/glossary.html">Glossary of Terms</a></li>
<li><a href="/press/qanda.html">Q&A</a></li>
<li><a href="#fixme">Recommended Resources</a></li>
<li><a href="#fixme">In The News</a></li>
<li><a href="/about/filings/">Public Filings</a></li>
</ul>

View file

@ -0,0 +1,6 @@
<ul>
<li><a href="/news/">News Releases</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="#fixme">In The News</a></li>
<li><a href="/press/">Press</a></li>
</ul>

View file

@ -0,0 +1,6 @@
<ul>
<li><a href="/projects/">Member Projects</a></li>
<li><a href="/copyleft-compliance/">Copyleft Compliance</a></li>
<li><a href="/vizio/">Vizio</a></li>
<li><a href="#fixme">FAQs</a></li>
</ul>

View file

@ -0,0 +1,10 @@
<ul>
<li><a href="/sponsors/">Sponsors</a></li>
<li><a href="/sustainer/">Sustainers</a></li>
<li><a href="/about/board/">Board of Directors</a></li>
<li><a href="/about/staff/">Staff</a></li>
<li><a href="/about/eval-committee/">Evaluation Committee</a></li>
<li><a href="/about/outside/">Outside Counsel, et alia</a></li>
<li><a href="#fixme">Transparency</a></li>
<li><a href="/about/contact/">Contact</a></li>
</ul>