Skip to content

Commit

Permalink
feat: update footer
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwente committed Jun 1, 2024
1 parent db95721 commit a256826
Showing 1 changed file with 11 additions and 47 deletions.
58 changes: 11 additions & 47 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,15 @@
<footer class="bg-dark pt-4 mt-auto container-fluid">
<footer class="bg-primary pt-4 mt-auto container-fluid">

<div class="col-md-12 text-center pt-2 pb-2">
<p class="text-white" id="footer-credits"><small>built with &nbsp;
<a href="https://collectionbuilder.github.io/" target="_blank" rel="noopener" title="CollectionBuilder">
<img src="{{ '/assets/img/collectionbuilder-logo.png' | relative_url }}" class="img-fluid" alt="CollectionBuilder" >
</a>

&nbsp; last update: {{ site.time | date: '%Y' }}
</small>
</p>

<div class="row border-bottom border-white pb-4 mb-2">

<div class="col-md-7 px-4 mt-3">

<h2 class="h4"><a href="{{ '/' | relative_url }}" class="text-white">{{ site.title }}</a></h2>
<p class="text-white"><small>{{ site.description }}</small></p>
<nav>
<ul id="footer-nav" class="nav nav-pills ">
{%- assign navItems = site.data.config-nav | where_exp: 'item', 'item.dropdown_parent == nil' -%}
{% for nav in navItems %}
<li class="nav-item">
{% if nav.stub %}
<a class="nav-link text-light{% if page.url == nav.stub %} active{% endif %}" href="{{ nav.stub | relative_url }}">{{ nav.display_name }}</a>
{%- else -%}
{% assign childStub = site.data.config-nav | where_exp: 'item', 'item.dropdown_parent == nav.display_name' | first %}
<a class="nav-link text-light{% if page.url == childStub.stub %} active{% endif %}" href="{{ childStub.stub | relative_url }}">{{ nav.display_name }}</a>
{% endif %}
</li>
{%- endfor -%}
</ul>
</nav>

</div>

<div class="col-md-5 mt-3 text-center">

{% if site.organization-logo-nav %} <p class="text-md-end">
<a href="{{ site.organization-link }}" target="_blank" rel="noopener">
<img id="footer-logo" class="img-fluid" src="{{ site.organization-logo-nav | relative_url }}" alt="{{ site.organization-name | escape }} home">
</a>
</p>
{% endif %}
<p class="text-white text-md-end" id="footer-credits">
<small><em>built with</em>
<a href="https://collectionbuilder.github.io/" target="_blank" rel="noopener" title="CollectionBuilder">
<img src="{{ '/assets/img/collectionbuilder-logo.png' | relative_url }}" class="img-fluid" alt="CollectionBuilder" >
</a>
</small>
</p>

</div>

</div>

<div class="col-md-12 text-center pt-3 pb-1">
<p class="text-white">Last updated {{ site.time | date: '%Y' }}</p>
</div>

</footer>

0 comments on commit a256826

Please sign in to comment.