Skip to content

Commit fc38e45

Browse files
escowlesphette23
authored andcommitted
Small refactor to gracefully handle showing tax rate instead of tax-inclusive total
1 parent 5a2a898 commit fc38e45

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

_data/conf.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ venue:
9393
hotel:
9494
show: true
9595
name: Marriott Old City
96-
cost: $199/night plus tax (16.37%)
96+
cost: $199
97+
tax-rate: "16.37%"
9798
cost-cutoff-date:
9899
reserved-room-block: true
99100
link:

general-info/attend.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ <h3>Registration Fees</h3>
9090
<li>
9191
<span class="font-weight-bold">{{site.data.conf.venue.hotel.name}}</span>:
9292
{{ site.data.conf.venue.hotel.cost }}/night
93-
({% if site.data.conf.venue.hotel.with-tax-cost %}
94-
{{ site.data.conf.venue.hotel.with-tax-cost }} with taxes
95-
{% else %}plus taxes
96-
{% endif %})
93+
{% if site.data.conf.venue.hotel.with-tax-cost %}
94+
({{ site.data.conf.venue.hotel.with-tax-cost }} with taxes)
95+
{% else if site.data.conf.venue.hotel.tax-rate %}
96+
(plus {{site.data.conf.venue.hotel.tax-rate}} tax)
97+
98+
{% else %}
99+
(plus taxes)
100+
{% endif %}
97101
{% if site.data.conf.venue.hotel.cost-cutoff-date %}
98102
until {{ site.data.conf.venue.hotel.cost-cutoff-date | date: "%B %-d" }}
99103
{% endif %}

0 commit comments

Comments
 (0)