Skip to content

Commit

Permalink
Fixes source images and removes sources from navigation.
Browse files Browse the repository at this point in the history
Addressing cross-browser problems in how source images are displayed.
However, also removing the sources pages from navigation.
Not especially useful in how we're currently using it.
Not completely removed as might be worth revisiting if we start hosting data
from other sources.
  • Loading branch information
ajparsons committed Apr 4, 2018
1 parent b7f3c90 commit ef85039
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ schema: default
navigation:
- title: Datasets
url: /datasets/
- title: Sources
url: /sources/


# Collections
collections:
datasets:
Expand Down
10 changes: 4 additions & 6 deletions sources.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
{% for organization in site.organizations %}
{% assign dataset_count = site.datasets | where:"organization", organization.title | size %}
<div class="media">
<div class="media-left">
{% if organization.logo and organization.logo != empty %}

<div class="media-body">
<h4 class="media-heading"> {% if organization.logo and organization.logo != empty %}
<a href="{{ site.baseurl }}{{ organization.url }}" class="organization-thumbnail">
<img class="media-object" src="{{ organization.logo }}" alt="{{ organization.title }}">
</a>
{% endif %}
</div>
<div class="media-body">
<h4 class="media-heading"><a href="{{ site.baseurl }}{{ organization.url }}">{{ organization.title }}</a></h4>
{% endif %}<a href="{{ site.baseurl }}{{ organization.url }}">{{ organization.title }}</a></h4>
<p>{{ organization.description }}</p>
<p><a href="{{ site.baseurl }}/datasets/?organization={{ organization.title | slugify }}">{{ dataset_count }} datasets</a></p>
</div>
Expand Down

0 comments on commit ef85039

Please sign in to comment.