Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
restructure fastpages
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizer1v committed Jul 19, 2020
1 parent 3f0ea09 commit 491ee1f
Show file tree
Hide file tree
Showing 4 changed files with 981 additions and 0 deletions.
50 changes: 50 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}

{% if site.use_math %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"> </script>
<script src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "[%", right: "%]", display: true },
{ left: "$", right: "$", display: false }
]
});
});
</script>
{% endif %}
<script>
function wrap_img(fn) {
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") {
var elements = document.querySelectorAll(".post img");
Array.prototype.forEach.call(elements, function(el, i) {
if (el.getAttribute("title") && (el.className != "emoji")) {
const caption = document.createElement('figcaption');
var node = document.createTextNode(el.getAttribute("title"));
caption.appendChild(node);
const wrapper = document.createElement('figure');
wrapper.className = 'image';
el.parentNode.insertBefore(wrapper, el);
el.parentNode.removeChild(el);
wrapper.appendChild(el);
wrapper.appendChild(caption);
}
});
} else { document.addEventListener('DOMContentLoaded', fn); }
}
window.onload = wrap_img;
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
// add link icon to anchor tags
var elem = document.querySelectorAll(".anchor-link")
elem.forEach(e => (e.innerHTML = '<i class="fas fa-link fa-xs"></i>'));
});
</script>
104 changes: 104 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
layout: default
---

<div class="home">

{% if site.paginate %}
{% assign rawposts = paginator.posts %}
{% else %}
{% assign rawposts = site.posts %}
{% endif %}


<!-- Hide posts if front matter flag hide:true -->
{% assign posts = ''|split:'' %}
{% for post in rawposts %}
{% if post.hide != true %}
{% assign posts = posts|push:post%}
{% endif %}
{% endfor %}

{%- if posts.size > 0 -%}
{%- for post in posts -%}
{%- if site.show_description and post.description -%}
{{ post.content }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}


<a class="button" href="#">
View National Level FRT Systems
</a>


<h1 class="text-center">Petition</h1>

<p class="text-center">The petition is for calling on/asking the government to immediately put a moratorium on the development and use of FRT by government authorities</p>

<a class="button" href="{{ site.url }}/petition">
Sign the Petition
</a>



<h1
style="
text-align: center;
margin-top: 50px;
">
Submit an FRT
</h1>

<p class="text-center">Help us identify an FRT system near you.</p>

<a class="button" href="{{ site.url }}/submit_frt">
Submit an FRT
</a>

<h1
style="
text-align: center;
margin-top: 50px;
"
>Case Studies</h1>

<p class="text-center">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>

<a class="button" href="{{ site.url }}/case_studies">
View Case Studies
</a>


<h1
style="
text-align: center;
margin-top: 50px;
"
>RTIs
</h1>

<p class="text-center">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>

<a class="button" href="{{ site.url }}/rti">
View RTIs
</a>

</div>

<hr />
Loading

0 comments on commit 491ee1f

Please sign in to comment.