{"id":28286280,"url":"https://github.com/nalmeida/ssg5-test","last_synced_at":"2026-04-24T12:32:21.875Z","repository":{"id":141870860,"uuid":"277604825","full_name":"nalmeida/ssg5-test","owner":"nalmeida","description":"Static Site Generator using only bash.","archived":false,"fork":false,"pushed_at":"2020-12-30T20:00:41.000Z","size":149,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T13:52:19.882Z","etag":null,"topics":["bash","netlify","shell","static-site-generator"],"latest_commit_sha":null,"homepage":"https://ssg5-test.netlify.app/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nalmeida.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-07-06T17:21:12.000Z","updated_at":"2021-12-05T14:32:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"61a0e0ab-7b4a-45da-96a7-7ee987b75a46","html_url":"https://github.com/nalmeida/ssg5-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nalmeida/ssg5-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fssg5-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fssg5-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fssg5-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fssg5-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nalmeida","download_url":"https://codeload.github.com/nalmeida/ssg5-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nalmeida%2Fssg5-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32223927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","netlify","shell","static-site-generator"],"created_at":"2025-05-21T20:11:58.552Z","updated_at":"2026-04-24T12:32:21.869Z","avatar_url":"https://github.com/nalmeida.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssg5 Sample Site\n\nSuper simple site generator using [ssg5](https://github.com/nalmeida/ssg5) submodule and deploying it on Netlify.\n\n⭐️ See this project live: https://ssg5-test.netlify.app/\n\n## Tested on\n\n* MacOS `10.13.6`\n* GNU bash, version `3.2.57(1)-release (x86_64-apple-darwin17)`\n\n## Install\n\n1. Clone this repo **including the submodules** and you are good to go!\n\n```\n$ git clone --recurse-submodules https://github.com/nalmeida/ssg5-test.git YOUR_FOLDER\n```\n\n## Local development\n\n### 1. Basic Configuration\n\nSet the variables inside the `config.txt` file:\n\n* `SRC` (default `./src`): Your source files.\n* `DST` (default `./dist`): The distribution files output.\n* `SITE_NAME` (default `\"SSG5 Test Website\"`): Your website name. Always set it inside double quotes `\"`.\n\n### 2. Generate\n\nIn order to generate the project locally, run the `generate` command passing the local web server (`base_url`) as a paramenter. It is only used on the `sitemap.xml` generation. If empty, it will use `/` as default.\n\n```\n$ ./generate http://0.0.0.0:8000/\n```\n\n### 3. Replace `base_url`\n\nIt is possible do \"inject\" the `base_url` into all the files inside the `./dist` folder recursively.  If empty, it will use `/` as default.\n\n```\n$ ./replace_base_url http://0.0.0.0:8000/\n```\n\n### 4. Watch the ./src folder\n\nRun the `watch` command to `generate` and `replace_base_url` the files from `./src` to `./dist` folder and start watching the `./src/*` folder.\n\n```\n$ ./watch\n```\n\n### 5. Serve a local webserver\n\nThere is a `./server` shell command to serve the files inside the `./dist` folder. It is a simple wrapper of the `python -m http.server` (tested using the `Python 3.7.3`).\n\n```\n$ ./server\n```\n\n## Deploy to Netlify\n\nOf course you must have a Netlify account, connect it to your git repository and so on.\n\n### 1. Inside the **Continuous Deployment** of your project, config:\n\n* **Build command**: `./generate https://YOUR_FULL_URL \u0026\u0026 ./replace_base_url https://YOUR_FULL_URL`\n* **Deploy directory**: `dist`\n\n### 2. Another required configuration is:\n\nInside **Build image selection** of your project and select:\n\n* **Build image**: `Ubuntu Trusty 14.04`\n\n---\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/effe723e-bb23-4e2f-baf6-1a615e3771f4/deploy-status)](https://app.netlify.com/sites/ssg5-test/deploys)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalmeida%2Fssg5-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnalmeida%2Fssg5-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnalmeida%2Fssg5-test/lists"}