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
tiers:
- name: OSS
tables:
- id: managed
label: Managed
tiers:
- name: OSS
highlight: false
- name: Free Tier
- name: Free Tier
highlight: false
- name: Paid Tier
- name: Paid Tier
highlight: true
- name: Premium Tier
- name: Premium Tier
highlight: false
sections:
- name: Features
sections:
- name: Features
features:
- name: Cloud Inference
oss: false
@@ -67,34 +70,37 @@ sections:
free: false
paid: false
premium: true
ctas:
- tier: oss
ctas:
- tier: oss
text: Start Free
url: https://cloud.qdrant.io
contained: false
- tier: free
- tier: free
text: Start Free
url: https://cloud.qdrant.io
contained: false
- tier: paid
- tier: paid
text: Deploy on Cloud
url: https://cloud.qdrant.io
contained: true
- tier: premium
- tier: premium
text: Deploy on Cloud
url: /contact-us/
contained: false
onPremiseTiers:
- name: OSS
- id: on-premise
label: On-Premise
tiers:
- name: OSS
highlight: false
- name: Free Tier
- name: Free Tier
highlight: false
- name: Paid Tier
- name: Paid Tier
highlight: true
- name: Premium Tier
- name: Premium Tier
highlight: false
onPremiseSections:
- name: Features
sections:
- name: Features
features:
- name: Cloud Inference
oss: false
@@ -151,23 +157,24 @@ onPremiseSections:
free: false
paid: false
premium: true
onPremiseCtas:
- tier: oss
ctas:
- tier: oss
text: Start Free
url: https://cloud.qdrant.io
contained: false
- tier: free
- tier: free
text: Start Free
url: https://cloud.qdrant.io
contained: false
- tier: paid
- tier: paid
text: Deploy on Cloud
url: https://cloud.qdrant.io
contained: true
- tier: premium
- tier: premium
text: Deploy on Cloud
url: /contact-us/
contained: false
compareButton:
text: Compare All Features
url: /pricing/comparison/
@@ -1,38 +1,39 @@
{{ $tables := .Params.tables | default slice }}
{{ $showTabs := gt (len $tables) 1 }}
<section class="qdrant-pricing-features">
<div class="container">
<div class="qdrant-pricing-features__header">
<h2 class="qdrant-pricing-features__title">{{ .Params.title }}</h2>
{{ if $showTabs }}
<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">
Managed
{{ range $index, $table := $tables }}
<button
class="qdrant-pricing-features__tab{{ if eq $index 0 }} qdrant-pricing-features__tab--active{{ end }}"
data-tab="{{ $table.id }}"
>
{{ $table.label }}
</button>
<button class="qdrant-pricing-features__tab" data-tab="on-premise">On-Premise</button>
{{ end }}
</div>
{{ end }}
</div>
{{/* Managed table */}}
<div class="qdrant-pricing-features__table-wrapper" data-features-tab="managed">
{{ partial "pricing/qdrant-pricing-features-table" (dict
"tiers" .Params.tiers
"sections" .Params.sections
"ctas" .Params.ctas
)
}}
</div>
{{/* On-Premise table */}}
{{ range $index, $table := $tables }}
{{ if and $table.tiers $table.sections }}
<div
class="qdrant-pricing-features__table-wrapper qdrant-pricing-features__table-wrapper--hidden"
data-features-tab="on-premise"
class="qdrant-pricing-features__table-wrapper{{ if and $showTabs (gt $index 0) }} qdrant-pricing-features__table-wrapper--hidden{{ end }}"
data-features-tab="{{ $table.id }}"
>
{{ partial "pricing/qdrant-pricing-features-table" (dict
"tiers" .Params.onPremiseTiers
"sections" .Params.onPremiseSections
"ctas" .Params.onPremiseCtas
"classPrefix" "qdrant-pricing-features"
"tiers" $table.tiers
"sections" $table.sections
"ctas" $table.ctas
)
}}
</div>
{{ end }}
{{ end }}
{{ with .Params.compareButton }}
<div class="qdrant-pricing-features__compare">