Skip to content

Commit

Permalink
Merge pull request #11 from mtwente/site_layout
Browse files Browse the repository at this point in the history
General Site Setup and Layout
  • Loading branch information
mtwente authored Jun 1, 2024
2 parents 28af5f6 + a256826 commit 7be2820
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 56 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source-code: https://github.com/mtwente/maxvogt
# SITE SETTINGS
#
# title of site appears in banner
title: Morphologies of Arriving
title: Max Vogt – Morphologies of Arriving
# tagline, a short phrase that will appear throughout the site in the top banner
tagline: Showcasing the Design Philosophy of Max Vogt's Railway Stations
# description appears in meta tags and other locations
Expand Down
8 changes: 4 additions & 4 deletions _data/config-theme-colors.csv
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
color_class,color
primary,
secondary,
success,
primary,#2d327d
secondary,#686868
success,#A20013
info,
warning,
danger,
light,
dark,
dark,#151515
6 changes: 3 additions & 3 deletions _data/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ search-child-objects: true # true / false - if true, child objects will appear o
navbar-color: navbar-dark
# navbar background color
# Choose from bg-primary, bg-secondary, bg-success, bg-danger, bg-warning, bg-info, bg-light, bg-dark, bg-white
navbar-background: bg-dark
navbar-background: bg-primary

# BOOTSWATCH THEMES [optional!]
# You can replace the standard Bootstrap theme with a Bootswatch (https://github.com/thomaspark/bootswatch) option
Expand All @@ -96,8 +96,8 @@ bootswatch: # leave blank or comment out for plain bootstrap

# THEME FONTS [optional!]
base-font-size: 1.2em
text-color: "#191919"
link-color: "#0d6efd"
text-color: "#5A5A5A"
link-color: "#06348B"
base-font-family: # comment out for bootstrap defaults. e.g. Roboto
font-cdn: # add font stylesheet, e.g. <link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">

Expand Down
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>
2 changes: 1 addition & 1 deletion _includes/item/citation-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="card-body">
<dl>
<dt>Preferred Citation:</dt>
<dd>"{{ page.title }}", {{ site.title }}, {{ site.organization-name }}</dd>
<dd>Twente, Moritz and Luisa Omonsky 2024: {{ page.title }}. {{ site.title }}.</dd>
<dt>Reference Link:</dt>
<dd>{{ page.url | absolute_url }}</dd>
</dl>
Expand Down

0 comments on commit 7be2820

Please sign in to comment.