Skip to content

Commit dac2861

Browse files
committed
Price shortcode
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 6161e2b commit dac2861

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

content/products/std/_index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title = "JSON Schema Standard Library"
33
description = "A standard library of all the foundational schemas you'll ever need so you never have to bother with JSON Schema again"
44
github = "sourcemeta/std"
5+
price = "€2,110"
56

67
[[navigation]]
78
title = "Browse Schemas"
@@ -380,7 +381,7 @@ <h2 class="display-6 mb-3">Custom</h2>
380381
<h3 class="h2 my-0 fw-bold">Commercial</h3>
381382
</div>
382383
<div class="card-body d-flex flex-column text-center">
383-
<h1 class="display-3 fw-bold mb-1">€2,110</h1>
384+
<h1 class="display-3 fw-bold mb-1">{{< price >}}</h1>
384385
<p class="lead text-muted mb-4">One-time payment (no subscription)</p>
385386

386387
<ul class="list-unstyled mb-4 text-start mx-auto">
@@ -483,9 +484,9 @@ <h2 class="display-5 fw-bold mb-3">What's the Alternative?</h2>
483484
<tr class="border-top border-dark border-2">
484485
<td class="bg-light fw-bold p-3">Total First Year</td>
485486
<td class="bg-danger bg-opacity-25 fw-bold p-3 text-danger">€110,000+<br><small class="text-dark fw-normal">Assuming you managed to hire a JSON Schema expert</small></td>
486-
<td class="bg-danger bg-opacity-25 fw-bold p-3 text-danger">€0 → Catastrophic Risk<br><small class="text-dark fw-normal">Worth saving €2,110?</small></td>
487-
<td class="bg-danger bg-opacity-25 fw-bold p-3 text-danger">€0 → High Risk<br><small class="text-dark fw-normal">Worth saving €2,110?</small></td>
488-
<td class="bg-success text-white fw-bold fs-5 border-bottom border-start border-end border-dark border-2 p-3">€2,110<br><small class="text-white">ROI in the first week</small></td>
487+
<td class="bg-danger bg-opacity-25 fw-bold p-3 text-danger">€0 → Catastrophic Risk<br><small class="text-dark fw-normal">Worth saving {{< price >}}?</small></td>
488+
<td class="bg-danger bg-opacity-25 fw-bold p-3 text-danger">€0 → High Risk<br><small class="text-dark fw-normal">Worth saving {{< price >}}?</small></td>
489+
<td class="bg-success text-white fw-bold fs-5 border-bottom border-start border-end border-dark border-2 p-3">{{< price >}}<br><small class="text-white">ROI in the first week</small></td>
489490
</tr>
490491
</tbody>
491492
</table>

layouts/shortcodes/price.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ .Page.Params.price }}

0 commit comments

Comments
 (0)