data processing power<\/a>.<\/p>\nGo ahead and build on top of the template as you work on the new project. When you finish that project, identify pieces you want to reuse in future projects. Perhaps you figured out a cool hover effect on buttons. Or you built your own JavaScript carousel element. Or maybe you\u2019re really proud of the document design and hierarchy of information.<\/p>\n
If you think anything you did on a project might come up again on your next run, remove the project-specific details and add the new stuff to your template project. Push those changes up to GitHub, and the next time you use static-site-template<\/strong> to kick off a project, your reusable code will be available to you. <\/p>\nThere are some limitations to this, of course<\/h3>\n
GitHub template repositories are a useful tool for avoiding repetitive setup on new web development projects. I find this especially useful for static site projects. These template repositories might not be as appropriate for more complex projects that require external services like databases with configuration that cannot be version-controlled in a single directory.<\/p>\n
Template repositories allow you to ship reusable code you have written so you can solve a problem once and use that solution over and over again. But while your new solutions will carry over to future projects, they won\u2019t be ported backwards to old projects. <\/p>\n
This is a useful process for sites with very similar<\/strong> structure, styles, and functionality. Projects with wildly varied requirements may not benefit from this code-sharing, and you could end up bloating your project with unnecessary code.<\/p>\nWrapping up<\/h3>\n
There you have it! You now have everything you need to not only start a static site project using Eleventy, but the power to re-purpose it on future projects. GitHub templates are so handy for kicking off projects quickly where we otherwise would have to re-build the same wheel over and over. Use them to your advantage and enjoy a jump start on your projects moving forward!<\/p>\n","protected":false},"excerpt":{"rendered":"
If you\u2019re getting started with static site generators, did you know you can use GitHub template repositories to quickly start new projects and reduce your setup time?<\/p>\n","protected":false},"author":266402,"featured_media":296339,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[638,6315,1025],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/09\/octocat-copies.png?fit=1200%2C600&ssl=1","jetpack-related-posts":[{"id":345807,"url":"https:\/\/css-tricks.com\/automatic-daily-github-backups-restored-in-seconds\/","url_meta":{"origin":296323,"position":0},"title":"Automatic Daily GitHub Backups, Restored in Seconds","date":"August 3, 2021","format":false,"excerpt":"Any company that uses GitHub for critical applications needs a backup that can be restored quickly when needed. Cyberattacks, human errors, or a forced push are just some of the scenarios that can result in the loss of GitHub data. In the event of an emergency, you can\u2019t be wasting\u2026","rel":"","context":"In "Sponsored"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/08\/BKH_CSSTricks_Ads_Revised.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":305646,"url":"https:\/\/css-tricks.com\/continuous-deployments-for-wordpress-using-github-actions\/","url_meta":{"origin":296323,"position":1},"title":"Continuous Deployments for WordPress Using GitHub Actions","date":"April 6, 2020","format":false,"excerpt":"Continuous Integration (CI) workflows are considered a best practice these days. As in, you work with your version control system (Git), and as you do, CI is doing work for you like running tests, sending notifications, and deploying code. That last part is called Continuous Deployment (CD). But shipping code\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/03\/github-actions-wordpress.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":346449,"url":"https:\/\/css-tricks.com\/from-a-single-repo-to-multi-repos-to-monorepo-to-multi-monorepo\/","url_meta":{"origin":296323,"position":2},"title":"From a Single Repo, to Multi-Repos, to Monorepo, to Multi-Monorepo","date":"August 17, 2021","format":false,"excerpt":"I've been working on the same project for several years. Its initial version was a huge monolithic app containing thousands of files. It was poorly architected and non-reusable, but was hosted in a single repo making it easy to work with. Later, I \u201cfixed\u201d the mess in the project by\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/08\/connected-repos.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":293787,"url":"https:\/\/css-tricks.com\/building-a-full-stack-serverless-application-with-cloudflare-workers\/","url_meta":{"origin":296323,"position":3},"title":"Building a Full-Stack Serverless Application with Cloudflare Workers","date":"August 9, 2019","format":false,"excerpt":"One of my favorite developments in software development has been the advent of serverless. As a developer who has a tendency to get bogged down in the details of deployment and DevOps, it's refreshing to be given a mode of building web applications that simply abstracts scaling and infrastructure away\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/08\/cloudflare-workers-1-1.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":295432,"url":"https:\/\/css-tricks.com\/fast-static-sites-with-netlify-and-anymod\/","url_meta":{"origin":296323,"position":4},"title":"Fast Static Sites with Netlify and AnyMod","date":"September 12, 2019","format":false,"excerpt":"In about 10 minutes, we'll set up a workflow that makes static sites dead simple. You'll get the following: Free https Free or cheap hosting Build sites quickly Edit with live reload Edit when you\u2019ve forgotten everything in 6 months Start: signups We can get all this by using Netlify\u2026","rel":"","context":"In "Sponsored"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/09\/sep-2019.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":308227,"url":"https:\/\/css-tricks.com\/how-to-make-a-simple-cms-with-cloudflare-github-actions-and-metalsmith\/","url_meta":{"origin":296323,"position":5},"title":"How to Make a Simple CMS With Cloudflare, GitHub Actions and Metalsmith","date":"May 14, 2020","format":false,"excerpt":"Let\u2019s build ourselves a CMS. But rather than build out a UI, we\u2019re going to get that UI for free in the form of GitHub itself! We\u2019ll be leveraging GitHub as the way to manage the content for our static site generator (it could be any static site generator). Here\u2019s\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/05\/Artboard.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/296323"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/266402"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=296323"}],"version-history":[{"count":10,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/296323\/revisions"}],"predecessor-version":[{"id":296911,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/296323\/revisions\/296911"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/296339"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=296323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=296323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=296323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}