-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from NBISweden/search-function
Search function
- Loading branch information
Showing
15 changed files
with
148 additions
and
5,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# hugo.bp.datasets.nbis.se | ||
# Bigpicture landing pages web components | ||
|
||
Bigpicture landing pages and data description pages using HUGO | ||
|
||
## Start Development server | ||
``` | ||
hugo server --disableFastRender | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: "Search" | ||
title: "Dataset search" | ||
date: 2024-03-20T10:31:33+01:00 | ||
layout: test | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ .Site.LanguageCode }}"> | ||
<html lang="{{ .Site.LanguageCode }}"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
{{ partial "head.html" . }} | ||
|
||
<body> | ||
{{ partial "nav.html" . }} | ||
<!-- Page Header --> | ||
|
||
<header class="page-header" ,role="banner" > | ||
<h1 class="project-name" >{{ .Site.Title}} </h1> | ||
<h2 class="project-tagline">{{ .Site.Params.slogan }}</h2> | ||
</header> | ||
<main id="content" class="main-content" role="main"> | ||
{{ block "main" . }} | ||
|
||
{{ end }} | ||
|
||
</main> | ||
{{ partial "footer.html" . }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
{{ define "main" }} | ||
<h2> Bigpicture Datasets</h2> | ||
<div class="datasets-cards-parent-container"> | ||
{{ range .Pages }} | ||
<div class="dataset-card"> | ||
<div class="dataset-card-top-section"> | ||
<div class="dataset-card-image"><img src="{{.Site.BaseURL}}/img/bigpicture_logo.svg" alt="sdf"></div> | ||
<div class="dataset-card-title"><h4>{{ .Params.title }}</h4></div> | ||
</div> | ||
<div class="dataset-card-bottom-section"> | ||
<div class="dataset-card-doi"><p>DOI: {{.Params.doi}}</p></div> | ||
<div class="dataset-card-descrition"></div> | ||
</div> | ||
</div> | ||
{{end}} | ||
</div> | ||
|
||
<div id="search"> | ||
<script> | ||
window.addEventListener('DOMContentLoaded', (event) => { | ||
new PagefindUI({ element: "#search", showSubResults: true }); | ||
}); | ||
</script> | ||
<ul data-pagefind-ignore > | ||
{{ range .Pages }} | ||
<a href="{{ .RelPermalink }}"><p>{{ .Params.title }}</p></a> | ||
|
||
{{ end }} | ||
</ul> | ||
{{ .Content }} | ||
|
||
{{ .Content }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
<footer class="site-footer"> | ||
<div class="columns"> | ||
|
||
<div class="column text-center"> | ||
<a href="https://bigpicture.eu/">About</a> | ||
</div> | ||
<div class="column text-right"> | ||
<a href="/datasets/">Datasets</a> | ||
</div> | ||
</div> | ||
|
||
<div class = "footer-columns"> | ||
<div class="footer-container" > | ||
<img style="height: 100px;" src="{{.Site.BaseURL}}/img/bigpicture_logo.svg"> | ||
</div> | ||
<div class="footer-container" >© 2024 BIGPICTURE</div> | ||
</div> | ||
</footer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.