forked from markbarratt/okf-events-a
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #11 from school-of-data/allevents
All event page implemented as per #7
- Loading branch information
Showing
32 changed files
with
512 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% assign rawtags = "" %} | ||
{% for post in site.posts %} | ||
{% assign posttags = post.lang | join:"|" | append:"|" %} | ||
{% assign rawtags = rawtags | append:posttags %} | ||
{% endfor %} | ||
{% assign rawtags = rawtags | split:"|" | sort %} | ||
{% assign tags = "" %} | ||
{% for tag in rawtags %} | ||
{% if tag != "" %} | ||
{% if tags == "" %} | ||
{% assign tags = tag | split:"|" %} | ||
{% endif %} | ||
{% unless tags contains tag %} | ||
{% assign tags = tags | join:"|" | append:"|" | append:tag | split:"|" %} | ||
{% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
<div class="pt-1"> | ||
<p> | ||
<h3>Language</h3> | ||
{% for tag in tags %} | ||
<a href="{{ site.baseurl }}/events/lang.html#{{ tag | slugify }}" | ||
class="small post-meta-tag m-0.5 mt-2 no-underline-link" | ||
style="border:1px solid #22B7F8; border-radius:10px; padding:2px 8px;"> | ||
{{ | ||
tag }} </a> | ||
{% endfor %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for post in paginator.posts %} | ||
{% include post-archive-meta.html %} | ||
{% endfor %} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% if paginator.total_pages > 1 %} | ||
<div style="text-align:center"> | ||
{% if paginator.previous_page %} | ||
<a class="ml-1 mr-1 pe-2 reverse-bnhr-link font-weight-bold h6 " | ||
href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: " //", "/" }}" | ||
style="color:#22B7F8">« Prev</a> | ||
{% else %} | ||
<span class="text-secondary font-weight-bold h6 ">« Prev</span> | ||
{% endif %} | ||
{% for page in (1..paginator.total_pages) %} | ||
{% if page == paginator.page %} | ||
<span class="ml-1 mr-1 pe-2 text-secondary font-weight-bold h6">{{ page }}</span> | ||
{% elsif page == 1 %} | ||
<a class="ml-1 mr-1 pe-2 reverse-bnhr-link font-weight-bold h6" href="{{ site.baseurl }}/events/index.html" | ||
style="color:#22B7F8">{{ page | ||
}}</a> | ||
{% else %} | ||
<a class="ml-1 mr-1 pe-2 reverse-bnhr-link font-weight-bold h6" | ||
href="{{ site.baseurl }}/{{ site.paginate_path | replace: " //", "/" | replace: ":num" , page }}" | ||
style="color:#22B7F8">{{ page }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
{% if paginator.next_page %} | ||
<a class="ml-1 mr-1 pe-2 reverse-bnhr-link font-weight-bold h6" style="color:#22B7F8" | ||
href="{{ paginator.next_page_path | prepend: site.baseurl | replace: " //", "/" }}">Next »</a> | ||
{% else %} | ||
<span class="text-secondary font-weight-bold h6">Next »</span> | ||
{% endif %} | ||
</div> | ||
{% endif %} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="row eventlisting-container"> | ||
<div class="eventlisting"> | ||
<p class="eventlisting-eventdateandtitle" style="margin-top: 0px"> | ||
<span class="eventlisting-eventtitle"><a href="{{ site.baseurl }}{{ post.permalink }}" | ||
class="eventlisting-eventtitle">{{ post.title }}</a></span> | ||
<p> | ||
<span class="eventlisting-eventdate" style="font-size: large; color: #4F4F4F">{{ post.date | date: "%d %B | ||
%Y" }}</span> | ||
<span class="eventlisting-eventlocation" style="font-size: large; color: #4F4F4F">{{ post.location }}</span> | ||
</p> | ||
</p> | ||
<p class="eventlisting-eventdescription">{{ post.description }}</p> | ||
<a class="btn btn-primary btn-sm active" role="button" aria-pressed="true" | ||
href="{{ site.baseurl }}{{ post.permalink }}">Details</a> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% assign rawtags = "" %} | ||
{% for post in site.posts %} | ||
{% assign posttags = post.region | join:"|" | append:"|" %} | ||
{% assign rawtags = rawtags | append:posttags %} | ||
{% endfor %} | ||
{% assign rawtags = rawtags | split:"|" | sort %} | ||
{% assign tags = "" %} | ||
{% for tag in rawtags %} | ||
{% if tag != "" %} | ||
{% if tags == "" %} | ||
{% assign tags = tag | split:"|" %} | ||
{% endif %} | ||
{% unless tags contains tag %} | ||
{% assign tags = tags | join:"|" | append:"|" | append:tag | split:"|" %} | ||
{% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
<div class="pt-1"> | ||
<p> | ||
<h3>Region</h3> | ||
{% for tag in tags %} | ||
<a href="{{ site.baseurl }}/events/region.html#{{ tag | slugify }}" | ||
class="small post-meta-tag m-0.5 mt-2 no-underline-link" | ||
style="border:1px solid #22B7F8; border-radius:10px; padding:2px 8px;"> | ||
{{ | ||
tag }} </a> | ||
{% endfor %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script> | ||
SimpleJekyllSearch({ | ||
searchInput: document.getElementById('search-input'), | ||
resultsContainer: document.getElementById('results-container'), | ||
json: '../search.json', | ||
searchResultTemplate: '<div><a href="{url}"><h6 style="font-weight:400;color:#007FB1; padding-right:4px">{title}</h6></a>-<span style="font-weight:400; color:#007FB1; padding-left:4px;">{date}</span></div>', | ||
}) | ||
</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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script type="text/javascript"> | ||
/*! | ||
* Simple-Jekyll-Search | ||
* Copyright 2015-2020, Christian Fei | ||
* Licensed under the MIT License. | ||
*/ | ||
!function () { "use strict"; var f = { compile: function (r) { return i.template.replace(i.pattern, function (t, e) { var n = i.middleware(e, r[e], i.template); return void 0 !== n ? n : r[e] || t }) }, setOptions: function (t) { i.pattern = t.pattern || i.pattern, i.template = t.template || i.template, "function" == typeof t.middleware && (i.middleware = t.middleware) } }; const i = { pattern: /\{(.*?)\}/g, template: "", middleware: function () { } }; var n = function (t, e) { var n = e.length, r = t.length; if (n < r) return !1; if (r === n) return t === e; t: for (var i = 0, o = 0; i < r; i++) { for (var u = t.charCodeAt(i); o < n;)if (e.charCodeAt(o++) === u) continue t; return !1 } return !0 }, e = new function () { this.matches = function (t, e) { return n(e.toLowerCase(), t.toLowerCase()) } }, r = new function () { this.matches = function (e, t) { return !!e && (e = e.trim().toLowerCase(), (t = t.trim().toLowerCase()).split(" ").filter(function (t) { return 0 <= e.indexOf(t) }).length === t.split(" ").length) } }, d = { put: function (t) { if (l(t)) return a(t); if (function (t) { return Boolean(t) && "[object Array]" === Object.prototype.toString.call(t) }(t)) return function (n) { const r = []; s(); for (let t = 0, e = n.length; t < e; t++)l(n[t]) && r.push(a(n[t])); return r }(t); return undefined }, clear: s, search: function (t) { return t ? function (e, n, r, i) { const o = []; for (let t = 0; t < e.length && o.length < i.limit; t++) { var u = function (t, e, n, r) { for (const i in t) if (!function (n, r) { for (let t = 0, e = r.length; t < e; t++) { var i = r[t]; if (new RegExp(i).test(n)) return !0 } return !1 }(t[i], r.exclude) && n.matches(t[i], e)) return t }(e[t], n, r, i); u && o.push(u) } return o }(u, t, c.searchStrategy, c).sort(c.sort) : [] }, setOptions: function (t) { c = t || {}, c.fuzzy = t.fuzzy || !1, c.limit = t.limit || 10, c.searchStrategy = t.fuzzy ? e : r, c.sort = t.sort || o, c.exclude = t.exclude || [] } }; function o() { return 0 } const u = []; let c = {}; function s() { return u.length = 0, u } function l(t) { return Boolean(t) && "[object Object]" === Object.prototype.toString.call(t) } function a(t) { return u.push(t), u } c.fuzzy = !1, c.limit = 10, c.searchStrategy = c.fuzzy ? e : r, c.sort = o, c.exclude = []; var p = { load: function (t, e) { const n = window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"); n.open("GET", t, !0), n.onreadystatechange = h(n, e), n.send() } }; function h(e, n) { return function () { if (4 === e.readyState && 200 === e.status) try { n(null, JSON.parse(e.responseText)) } catch (t) { n(t, null) } } } var m = function y(t) { if (!(e = t) || !("undefined" != typeof e.required && e.required instanceof Array)) throw new Error("-- OptionsValidator: required options missing"); var e; if (!(this instanceof y)) return new y(t); const r = t.required; this.getRequiredOptions = function () { return r }, this.validate = function (e) { const n = []; return r.forEach(function (t) { "undefined" == typeof e[t] && n.push(t) }), n } }, w = { merge: function (t, e) { const n = {}; for (const r in t) n[r] = t[r], "undefined" != typeof e[r] && (n[r] = e[r]); return n }, isJSON: function (t) { try { return t instanceof Object && JSON.parse(JSON.stringify(t)) ? !0 : !1 } catch (e) { return !1 } } }; !function (t) { let i = { searchInput: null, resultsContainer: null, json: [], success: Function.prototype, searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>', templateMiddleware: Function.prototype, sortMiddleware: function () { return 0 }, noResultsText: "No results found", limit: 10, fuzzy: !1, debounceTime: null, exclude: [] }, n; const e = function (t, e) { e ? (clearTimeout(n), n = setTimeout(t, e)) : t.call() }; var r = ["searchInput", "resultsContainer", "json"]; const o = m({ required: r }); function u(t) { d.put(t), i.searchInput.addEventListener("input", function (t) { -1 === [13, 16, 20, 37, 38, 39, 40, 91].indexOf(t.which) && (c(), e(function () { l(t.target.value) }, i.debounceTime)) }) } function c() { i.resultsContainer.innerHTML = "" } function s(t) { i.resultsContainer.innerHTML += t } function l(t) { var e; (e = t) && 0 < e.length && (c(), function (e, n) { var r = e.length; if (0 === r) return s(i.noResultsText); for (let t = 0; t < r; t++)e[t].query = n, s(f.compile(e[t])) }(d.search(t), t)) } function a(t) { throw new Error("SimpleJekyllSearch --- " + t) } t.SimpleJekyllSearch = function (t) { var n; 0 < o.validate(t).length && a("You must specify the following required options: " + r), i = w.merge(i, t), f.setOptions({ template: i.searchResultTemplate, middleware: i.templateMiddleware }), d.setOptions({ fuzzy: i.fuzzy, limit: i.limit, sort: i.sortMiddleware, exclude: i.exclude }), w.isJSON(i.json) ? u(i.json) : (n = i.json, p.load(n, function (t, e) { t && a("failed to get JSON (" + n + ")"), u(e) })); t = { search: l }; return "function" == typeof i.success && i.success.call(t), t } }(window) }(); | ||
</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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% assign rawtags = "" %} | ||
{% for post in site.posts %} | ||
{% assign posttags = post.series | join:"|" | append:"|" %} | ||
{% assign rawtags = rawtags | append:posttags %} | ||
{% endfor %} | ||
{% assign rawtags = rawtags | split:"|" | sort %} | ||
{% assign tags = "" %} | ||
{% for tag in rawtags %} | ||
{% if tag != "" %} | ||
{% if tags == "" %} | ||
{% assign tags = tag | split:"|" %} | ||
{% endif %} | ||
{% unless tags contains tag %} | ||
{% assign tags = tags | join:"|" | append:"|" | append:tag | split:"|" %} | ||
{% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
<div class="pt-1"> | ||
<p> | ||
<h3>Series</h3> | ||
{% for tag in tags %} | ||
<a href="{{ site.baseurl }}/events/series.html#{{ tag | slugify }}" | ||
class="small post-meta-tag m-0.5 mt-2 no-underline-link" | ||
style="border:1px solid #22B7F8; border-radius:10px; padding:2px 8px;"> | ||
{{ | ||
tag }} </a> | ||
{% endfor %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h4 class="pt-2"><a class="tags-archive-title bnhr-link" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h4> | ||
<p class="small post-meta-info">{{ post.date | date_to_string}}</p> | ||
<!-- <p class="small">{{ post.description | strip_html | truncatewords:100 }}</p> --> |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% assign rawtags = "" %} | ||
{% for post in site.posts %} | ||
{% assign posttags = post.tags | join:"|" | append:"|" %} | ||
{% assign rawtags = rawtags | append:posttags %} | ||
{% endfor %} | ||
{% assign rawtags = rawtags | split:"|" | sort %} | ||
{% assign tags = "" %} | ||
{% for tag in rawtags %} | ||
{% if tag != "" %} | ||
{% if tags == "" %} | ||
{% assign tags = tag | split:"|" %} | ||
{% endif %} | ||
{% unless tags contains tag %} | ||
{% assign tags = tags | join:"|" | append:"|" | append:tag | split:"|" %} | ||
{% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
<div class="pt-1"> | ||
<p> | ||
<h3>Tags</h3> | ||
{% for tag in tags %} | ||
<a href="{{ site.baseurl }}/events/tags.html#{{ tag | slugify }}" | ||
class="small post-meta-tag m-0.5 mt-2 no-underline-link" | ||
style="border:1px solid #22B7F8; border-radius:10px; padding:2px 8px;"> | ||
{{ | ||
tag }} </a> | ||
{% endfor %} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
layout: default | ||
--- | ||
<div id="content" class="container main" role="main"> | ||
<div class="row"> | ||
<!-- left pane --> | ||
<div class="col-4"> | ||
<div class="row col-12"> | ||
<h3>OKF Training series</h3> | ||
</div> | ||
{% assign serieslist = site.pages | where: "layout", "series" | sort: "title" %} | ||
{% for node in serieslist %} | ||
<div class="serieslisting"> | ||
<div class="serieslisting-title animate-a-blue"><a href="{{ site.baseurl }}{{ node.permalink }}">{{ node.title | ||
}}</a></div> | ||
</div> | ||
{% endfor %} | ||
{% include tagslist.html %} | ||
{% include langlist.html %} | ||
{% include regionlist.html %} | ||
{% include serieslist.html %} | ||
</div> | ||
<!-- right pane --> | ||
<div class="col-8"> | ||
{{ content }} | ||
</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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
layout: event | ||
title: "Open Geodata Training for NGOs - Asia Pacific" | ||
description: "This is a free training to help NGO staff learn how to source, analyse and visualise geographic data to support social impact project. The programme is split into two phases, both delivered remotely: two days of live sessions and five weeks of mentoring." | ||
permalink: /open-geodata-programme/2022/09/ngo-apac-01 | ||
series: Open Geodata Training Programme | ||
serieslink: /series/open-geodata-programme/ | ||
date: 2022-09-15 | ||
tags: [QGIS, GeoData, NGO] | ||
region: Asia | ||
publicSpreadsheetUrl: https://docs.google.com/spreadsheets/d/e/2PACX-1vQBSzALM4ZzHjdxjZu3vx2fW0pq9hAsejtUE87OMF-RQ2wJAiKQIT0_uCU_7i3ADc21T0rFG5K_zpKz/pub?gid=0&single=true&output=csv | ||
lang: en | ||
location: Online | ||
--- |
Oops, something went wrong.