Move memberships out to data file

This commit is contained in:
2023-11-11 09:51:46 +00:00
parent 91f7d629a9
commit 18c1360e92
3 changed files with 47 additions and 56 deletions

View File

@@ -81,58 +81,3 @@ icon = "fa-github-alt"
name = "discourse" name = "discourse"
url = "https://discourse.leighhack.org" url = "https://discourse.leighhack.org"
icon = "fa-discourse" icon = "fa-discourse"
# Membership Levels
[[params.membership]]
name = "Member"
price = "24"
description = "Our standard membership that allows usage of the hackspace facilities."
link = "https://pay.gocardless.com/AL00024VQTCKBK"
[[params.membership]]
name = "Member+"
price = "30"
description = "Standard membership with an additional donation."
link = "https://pay.gocardless.com/AL00024VQW2FWQ"
[[params.membership]]
name = "Concession"
price = "18"
description = "A subsidised membership for pensioners, students, and low income earners."
link = "https://pay.gocardless.com/AL0002BMN4S3AX"
[[params.membership]]
name = "Family"
price = "40"
description = "A discounted family membership for two adults and two children."
link = "https://pay.gocardless.com/AL000637J3VZP7"
[[params.membership]]
name = "Day Pass"
price = "5"
period = "per day"
description = "Access to the hackspace's facilities for a day."
link = "mailto:info@leighhack.org?subject=Day%20Pass"
button = "Enquire"
[[params.membership]]
name = "Patron"
price = "5"
description = "Support the hackspace without being a member."
link = "https://pay.gocardless.com/AL000FDGN4Q6AC"
[[params.membership]]
name = "Business"
price = " POA"
description = "Access to the hackspace for a business or community group."
link = "mailto:info@leighhack.org?subject=Corporate%20Membership"
button = "Enquire"
[[params.membership]]
name = "Creator Pod"
price = " POA"
period = "per month"
description = "An enhanced membership which includes a dedicated space for your personal use."
link = "mailto:info@leighhack.org?subject=Artist%20Pod%20Lease"
button = "Enquire"

46
data/memberships.yaml Normal file
View File

@@ -0,0 +1,46 @@
# Membership levels, this is used on the website and also presented as JSON for other services to use.
membership_levels:
- name: "Member"
price: "24"
description: "Our standard membership that allows usage of the hackspace facilities."
link: "https://pay.gocardless.com/AL00024VQTCKBK"
- name: "Member+"
price: "30"
description: "Standard membership with an additional donation."
link: "https://pay.gocardless.com/AL00024VQW2FWQ"
- name: "Concession"
price: "18"
description: "A subsidised membership for pensioners, students, and low income earners."
link: "https://pay.gocardless.com/AL0002BMN4S3AX"
- name: "Family"
price: "40"
description: "A discounted family membership for two adults and two children."
link: "https://pay.gocardless.com/AL000637J3VZP7"
- name: "Day Pass"
price: "5"
period: "per day"
description: "Access to the hackspace's facilities for a day."
link: "mailto:info@leighhack.org?subject=Day%20Pass"
button: "Enquire"
- name: "Patron"
price: "5"
description: "Support the hackspace without being a member."
link: "https://pay.gocardless.com/AL000FDGN4Q6AC"
- name: "Business"
price: " POA"
description: "Access to the hackspace for a business or community group."
link: "mailto:info@leighhack.org?subject=Corporate%20Membership"
button: "Enquire"
- name: "Creator Pod"
price: " POA"
period: "per month"
description: "An enhanced membership which includes a dedicated space for your personal use."
link: "mailto:info@leighhack.org?subject=Artist%20Pod%20Lease"
∏button: "Enquire"

View File

@@ -1,5 +1,5 @@
<div class="columns pricing-tiers is-centered is-multiline"> <div class="columns pricing-tiers is-centered is-multiline">
{{- with .Site.Params.membership }} {{- with $.Site.Data.memberships.membership_levels }}
{{ range . -}} {{ range . -}}
<div class="column is-one-quarter"> <div class="column is-one-quarter">
<div class="box is-large hover-items"> <div class="box is-large hover-items">