{"id":23902973,"url":"https://github.com/marcomilon/gstatic","last_synced_at":"2025-02-23T10:45:00.173Z","repository":{"id":173103949,"uuid":"256817187","full_name":"marcomilon/gstatic","owner":"marcomilon","description":"A simple static website generator.","archived":false,"fork":false,"pushed_at":"2023-10-21T18:39:09.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T22:51:16.596Z","etag":null,"topics":["golang","static-site","static-site-generator","static-website"],"latest_commit_sha":null,"homepage":"","language":"Go","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/marcomilon.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":"2020-04-18T17:49:40.000Z","updated_at":"2022-12-28T20:49:35.000Z","dependencies_parsed_at":"2024-06-21T04:16:04.445Z","dependency_job_id":"ed4439a5-ca57-4819-b516-15fae2a726c5","html_url":"https://github.com/marcomilon/gstatic","commit_stats":null,"previous_names":["marcomilon/gstatic"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomilon%2Fgstatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomilon%2Fgstatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomilon%2Fgstatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcomilon%2Fgstatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcomilon","download_url":"https://codeload.github.com/marcomilon/gstatic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240304564,"owners_count":19780312,"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":["golang","static-site","static-site-generator","static-website"],"created_at":"2025-01-04T22:51:22.220Z","updated_at":"2025-02-23T10:45:00.113Z","avatar_url":"https://github.com/marcomilon.png","language":"Go","readme":"# gStatic\n\nA simple static website generator. The goal of the project is to create simple website generator. \ngStatic is powered by Go’s html/template.\n\n## Todo\n\n- [x] Read all file on the template folder\n- [x] Parse a yaml files and replace variables on the template\n- [x] Write result to a public folder\n- [x] Add support for layouts\n- [x] Improve error handling\n- [x] Add configuration\n- [x] Add documentation on how to do templates\n\n## Common language\n\n* sourceFolder is the folder that has all the html files.\n* targetFolder is the folder where the website will be written.\n* Template is an Html file.\n* Data-source is a file that variables to be use inside the html files.\n\n## How gStatic finds the data-source for an Html file\n\ngStatic use one convention. \n\n\u003e The name of the data-source must match the name of the html file.\n\nYaml files is the only data-source supported.\n\nExample\n\n| Template | Data-source | Result  |\n| ------------- |-------------|-----|\n| index.html | index.yaml | index.html will be rendered using variables on index.yaml |\n| aboutus.html | aboutus.yaml | aboutus.html will be rendered using variables on aboutus.yaml |\n| contactus.html | if no yaml file for contactus | contactus.html will be copied to Target as it is |\n\n## How it works?\n\nSee: https://blog.gopheracademy.com/advent-2017/using-go-templates/\nand `website_example`.\n\n## Usage\n\n\u003e gstatic \u0026lt;sourceFolder\u0026gt; \u0026lt;targetFolder\u0026gt;\n\nUse -h for help\n\n\u003e gstatic -h ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcomilon%2Fgstatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcomilon%2Fgstatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcomilon%2Fgstatic/lists"}