Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor timeline macro for compatibility with Jinja2 templates #3180

Merged
60 changes: 30 additions & 30 deletions src/components/timeline/example-timeline.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@

{{
onsTimeline({
"timelineItems": [
rmccar marked this conversation as resolved.
Show resolved Hide resolved
{
"heading": 'September to October 2020',
"itemsList": [
{
"text": "Meet your Community Engagement Manager and set up regular catch up meetings"
},
{
"text": "Local Authority Toolkit available online"
}
]
},
{
"heading": 'September 2020',
"content": '<p>ONS to provide Councillor Handbook for distribution</p>'
},
{
"heading": 'November 2020',
"content": '<p>ONS to provide you with content for magazines and publications</p>'
},
{
"heading": 'January to March 2021',
"content": '<p>ONS to provide a range of press releases for external use</p>'
},
{
"heading": 'February to April 2021',
"content": '<p>Promote your local Census Support Centres</p>'
}
]
})
"timelineItems": [
{
"heading": 'September to October 2020',
"itemsList": [
{
"text": "Meet your Community Engagement Manager and set up regular catch up meetings"
},
{
"text": "Local Authority Toolkit available online"
}
]
},
{
"heading": 'September 2020',
"content": '<p>ONS to provide Councillor Handbook for distribution</p>'
},
{
"heading": 'November 2020',
"content": '<p>ONS to provide you with content for magazines and publications</p>'
},
{
"heading": 'January to March 2021',
"content": '<p>ONS to provide a range of press releases for external use</p>'
},
{
"heading": 'February to April 2021',
"content": '<p>Promote your local Census Support Centres</p>'
}
]
SriHV marked this conversation as resolved.
Show resolved Hide resolved
})
}}
Loading