{"id":17998213,"url":"https://github.com/primaryobjects/squarespace","last_synced_at":"2025-04-04T06:25:28.067Z","repository":{"id":37898172,"uuid":"380817803","full_name":"primaryobjects/squarespace","owner":"primaryobjects","description":"A collection of render blocks for use on Squarespace.","archived":false,"fork":false,"pushed_at":"2022-10-03T00:44:08.000Z","size":383,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-09T17:42:11.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primaryobjects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-27T19:02:49.000Z","updated_at":"2022-06-10T20:35:48.000Z","dependencies_parsed_at":"2023-01-19T00:15:10.767Z","dependency_job_id":null,"html_url":"https://github.com/primaryobjects/squarespace","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fsquarespace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fsquarespace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fsquarespace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fsquarespace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primaryobjects","download_url":"https://codeload.github.com/primaryobjects/squarespace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247130893,"owners_count":20888672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:24:36.540Z","updated_at":"2025-04-04T06:25:28.051Z","avatar_url":"https://github.com/primaryobjects.png","language":"JavaScript","readme":"Squarespace\n===========\n\nA collection of render blocks for use on Squarespace.\n\n## Quick Start\n\n1. Follow the steps to [connect](https://gist.github.com/primaryobjects/f5a9d7354f353a4fe607cd41f51ff1a2) a Google Spreadsheet to Squarespace.\n2. Follow the steps to [upload](https://gist.github.com/primaryobjects/b6f7be039f8e8f0c234caa3f18e02154) images to the Squarespace CDN and include the links in the spreadsheet.\n3. In Squarespace, create a new page and click the Settings icon.\n4. Click the tab **Advanced**.\n5. Paste the contents from [head.html](head.html) into **Page Header Code Injection**.\n6. Close the settings dialog.\n7. Select the page and click **Edit**.\n8. Click on the code block and select **Edit**.\n9. Paste the contents of from [index.html](index.html) into the **Code** block.\n10. Save the changes.\n\n## Inserting an Author Collection\n\nThe author collection component can be added to a page by following the quick start guide above. The component is added to the page via the following code:\n\n```js\nReactDOM.render(\u003cAuthorCollection\n                manager={adultAuthorManager}\n                /\u003e, document.getElementById('root'));\n```\n\n## Options\n\nThe following options are available on the `AuthorCollection` component.\n\n- manager: Google spreadsheet data manager object and field parser. See examples for [adultAuthorManager](https://github.com/primaryobjects/squarespace/blob/main/collections.js#L473) and [childAuthorManager](https://github.com/primaryobjects/squarespace/blob/main/collections.js#L547).\n\n- image: Determines which image to display int he primary slot. Values: `profile`, `book`. *(default is profile)*\n\n- isHideBook: True if book details should not be displayed for the author. *(default is False)*\n\n- isHideBookText: True if only the book image should be displayed, not the book text information including \"Buy the Book\". *(default is False)*\n\n- isHideBookImage: True to hide the book image from displaying in the book details section. *(default is False)*\n\n- booksHeading: Heading text for book information section. *(default is \"Buy the Book\")*\n\n- retries: Number of retry attempts to download the Google spreadsheet. *(default is 10)*\n\n- version: CDN version number of repository to load data files from. *(default is main branch)*\n\n#### Custom Example\n\nAn example of using the options is shown below.\n\n```js\nReactDOM.render(\u003cAuthorCollection\n                manager={adultAuthorManager}\n                isHideBook={False}\n                isHideBookText={False}\n                booksHeading=\"Latest Books\"\n                /\u003e, document.getElementById('root'));\n```\n\n## Links\n\n[Squarespace Manager](https://dory-crow-msc6.squarespace.com/config/pages)\n\n[Dynamic2](https://www.collingswoodbookfestival.com/dynamic2)\n\n[JSBin](https://jsbin.com/cisidibudi/1/edit?js,output)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Fsquarespace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimaryobjects%2Fsquarespace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Fsquarespace/lists"}