-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new and improved FAQ page + various other fixes
- Loading branch information
1 parent
81ce340
commit 7f662fd
Showing
12 changed files
with
145 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ title: "Data" | |
description: "How does the DHRIFT project handle my data?" | ||
order: 6 | ||
--- | ||
|
||
Very carefully |
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
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 |
---|---|---|
|
@@ -15,6 +15,10 @@ | |
<!-- Self host font --> | ||
<!-- <link rel="preload" href="{{ '/assets/fonts/playfair-display.woff2' | relative_url }}" as="font" type="font/woff2" crossorigin> --> | ||
<link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | ||
|
||
{% if page.description %}<meta name="description" content="{{ page.description }}" />{% endif %} | ||
{% if page.meta_title %}<meta property="og:title" content="{{ page.meta_title }}"/>{% else %}<meta property="og:title" content="{{ page.title }}"/>{% endif %} | ||
|
@@ -38,6 +42,7 @@ | |
{% endif %} | ||
{{content}} | ||
</div> | ||
{% include logo-banner.html %} | ||
{% include footer.html %} | ||
{% include sub-footer.html %} | ||
<script type="text/javascript" src="{{ '/assets/js/scripts.js' | relative_url }}"></script> | ||
|
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,15 +1,36 @@ | ||
--- | ||
layout: default | ||
bodyClass: "page-service" | ||
id: "faq-page" | ||
--- | ||
|
||
<div class="container pt-0 pb-0"> | ||
<div class="row justify-content-start"> | ||
<div class="col-12 col-md-8"> | ||
<div class="service service-single"> | ||
<h1 class="title">{{page.title}}</h1> | ||
<div class="content">{{content}}</div> | ||
{% assign sorted_pages = site.faqs | sort: "order" %} | ||
|
||
<div class="container pt-0"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
{% for faq in sorted_pages %} | ||
<div class="faq service-summary"> | ||
<div class="faq-content"> | ||
<div class="row"> | ||
<div class="col-10"> | ||
<h2 class="service-title faq-title">{{ faq.title }}</h2> | ||
<p class="description">{{ faq.description }}</p> | ||
</div> | ||
<div class="col-2 text-right"> | ||
<button class="toggle-button rotate-icon" data-toggle="collapse" data-target="#faq-{{ forloop.index }}"> | ||
<i class="fa fa-angle-down fa-3x" aria-hidden="true"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div id="faq-{{ forloop.index }}" class="collapse"> | ||
<div class="answer">{{ faq.content }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
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,15 +1,20 @@ | ||
// get the current page url and name and update the page name in the header | ||
|
||
document.addEventListener("DOMContentLoaded", function () { | ||
let currentPageURL = window.location.pathname; | ||
|
||
currentPageURL = currentPageURL.replace(/\/$/, ''); | ||
|
||
let pageName = currentPageURL.split("/").pop().replace(".html", ""); | ||
pageName = pageName.charAt(0).toUpperCase() + pageName.slice(1); | ||
|
||
let currentPageNameElement = document.getElementById("currentPageName"); | ||
if (currentPageNameElement) { | ||
currentPageNameElement.textContent = pageName; | ||
} | ||
}); | ||
let currentPageURL = window.location.pathname; | ||
|
||
currentPageURL = currentPageURL.replace(/\/$/, ''); | ||
|
||
let pageName = currentPageURL.split("/").pop().replace(".html", ""); | ||
pageName = pageName.charAt(0).toUpperCase() + pageName.slice(1); | ||
|
||
//changing faq doesn't seem to be working for some reason, unsure why :( | ||
if (pageName.toLowerCase() === "faq") { | ||
pageName = "Frequently Asked Questions"; | ||
console.log("pageName: " + pageName); | ||
} | ||
|
||
let currentPageNameElement = document.getElementById("currentPageName"); | ||
if (currentPageNameElement) { | ||
currentPageNameElement.textContent = pageName; | ||
} | ||
}); | ||
|
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,8 +1,5 @@ | ||
--- | ||
title: FAQs | ||
layout: faqs | ||
description: Frequently Asked Questions | ||
intro_image_absolute: true | ||
intro_image_hide_on_mobile: true | ||
layout: faq | ||
title: "FAQ" | ||
permalink: /faq/ | ||
--- | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.