Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add space API json file #80

Merged
merged 6 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 34 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,46 @@
# You can create any custom.scss variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

# meta
title: Sheffield Hackspace
description: Sheffield Hackspace

# URLs
## the subpath of your site, e.g. /blog
baseurl: ""
## the base hostname & protocol for your site, e.g. http://example.com
url: "https://www.sheffieldhackspace.org.uk"
logo: /assets/images/logo.svg
rss_feed: /feed.xml
goat_counter_url: "https://sheffieldhackspacewebsite.goatcounter.com"

# socials
email: [email protected]
description: >- # this means to ignore newlines until "baseurl:"
Sheffield Hackspace
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://www.sheffieldhackspace.org.uk" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: "@shhmakers"
github_username: "sheffieldhackspace"
facebook_username: "SHHMakers"
instagram_username: "SHHMakers"
logo: /assets/images/logo.svg
goat_counter_url: "https://sheffieldhackspacewebsite.goatcounter.com"

# information - mainly used in spaceapi.json
address: "Sheffield Hackspace, Portland Works, Randall St, Highfield, Sheffield S2 4SJ"
latitude: 53.369933
alifeee marked this conversation as resolved.
Show resolved Hide resolved
longitude: -1.473812
timezone: "Europe/London"

# membership
membership_plans:
- name: normal membership
value: 6
alifeee marked this conversation as resolved.
Show resolved Hide resolved
currency: GBP
currency_symbol: "£"
billing_interval: monthly
description: regularly attend any of the several open evenings a week
- name: keyholder membership
value: 21
currency: GBP
currency_symbol: "£"
billing_interval: monthly
description: come and go as you please

# Build settings
theme: jekyll-theme-basically-basic
Expand Down
3 changes: 0 additions & 3 deletions _includes/osm.html

This file was deleted.

17 changes: 15 additions & 2 deletions _pages/joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,24 @@ Drop in anytime to one of our open evenings to get a feel of the Hackspace and s

{% include calendar.md %}

After visiting, a membership costs £6 a month to regularly attend the open evenings, or £21 a month for a key, allowing you to come and go as you please.
After visiting, membership is available at:

<!-- information from _config.yml -->
<!-- HTML as if markdown, it gets wrapped in <p> -->
<ul>
{% for plan in site.membership_plans %}
<li>
{{plan.currency_symbol}}{{plan.value}} {{plan.billing_interval}} to {{plan.description}} ({{plan.name}})
</li>
{% endfor %}
</ul>

If you have any questions before you come along you can email us at [[email protected]](mailto:[email protected]).

We are located [here](https://goo.gl/maps/EcVTWfknJ8XSRYax9) in Portland Works. Find the green door at the top of Randall Street S2 4SJ, and press the call button. We are in the courtyard on the ground floor.

{% include osm.html %}
<!-- Open Street Map map -->

<div class="responsive-iframe-container">
<iframe width="800" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=-1.477366089820862%2C53.36852420235157%2C-1.4702850580215456%2C53.37144960099323&amp;layer=mapnik&amp;marker={{ site.latitude }}%2C{{ site.longitude }}" style="border: 1px solid black"></iframe><br/><small><a href="https://www.openstreetmap.org/?mlat={{ site.latitude }}&amp;mlon={{ site.longitude }}#map=18/{{ site.latitude }}/{{ site.longitude }}&amp;layers=N">View Larger Map</a></small>
</div>
35 changes: 35 additions & 0 deletions _pages/spaceapi.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
permalink: "/spaceapi.json"
---
{
"space": "{{ site.title }}",
"logo": "{{ site.url }}{{ site.logo }}",
"url": "{{ site.url }}",
"contact": {
"email": "{{ site.email }}",
"twitter": "{{ site.twitter_username }}",
"facebook": "{{ site.facebook_username }}"
},
"projects": [
"https://github.com/{{ site.github_username }}/"
],
"issue_report_channels": [
"email"
],
"api_compatibility": [
"14"
],
"location": {
"address": "{{ site.address }}",
"lat": {{ site.latitude }},
"lon": {{ site.longitude }},
"timezone": "{{ site.timezone }}"
},
"feeds": {
"blog": {
"type": "RSS",
"url": "{{ site.url }}{{site.rss_feed}}"
}
},
"membership_plans": {{ site.membership_plans | jsonify }}
}