{"id":25814561,"url":"https://github.com/giorgosk/hugo-quick","last_synced_at":"2025-10-28T18:03:31.794Z","repository":{"id":278052883,"uuid":"181172084","full_name":"GiorgosK/hugo-quick","owner":"GiorgosK","description":"Hugo quick install and deployment to github project pages","archived":false,"fork":false,"pushed_at":"2020-03-08T23:05:15.000Z","size":311,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T19:22:54.353Z","etag":null,"topics":["deploy","github-pages","hugo","testing"],"latest_commit_sha":null,"homepage":"https://giorgosk.github.io/hugo-quick/","language":null,"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/GiorgosK.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}},"created_at":"2019-04-13T13:03:16.000Z","updated_at":"2023-03-04T17:47:57.000Z","dependencies_parsed_at":"2025-02-17T19:22:57.788Z","dependency_job_id":"7632a7de-8767-43e3-9f49-171ccc47ba8b","html_url":"https://github.com/GiorgosK/hugo-quick","commit_stats":null,"previous_names":["giorgosk/hugo-quick"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiorgosK%2Fhugo-quick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiorgosK%2Fhugo-quick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiorgosK%2Fhugo-quick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiorgosK%2Fhugo-quick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GiorgosK","download_url":"https://codeload.github.com/GiorgosK/hugo-quick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241095037,"owners_count":19908751,"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":["deploy","github-pages","hugo","testing"],"created_at":"2025-02-28T03:30:53.118Z","updated_at":"2025-10-28T18:03:31.697Z","avatar_url":"https://github.com/GiorgosK.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hugo deploying to github project pages \n\nhttps://[username].github.io/[project-name]/\nhttps://giorgosk.github.io/hugo-quick/\n\n\n## Deployment of Project Pages From Your gh-pages branch\n\nThis setup utilizes the automatic deployment to github pages by pushing to the `gh-pages` branch\n\n## Initial preparation for gh-pages Branch as described on [hugo documentation](https://gohugo.io/hosting-and-deployment/hosting-on-github/#preparations-for-gh-pages-branch) \n\nIgnore `public` folder in `master` branch\n```\necho \"public\" \u003e\u003e .gitignore\ngit commit -am \"Ignoring public folder in master branch\"\n```\n\nInitialize your `gh-pages` branch as an empty [orphan branch](https://git-scm.com/docs/git-checkout/#git-checkout---orphanltnewbranchgt)\n\n```\n# initialize branch\ngit checkout --orphan gh-pages\ngit reset --hard\n\n# commit and puth to github\ngit commit --allow-empty -m \"Initializing gh-pages branch\"\ngit push origin gh-pages\n\n# return to master\ngit checkout master\n```\n\n## Build and Deployment\n\nSetup [git worktree](https://git-scm.com/docs/git-worktree) (one time setup, kept until removed)\n\n```\ngit worktree add -B gh-pages public origin/gh-pages\n```\n\n\nClean public directory (optional)\n```\nrm -rf public\n```\n\nbuild the site (publishDir = \"public\" assumed)\n```\nhugo\n```\n\nStart server and make sure all works by visiting the url created\n```\nhugo serve \n```\n\nCommit to `gh-pages` branch\n```\ncd public \u0026\u0026 git add --all \u0026\u0026 git commit -m \"Publishing to gh-pages\" \u0026\u0026 cd ..\n```\n\nPush to github\n```\ngit push origin gh-pages\n```\nGithub will see the `gh-pages` branch has changed and will automatically deploy the new version of the site","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiorgosk%2Fhugo-quick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiorgosk%2Fhugo-quick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiorgosk%2Fhugo-quick/lists"}