feat: add calendars page
This commit is contained in:
parent
be90cef851
commit
585b592256
|
@ -6,8 +6,13 @@ avatar:
|
||||||
url: '/sites/default/files/images/social-avatar.jpg'
|
url: '/sites/default/files/images/social-avatar.jpg'
|
||||||
|
|
||||||
calendars:
|
calendars:
|
||||||
|
consultation:
|
||||||
|
id: 83087702
|
||||||
|
name: Book a consultation
|
||||||
|
url: '%savvycal.url%/%calendars.consultation.id%'
|
||||||
pairing:
|
pairing:
|
||||||
id: 416f80ad
|
id: 416f80ad
|
||||||
|
name: Book a pairing session
|
||||||
url: '%savvycal.url%/%calendars.pairing.id%'
|
url: '%savvycal.url%/%calendars.pairing.id%'
|
||||||
|
|
||||||
drupalorg:
|
drupalorg:
|
||||||
|
@ -22,6 +27,10 @@ github:
|
||||||
|
|
||||||
menus:
|
menus:
|
||||||
footer:
|
footer:
|
||||||
|
-
|
||||||
|
title: Calendars
|
||||||
|
href: /calendars
|
||||||
|
is_active: '^/calendars/?'
|
||||||
-
|
-
|
||||||
title: Pair with me
|
title: Pair with me
|
||||||
href: /pair-with-me
|
href: /pair-with-me
|
||||||
|
|
20
source/_pages/calendars.html.twig
Normal file
20
source/_pages/calendars.html.twig
Normal 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>
|
Loading…
Reference in a new issue