{"id":21499176,"url":"https://github.com/thedevdojo/static","last_synced_at":"2025-07-15T21:31:17.760Z","repository":{"id":191601650,"uuid":"685073755","full_name":"thedevdojo/static","owner":"thedevdojo","description":"⚡️ The ultimate static site generator. Tailor-made for killer blogs, sizzling SaaS landings, audacious personal sites, and every web fantasy you dare to dream up.","archived":false,"fork":false,"pushed_at":"2024-10-23T20:31:08.000Z","size":567,"stargazers_count":176,"open_issues_count":10,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-24T03:13:37.516Z","etag":null,"topics":["generator","html","site","ssg","static","website"],"latest_commit_sha":null,"homepage":"https://static.devdojo.com","language":"JavaScript","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/thedevdojo.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}},"created_at":"2023-08-30T13:12:22.000Z","updated_at":"2024-10-23T20:31:12.000Z","dependencies_parsed_at":"2023-08-30T16:22:31.732Z","dependency_job_id":"b09731aa-2c79-477a-b684-4dc894f0adeb","html_url":"https://github.com/thedevdojo/static","commit_stats":null,"previous_names":["thedevdojo/static"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevdojo%2Fstatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevdojo%2Fstatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevdojo%2Fstatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedevdojo%2Fstatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedevdojo","download_url":"https://codeload.github.com/thedevdojo/static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226071034,"owners_count":17569102,"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":["generator","html","site","ssg","static","website"],"created_at":"2024-11-23T17:02:31.893Z","updated_at":"2024-11-23T17:03:10.423Z","avatar_url":"https://github.com/thedevdojo.png","language":"JavaScript","readme":"# ⚡️ Static - The Pure Power of Simplicity.\n\n\u003cp\u003e\u003cimg src=\"https://raw.githubusercontent.com/thedevdojo/static/main/art/github-static-cover.png\" alt=\"github cover\" /\u003e\u003c/p\u003e\n\nA static site generator you're going to love. No more complicated configs, bloated frameworks, or feeling like you got kicked in the face by a horse! Here's the spiel:\n\n- Static is **easy**. \n- HTML is **easy**. \n- Yet, somehow we lost the art of **crafting simple** Static HTML websites\n\nNo longer will this stand! \u003ca href=\"https://static.devdojo.com\" target=\"_blank\"\u003e\u003cstrong\u003eStatic\u003c/strong\u003e\u003c/a\u003e is here to reclaim the throne of simplicity!\n\n## 🛠️ Setup in a Snap\n\nMake sure you have Node installed on your machine, and then copy/paste the following command in your terminal:\n\n```\nnpm install -g @devdojo/static\n```\n\nNow you'll have the **static** command available on your machine, allowing you to run the following:\n\n- **static new folder-name** - Create a new website with the static starter template\n- **static dev** - Start up a dev environment of your static website\n- **static build** - Build a production ready version of your website (available in the `_site` directory)\n\nNext, head on over to [the official documentation](https://static.devdojo.com/docs) to learn more about building your site.\n\n## 🖐️ Five reasons this might just be your jam!\n\n### 1. Page-based Routing\n\nEach file within the `pages` directory corresponds to a route on your website. With a structure like this:\n\n```\npages\n├── index.html\n├── about.html\n├── contact\n│   ├── index.html\n│   ├── form\n│   │   ├── index.html\n```\n\nYour new site will have the following routes available:\n\n```\nhttp://localhost:3000\nhttp://localhost:3000/about\nhttp://localhost:3000/contact\nhttp://localhost:3000/contact/form\n```\n\n### 2. Layouts\n\nDesign **layouts** that multiple pages can utilize.\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003e{title}\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    {slot}\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nThen, use it in any page.\n\n```\n\u003clayout title=\"Radical Righteousness\" src=\"main.html\"\u003e\n\n    \u003ch1\u003e🏄‍♂️ Totally Tubuloso Website\u003c/h1\u003e\n    \n\u003c/layout\u003e\n```\n### 3. Includes\n\nCreate re-usable HTML partials with the `\u003cinclude\u003e` tag. Specify the HTML file with the `src` attribute.\n\n```\n\u003clayout title=\"Behind the Scenes!\" src=\"main.html\"\u003e\n\n    \u003cinclude src=\"about-header.html\"\u003e\u003c/include\u003e\n    \u003cinclude src=\"about-copy.html\"\u003e\u003c/include\u003e\n\n\u003c/layout\u003e\n```\n\n### 4. TailwindCSS Integration\n\nAdd the TailwindCSS **shortcode** to the `\u003chead\u003e` of any layout and it will automatically be injected. Example:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003e{title}\u003c/title\u003e\n    {tailwindcss}\n\u003c/head\u003e\n\u003cbody\u003e\n    {slot}\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nIt will be replaced with the Tailwind CDN link in `dev`, and a minified CSS file will be compiled during `build`.\n\n### 5. Collections\n\nAdd collections of data to your application. Here's an example collection located at **collections/menu.json**\n\n```\n[\n    {\n        \"title\" : \"Home\",\n        \"link\" : \"/\"\n    },\n    {\n        \"title\" : \"About\",\n        \"link\" : \"/about\"\n    }\n]\n```\n\nNow, you can easily loop through this collection:\n\n```\n\u003cForEach collection=\"menu\"\u003e\n    \u003cli\u003e{menu.title}\u003c/h1\u003e\n\u003c/ForEach\u003e\n```\n\n\u003e Those are just a few of the hot features available, but there's [so much more to uncover and learn](https://static.devdojo.com/docs).\n\n# Learn More\n\nYou can learn about all the features available in Static by visiting the [official documentation](https://static.devdojo.com/docs). You may also be interested in checking out some of the [templates here](https://static.devdojo.com/templates).\n\nStatic HTML is King 👑\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevdojo%2Fstatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedevdojo%2Fstatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevdojo%2Fstatic/lists"}