Skip to content

Commit

Permalink
add displayed phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
christofgehrig committed Dec 20, 2024
1 parent eb2ea4f commit f8cd53c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _data/members-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Barbara Quintel:
email: [email protected]
room: Room 4.306
phone: +49 6221 5414833
phone-displayed: +49 6221 5414833
address: Im Neuenheimer Feld 205, 69120 Heidelberg

Manuel Klockow:
Expand Down
6 changes: 6 additions & 0 deletions _data/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ phone:
text: Phone
link: tel:$VALUE

phone-displayed:
icon: fa-solid fa-phone
tooltip: Phone number
text: Phone
link: tel:$VALUE

address:
icon: fa-solid fa-map-location-dot
text: Address
Expand Down
6 changes: 5 additions & 1 deletion _includes/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
>
{% include icon.html icon=button.icon %}
{% if button.text and button.text != "" %}
<span>{{ button.text }}</span>
{% if button.type == "phone-displayed" %}
<span>{{ button.link | slice: 4, 99}}</span>
{% else %}
<span>{{ button.text }}</span>
{% endif %}
{% endif %}
</a>
</div>
Expand Down

0 comments on commit f8cd53c

Please sign in to comment.