restructured pricing markdown for better maintainability

This commit is contained in:
trean
2026-03-11 23:37:37 +01:00
parent 9bc1daf3eb
commit ce0a812d37
2 changed files with 205 additions and 197 deletions
@@ -1,16 +1,19 @@
--- ---
title: Features by Tier title: Features by Tier
tiers: tables:
- name: OSS - id: managed
label: Managed
tiers:
- name: OSS
highlight: false highlight: false
- name: Free Tier - name: Free Tier
highlight: false highlight: false
- name: Paid Tier - name: Paid Tier
highlight: true highlight: true
- name: Premium Tier - name: Premium Tier
highlight: false highlight: false
sections: sections:
- name: Features - name: Features
features: features:
- name: Cloud Inference - name: Cloud Inference
oss: false oss: false
@@ -67,34 +70,37 @@ sections:
free: false free: false
paid: false paid: false
premium: true premium: true
ctas: ctas:
- tier: oss - tier: oss
text: Start Free text: Start Free
url: https://cloud.qdrant.io url: https://cloud.qdrant.io
contained: false contained: false
- tier: free - tier: free
text: Start Free text: Start Free
url: https://cloud.qdrant.io url: https://cloud.qdrant.io
contained: false contained: false
- tier: paid - tier: paid
text: Deploy on Cloud text: Deploy on Cloud
url: https://cloud.qdrant.io url: https://cloud.qdrant.io
contained: true contained: true
- tier: premium - tier: premium
text: Deploy on Cloud text: Deploy on Cloud
url: /contact-us/ url: /contact-us/
contained: false contained: false
onPremiseTiers:
- name: OSS - id: on-premise
label: On-Premise
tiers:
- name: OSS
highlight: false highlight: false
- name: Free Tier - name: Free Tier
highlight: false highlight: false
- name: Paid Tier - name: Paid Tier
highlight: true highlight: true
- name: Premium Tier - name: Premium Tier
highlight: false highlight: false
onPremiseSections: sections:
- name: Features - name: Features
features: features:
- name: Cloud Inference - name: Cloud Inference
oss: false oss: false
@@ -151,23 +157,24 @@ onPremiseSections:
free: false free: false
paid: false paid: false
premium: true premium: true
onPremiseCtas: ctas:
- tier: oss - tier: oss
text: Start Free text: Start Free
url: https://cloud.qdrant.io url: https://cloud.qdrant.io
contained: false contained: false
- tier: free - tier: free
text: Start Free text: Start Free
url: https://cloud.qdrant.io url: https://cloud.qdrant.io
contained: false contained: false
- tier: paid - tier: paid
text: Deploy on Cloud text: Deploy on Cloud
url: https://cloud.qdrant.io url: https://cloud.qdrant.io
contained: true contained: true
- tier: premium - tier: premium
text: Deploy on Cloud text: Deploy on Cloud
url: /contact-us/ url: /contact-us/
contained: false contained: false
compareButton: compareButton:
text: Compare All Features text: Compare All Features
url: /pricing/comparison/ url: /pricing/comparison/
@@ -1,38 +1,39 @@
{{ $tables := .Params.tables | default slice }}
{{ $showTabs := gt (len $tables) 1 }}
<section class="qdrant-pricing-features"> <section class="qdrant-pricing-features">
<div class="container"> <div class="container">
<div class="qdrant-pricing-features__header"> <div class="qdrant-pricing-features__header">
<h2 class="qdrant-pricing-features__title">{{ .Params.title }}</h2> <h2 class="qdrant-pricing-features__title">{{ .Params.title }}</h2>
{{ if $showTabs }}
<div class="qdrant-pricing-features__tabs" data-tab-sync="pricing-deployment"> <div class="qdrant-pricing-features__tabs" data-tab-sync="pricing-deployment">
<button class="qdrant-pricing-features__tab qdrant-pricing-features__tab--active" data-tab="managed"> {{ range $index, $table := $tables }}
Managed <button
class="qdrant-pricing-features__tab{{ if eq $index 0 }} qdrant-pricing-features__tab--active{{ end }}"
data-tab="{{ $table.id }}"
>
{{ $table.label }}
</button> </button>
<button class="qdrant-pricing-features__tab" data-tab="on-premise">On-Premise</button> {{ end }}
</div> </div>
{{ end }}
</div> </div>
{{/* Managed table */}} {{ range $index, $table := $tables }}
<div class="qdrant-pricing-features__table-wrapper" data-features-tab="managed"> {{ if and $table.tiers $table.sections }}
{{ partial "pricing/qdrant-pricing-features-table" (dict
"tiers" .Params.tiers
"sections" .Params.sections
"ctas" .Params.ctas
)
}}
</div>
{{/* On-Premise table */}}
<div <div
class="qdrant-pricing-features__table-wrapper qdrant-pricing-features__table-wrapper--hidden" class="qdrant-pricing-features__table-wrapper{{ if and $showTabs (gt $index 0) }} qdrant-pricing-features__table-wrapper--hidden{{ end }}"
data-features-tab="on-premise" data-features-tab="{{ $table.id }}"
> >
{{ partial "pricing/qdrant-pricing-features-table" (dict {{ partial "pricing/qdrant-pricing-features-table" (dict
"tiers" .Params.onPremiseTiers "tiers" $table.tiers
"sections" .Params.onPremiseSections "sections" $table.sections
"ctas" .Params.onPremiseCtas "ctas" $table.ctas
"classPrefix" "qdrant-pricing-features"
) )
}} }}
</div> </div>
{{ end }}
{{ end }}
{{ with .Params.compareButton }} {{ with .Params.compareButton }}
<div class="qdrant-pricing-features__compare"> <div class="qdrant-pricing-features__compare">