mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 15:02:29 +00:00
Fix display of time periods
This commit is contained in:
@@ -4,11 +4,23 @@
|
|||||||
<div class="columns pricing-tiers is-centered is-multiline">
|
<div class="columns pricing-tiers is-centered is-multiline">
|
||||||
{{- with $.Site.Data.memberships.membership_levels }}
|
{{- with $.Site.Data.memberships.membership_levels }}
|
||||||
{{ range . -}}
|
{{ range . -}}
|
||||||
|
|
||||||
|
{{ $period := (default "monthly" .period) }}
|
||||||
|
{{ if eq $period "yearly" }}
|
||||||
|
{{ $period = "per year" }}
|
||||||
|
{{ else if eq $period "monthly" }}
|
||||||
|
{{ $period = "per month" }}
|
||||||
|
{{ else if eq $period "weekly" }}
|
||||||
|
{{ $period = "per weekly" }}
|
||||||
|
{{ else if eq $period "daily" }}
|
||||||
|
{{ $period = "per day" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<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">
|
||||||
<h3 class="is-size-4 has-text-weight-bold">{{ .name }}</h3>
|
<h3 class="is-size-4 has-text-weight-bold">{{ .name }}</h3>
|
||||||
<div class="is-size-1 has-text-weight-bold pricing-price">£{{ default " POA" .price }}</div>
|
<div class="is-size-1 has-text-weight-bold pricing-price">£{{ default " POA" .price }}</div>
|
||||||
<div class="_is-block mt-1 is-size-7 has-text-weight-normal">{{ default "monthly" .period }}</div>
|
<div class="_is-block mt-1 is-size-7 has-text-weight-normal">{{ $period }}</div>
|
||||||
<div class="content mt-5 pricing-description is-size-6">
|
<div class="content mt-5 pricing-description is-size-6">
|
||||||
<p>{{ .description }}</p>
|
<p>{{ .description }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user