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 3 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
38 changes: 32 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,44 @@
# 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
billing_interval: monthly
description: regularly attend any of the several open evenings a week
- name: Keyholder membership
value: 21
currency: GBP
billing_interval: monthly
description: come and go as you please

# Build settings
theme: jekyll-theme-basically-basic
Expand Down
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 }}
}