{"id":21926867,"url":"https://github.com/hounddd/wn-blocks-theme","last_synced_at":"2025-10-25T16:02:50.224Z","repository":{"id":56986048,"uuid":"363182072","full_name":"Hounddd/wn-blocks-theme","owner":"Hounddd","description":"Winter CMS theme that demonstrates the use of \"repeater groups\" in custom page fields to assemble static pages with customizable building sections and blocks.","archived":false,"fork":false,"pushed_at":"2021-05-26T13:15:21.000Z","size":81,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-28T17:53:27.428Z","etag":null,"topics":["blocks","custom-page-fields","theme","wintercms"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hounddd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-30T15:25:42.000Z","updated_at":"2023-08-03T15:22:05.000Z","dependencies_parsed_at":"2022-08-21T09:00:07.478Z","dependency_job_id":null,"html_url":"https://github.com/Hounddd/wn-blocks-theme","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-blocks-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-blocks-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-blocks-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hounddd%2Fwn-blocks-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hounddd","download_url":"https://codeload.github.com/Hounddd/wn-blocks-theme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952805,"owners_count":20537474,"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":["blocks","custom-page-fields","theme","wintercms"],"created_at":"2024-11-28T22:11:52.115Z","updated_at":"2025-10-25T16:02:50.126Z","avatar_url":"https://github.com/Hounddd.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Winter CMS - Blocks Theme\nWinter CMS theme that demonstrates the use of \"repeater groups\" in [custom page fields](https://github.com/wintercms/wn-pages-plugin/blob/main/docs/documentation.md#custom-page-fields) to assemble static pages with customizable building sections and blocks.\nEach section, depending on his type, can have one or more blocks.\n\n## Installation\n(let assume you're in the root of your winter installation)\n\n### Using composer\nJust run this command\n```\ncomposer require hounddd/wn-blocks-theme\n```\n\n### Cloning repo\nClone this repo into your winter themes folder.\n\n```\ncd themes\ngit clone https://github.com/Hounddd/wn-blocks-theme blocks\n```\n## Usage\nNOTE: the name **blocks** is important, if you change the themes name you have to alter some files to match the path.\n - the groups attribute in the `layouts/default.htm` repeater.\n - the groups attribute in the `meta/sections.yaml` repeater.\n\n\nIn your backend, check for the [static pages plugin](https://github.com/wintercms/wn-pages-plugin) to be installed. If you go to the \"Pages\" and edit home page, you now have a blocks tab where you can add different sections/blocks, enter data and even rearrange their order.\nCustom page fields add custom fields to the page editor form, called *Syntax Fields*\n\n![static pages example](assets/images/blocks.jpg)\n\n## Adjust to your needs\nSee [Winter CMS backend forms](https://wintercms.com/docs/backend/forms) documentation to see how setting new field definitions.\n### Adding sections\nTo add more section types, edit `meta/sections.yaml` file.\n\nIn your field definition simply add\n```\nmy-section-type:\n    name: My awesome section\n    description: display a section\n    icon: icon-table\n    content:\n        type: repeater\n        prompt: Add new block\n        style: accordion\n        groups: themes/blocks/meta/blocks.yaml\n```\n**Important**: Each section definition has a corresponding partial file named `partials/blocks/{section_name}.htm`.  The form data is passed as 'data'.\n\n![static pages example](assets/images/blocks-menus.png)\n\n### Adding blocks\nTo add more block types, edit `meta/blocks.yaml` file.\n\nIn your field definition simply add\n```\ntext:\n    name: Simple text\n    description: simple text without html tags\n    icon: icon-file-text-o\n    fields:\n        content:\n            label: Content\n            span: left\n            type: textarea\n            size: small\n```\n**Important**: Each block definition has a corresponding partial file named `partials/blocks/content/{block_name}.htm`.  The form data is passed as 'content'.\n\n**Make awesome sites with Winter!**\n\n----\n\nThis theme is inspired by [Liip/Blocks Theme](https://github.com/liip/oc-blocks-theme).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhounddd%2Fwn-blocks-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhounddd%2Fwn-blocks-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhounddd%2Fwn-blocks-theme/lists"}