{"id":17122245,"url":"https://github.com/timber/starter-theme","last_synced_at":"2025-05-14T02:06:27.422Z","repository":{"id":27851573,"uuid":"31341971","full_name":"timber/starter-theme","owner":"timber","description":"The \"_s\" for Timber: a dead-simple theme that you can build anything from","archived":false,"fork":false,"pushed_at":"2024-12-26T16:17:13.000Z","size":215,"stargazers_count":828,"open_issues_count":7,"forks_count":278,"subscribers_count":44,"default_branch":"2.x","last_synced_at":"2025-05-08T18:53:50.719Z","etag":null,"topics":["php","timber","twig","wordpress-theme"],"latest_commit_sha":null,"homepage":"","language":"Twig","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/timber.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"timber","github":"timber"}},"created_at":"2015-02-25T23:51:14.000Z","updated_at":"2025-05-08T07:40:41.000Z","dependencies_parsed_at":"2022-07-27T11:02:16.926Z","dependency_job_id":"a7bdb182-e5ef-4044-8864-766d1d2f3d38","html_url":"https://github.com/timber/starter-theme","commit_stats":{"total_commits":179,"total_committers":43,"mean_commits":4.162790697674419,"dds":0.6815642458100559,"last_synced_commit":"8180832b6d125d128f039d2b3fdac2b6b34d17da"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fstarter-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fstarter-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fstarter-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timber%2Fstarter-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timber","download_url":"https://codeload.github.com/timber/starter-theme/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052697,"owners_count":22006716,"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":["php","timber","twig","wordpress-theme"],"created_at":"2024-10-14T18:07:04.926Z","updated_at":"2025-05-14T02:06:22.410Z","avatar_url":"https://github.com/timber.png","language":"Twig","readme":"# The Timber Starter Theme\n\n[![Build Status](https://travis-ci.com/timber/starter-theme.svg?branch=master)](https://travis-ci.com/github/timber/starter-theme)\n[![Packagist Version](https://img.shields.io/packagist/v/timber/starter-theme?include_prereleases)](https://packagist.org/packages/timber/starter-theme)\n\nThe \"_s\" for Timber: a dead-simple theme that you can build from. The primary purpose of this theme is to provide a file structure rather than a framework for markup or styles. Configure your SASS files, scripts, and task runners however you would like!\n\n## Installing the theme\n\nFollow the guide on [how to Install Timber using the Starter Theme](https://timber.github.io/docs/v2/installation/installation/#use-the-starter-theme).\n\nThen,\n\n1. Rename the theme folder to something that makes sense for your website. You could keep the name `timber-starter-theme` but the point of a starter theme is to make it your own!\n2. Activate the theme in the WordPress Dashboard under **Appearance → Themes**.\n3. Do your thing! And read [the docs](https://timber.github.io/docs/).\n\n## The `StarterSite` class\n\nIn **functions.php**, we call `new StarterSite();`. The `StarterSite` class sits in the **src** folder. You can update this class to add functionality to your theme. This approach is just one example for how you could do it.\n\nThe **src** folder would be the right place to put your classes that [extend Timber’s functionality](https://timber.github.io/docs/v2/guides/extending-timber/).\n\nSmall tip: You can make use of Composer’s [autoloading functionality](https://getcomposer.org/doc/04-schema.md#psr-4) to automatically load your PHP classes when they are requested instead of requiring one by one in **functions.php**.\n\n## What else is there?\n\n- `assets/` is where you can keep your front-end scripts, styles, or images. In other words, your Sass files, JS files, fonts, and SVGs would live here.\n- `views/` contains all of your Twig templates. These pretty much correspond 1 to 1 with the PHP files that respond to the WordPress template hierarchy. At the end of each PHP template, you’ll notice a `Timber::render()` function whose first parameter is the Twig file where that data (or `$context`) will be used. Just an FYI.\n- `tests/` ... basically don’t worry about (or remove) this unless you know what it is and want to.\n\n## Other Resources\n\n* [Twig for Timber Cheatsheet](https://notlaura.com/the-twig-for-timber-cheatsheet/)\n* [Timber and Twig Reignited My Love for WordPress](https://css-tricks.com/timber-and-twig-reignited-my-love-for-wordpress/) on CSS-Tricks\n* [A real live Timber theme](https://github.com/laras126/yuling-theme).\n","funding_links":["https://opencollective.com/timber","https://github.com/sponsors/timber"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimber%2Fstarter-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimber%2Fstarter-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimber%2Fstarter-theme/lists"}