feat: add calendars page

This commit is contained in:
Oliver Davies 2021-09-22 12:11:24 +01:00
parent be90cef851
commit 585b592256
2 changed files with 29 additions and 0 deletions

View file

@ -6,8 +6,13 @@ avatar:
url: '/sites/default/files/images/social-avatar.jpg'
calendars:
consultation:
id: 83087702
name: Book a consultation
url: '%savvycal.url%/%calendars.consultation.id%'
pairing:
id: 416f80ad
name: Book a pairing session
url: '%savvycal.url%/%calendars.pairing.id%'
drupalorg:
@ -22,6 +27,10 @@ github:
menus:
footer:
-
title: Calendars
href: /calendars
is_active: '^/calendars/?'
-
title: Pair with me
href: /pair-with-me

View file

@ -0,0 +1,20 @@
---
title: Calendars
descriptions:
consultation: ~
pairing: ~
---
<ul>
{% for key, calendar in site.calendars %}
<li>
<a href="{{ calendar.url }}">
{{- calendar.name -}}
</a>
{% if page.descriptions[key] %}
- {{ page.descriptions[key] }}
{% endif %}
</li>
{% endfor %}
<ul>