-
-
Save ajparsons/ff8029afd333122775864b58fbe29433 to your computer and use it in GitHub Desktop.
Example of the announcement syntax for twfy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"title":"New on the blog: Post by Alex Parsons on why this announcement system was a great idea", | |
"content":"This is the content but I'm adding more info to make it more realistic", | |
"url":"https://www.mysociety.org/", | |
"thumbnail_image_url":"https://www.mysociety.org/files/2023/04/FOI-Act-book-1.jpg", | |
"thumbnail_image_alt_text":"Image alt text", | |
"format":"link", | |
"published":true, | |
"lang": "en", | |
"weight":1, | |
"location":[ | |
"sidebar", | |
"homepage" | |
] | |
}, | |
{ | |
"title":"Donate to TheyWorkForYou", | |
"content":"We believe that information about our representatives should be accessible to everyone.", | |
"url":"https://www.mysociety.org/donate/?utm_source=theyworkforyou&utm_medium=website&utm_campaign=rep-sidebar", | |
"format":"link", | |
"button_text": "Can you support us?", | |
"button_class": "button--negative", | |
"published":true, | |
"lang": "en", | |
"weight":1, | |
"location":[ | |
"donation" | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment