Skip to content

Commit

Permalink
Custom hero image
Browse files Browse the repository at this point in the history
  • Loading branch information
Lydia Scarf authored and BryanQuigley committed Mar 29, 2023
1 parent 5de5991 commit 7bbb321
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ title: JKAN
greeting: Welcome to JKAN
description: A lightweight, backend-free open data portal, powered by Jekyll.
logo: /img/jkan.png
hero_image: /img/homepage-hero.jpg

# Site theme
jkan_theme: Default
Expand Down
Binary file added img/homepage-hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
layout: default
---

<div class="p-5 mb-4 bg-light rounded-3">
<div class="container-fluid py-5">
<div class="container d-flex flex-row p-5 mb-4 bg-light rounded-3 justify-content-between">
<div class="col-lg-6 justify-content-center">
<h1 class="display-5">{{ site.greeting }}</h1>
<p class="col-md-8 fs-4">{{ site.description }}</p>
<p class="col-md-8 fs-4 mb-4">{{ site.description }}</p>
<a href="{{ "/datasets" | relative_url }}" class="btn btn-primary btn-lg" role="button">Start browsing</a>
</div>
<img alt="Example homepage hero image" class="d-none d-md-block img-responsive rounded-circle" src="{{ site.baseurl }} {{ site.hero_image }}" style="max-height: 300px" />
</div>

<h3>Browse by Category</h3>
Expand Down

0 comments on commit 7bbb321

Please sign in to comment.