{"repo":"statamic/ssg","free":true,"listed":false,"github":"https://github.com/statamic/ssg","clone":"git clone https://github.com/statamic/ssg.git","description":"The official Statamic Static Site Generator","language":"PHP","stars":253,"topics":["statamic","static-site-generator","ssg","laravel"],"license":null,"category":"docs-static-sites","readme_excerpt":"Statamic Static Site Generator Generate static sites with Statamic. Installation You can install the Static Site Generator package with the following command: The command will install the statamic/ssg package via Composer, optionally publish the configuration file and prompt you if you wish to install the spatie/fork package for running multiple workers. Usage Run the following command: Your site will be generated into a directory which you can deploy however you like. See Deployment Examples below for inspiration. Multiple Workers For improved performance, you may spread the page generation across multiple workers. This requires Spatie's Fork package. Then you may specify how many workers are to be used. You can use as many workers as you have CPU cores. Routes Routes will not automatically be generated. You can add any additional URLs you wish to be generated by adding them to the urls array in the config file. You can also exclude single routes, or route groups with wildcards. This will override anything in the urls config. Dynamic Routes You may add URLs dynamically by providing a closure that returns an array to the addUrls method. Pagination Routes Wherever pagination is detected in your antlers templates (eg. if you use the paginate param on the collection tag), multiple pages will automatically be generated with /articles/page/2 style urls. You may configure a custom routing style in config/statamic/ssg.php : Post-generation callback You may optionally define extra st","default_branch":null,"files":null,"tree":[],"storefront":"/r/statamic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/statamic/ssg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}