{"id":13809234,"url":"https://github.com/abhijithvijayan/ghost-on-github-pages","last_synced_at":"2025-04-30T11:54:36.455Z","repository":{"id":52833915,"uuid":"136763695","full_name":"abhijithvijayan/ghost-on-github-pages","owner":"abhijithvijayan","description":"💻⏰ Ghost on Github Pages. Build and deploy Ghost for free in a few minutes.","archived":false,"fork":false,"pushed_at":"2021-04-17T08:45:26.000Z","size":6383,"stargazers_count":53,"open_issues_count":6,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T15:51:15.166Z","etag":null,"topics":["blog","free","ghost","ghost-installation","ghost-on-github-pages","github-pages"],"latest_commit_sha":null,"homepage":"https://abhijithvijayan.github.io/ghost-blog-demo/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhijithvijayan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"abhijithvijayan","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"abhijithvijayan","otechie":null,"custom":["https://www.buymeacoffee.com/abhijithvijayan","https://www.paypal.me/iamabhijithvijayan"]}},"created_at":"2018-06-09T22:58:50.000Z","updated_at":"2024-12-19T13:30:20.000Z","dependencies_parsed_at":"2022-08-22T13:20:28.447Z","dependency_job_id":null,"html_url":"https://github.com/abhijithvijayan/ghost-on-github-pages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhijithvijayan%2Fghost-on-github-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhijithvijayan%2Fghost-on-github-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhijithvijayan%2Fghost-on-github-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhijithvijayan%2Fghost-on-github-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhijithvijayan","download_url":"https://codeload.github.com/abhijithvijayan/ghost-on-github-pages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251694185,"owners_count":21628804,"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":["blog","free","ghost","ghost-installation","ghost-on-github-pages","github-pages"],"created_at":"2024-08-04T01:02:11.896Z","updated_at":"2025-04-30T11:54:36.423Z","avatar_url":"https://github.com/abhijithvijayan.png","language":"Shell","funding_links":["https://patreon.com/abhijithvijayan","https://issuehunt.io/r/abhijithvijayan","https://www.buymeacoffee.com/abhijithvijayan","https://www.paypal.me/iamabhijithvijayan","https://www.patreon.com/abhijithvijayan","https://www.buymeacoffee.com/abhijithvijayan'"],"categories":["Shell"],"sub_categories":[],"readme":"# Ghost Blog Platform on Github Pages\n\n[![](https://img.shields.io/badge/last--update-Apr--2020-red.svg)](https://github.com/abhijithvijayan/ghost-on-github-pages/commits/master)\n[![Visit blog!](https://img.shields.io/badge/visit-blog-blue.svg)](https://abhijithvijayan.github.io/ghost-blog-demo/)\n\n\u003e https://abhijithvijayan.github.io/ghost-blog-demo/\n\n\u003ch3\u003e🙋‍♂️ Made by \u003ca href=\"https://twitter.com/_abhijithv\"\u003e@abhijithvijayan\u003c/a\u003e\u003c/h3\u003e\n\u003cp\u003e\n  Donate:\n  \u003ca href=\"https://www.paypal.me/iamabhijithvijayan\" target='_blank'\u003e\u003ci\u003e\u003cb\u003ePayPal\u003c/b\u003e\u003c/i\u003e\u003c/a\u003e,\n  \u003ca href=\"https://www.patreon.com/abhijithvijayan\" target='_blank'\u003e\u003ci\u003e\u003cb\u003ePatreon\u003c/b\u003e\u003c/i\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n  \u003ca href='https://www.buymeacoffee.com/abhijithvijayan' target='_blank'\u003e\n    \u003cimg height='36' style='border:0px;height:36px;' src='https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png' border='0' alt='Buy Me a Coffee' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003chr /\u003e\n\nUpdate: The flexibility of this project allows you to push the static site to any github repo and deploy it with any service like [Netlify](https://netlify.app). I'd recommend connecting the repo to Netlify service and deploy it there. Also, Netlify provides features like Custom Domain free of charges.\n\n## Table of Contents\n\n- [Requirements](#requirements)\n  - [1) Install Major Dependencies](#1-Install-Major-Dependencies)\n  - [2) Install Other Packages](#2-Install-Other-Packages)\n- [Setup](#setup)\n  - [1) Install Ghost](#1-Download-and-Install-Ghost)\n  - [2) Create a new Github repository](#2-Create-your-GitHub-Pages-repo)\n  - [3) Deploying to Github Pages](#3-Deploy-to-GitHub-Pages)\n- [How to update your blog?](#Write-new-Blog-posts)\n\n\u003chr /\u003e\n\n## Requirements\n\n## 1) Install Major Dependencies\n\n### Install [NodeJS](https://nodejs.org/en/download/package-manager/)\n\nInstall a version that is officially [supported]((https://docs.ghost.org/docs/supported-node-versions)) by Ghost, preferably latest LTS\n\n```\ncurl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -\nsudo apt-get install -y nodejs\n```\n\n## 2) Install Other Packages\n\n### Install [Homebrew](https://brew.sh/)\n\n```\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\"\n```\n\n### Install Node.js runtime\n\nGhost is written in Node.js, so you will need the Node.js runtime.\n\n```\nbrew install node\nbrew install wget\nsudo apt-get install build-essential\n```\n\nInitialize npm\n\n```\nnpm init\n```\n\nEnter the credentials when asked\n\n- github username in the name field\\*\n- repository name(eg: username.github.io)\n- a description\\*\n\nLeave the other less important fields empty.\n\n### Install [yarn](https://classic.yarnpkg.com/en/docs/install/#debian-stable)\n\n```\ncurl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -\necho \"deb https://dl.yarnpkg.com/debian/ stable main\" | sudo tee /etc/apt/sources.list.d/yarn.list\nsudo apt update \u0026\u0026 sudo apt install yarn\n```\n\n\u003chr /\u003e\n\n## Setup\n\n## 1) Download and Install Ghost\n\n```\nnpm install ghost-cli@latest -g\n```\n\nChange the present working directory\n\n```\nmkdir ghost \u0026\u0026 cd ghost\n```\n\nInstall Ghost\n\n```\nghost install local --no-start --enable --port 2368\n```\n\n## Start Ghost\n\n```\nghost start\n```\n\nOpen browser and navigate to\n\n```\nhttp://localhost:2368/\n```\n\n![image](https://preview.ibb.co/no4n5U/desktop.jpg)\n\n## Login to Ghost\n\n```\nhttp://localhost:2368/ghost/\n```\n\nGo to the above link in your browser ans if it doesn't show anything, check the status of the blog with\n\n```\nghost status\n```\n\n![](https://i.imgur.com/OeAsLDw.png)\n\nCreate an account, read the intial blog post how to edit with Markdown etc.\n\n## 2) Create your GitHub Pages repo\n\nCreate a repo with [`create-remote-repo`](https://github.com/abhijithvijayan/create-remote-repo-cli) CLI\n\nYou must use the `username/username.github.io` naming scheme. The repo name must be **lower case** even if your username has upper case letters.\n\n```js\nnpx create-remote-repo username.github.io\n\n# Replace with your username\n```\n\n## 3) Deploy to GitHub Pages\n\nCreate a file named `deploy.sh` with contents from [deploy.sh](deploy.sh)\n\nGive execute permission\n\n```\nchmod u+x deploy.sh\n```\n\nDeploy with\n\n```\n./deploy.sh\n```\n\nFor the initial push, please wait up to 10 minutes until GitHub deploys your subdomain.\n\nAll upcoming pushes are much faster and you can see your static ghost blog posts at \u003chttps://username.github.io\u003e\n\n\u003chr /\u003e\n\n## Write new Blog posts\n\nTo write new Blog posts or update the existing ones, just start Ghost, edit, then generate and deploy the static pages.\n\n```\ncd ghost\nghost start\n```\n\nVisit\n\n```\nhttp://localhost:2368/ghost/\n```\n\nLogin and write new posts\n\n## Deploy with `wget`\n\nAfter writing new posts, deploy with `wget`.\nRun the [deploy.sh](deploy.sh) script/.\n\n```\n./deploy.sh\n```\n\nEnter the credentials when asked!\n\n\u003chr /\u003e\n\n### Voila! You got yourself a ghost blog on github pages\n\n- Live Version: \u003chttps://abhijithvijayan.github.io/ghost-blog-demo/\u003e\n- Demo Repo: \u003chttps://github.com/abhijithvijayan/ghost-blog-demo\u003e\n- Custom Theme Repo: \u003chttps://github.com/abhijithvijayan/Casper-XYZ\u003e\n\n\u003c!-- #### N.B. I made a script [deploy.sh](https://raw.githubusercontent.com/abhijithvijayan/ghost-on-github-pages/master/deploy.sh) for easiness. --\u003e\n\n\u003c!--\nMy Blog also has a **Progressive Web App** and so I had to modify the `deploy.sh` script, `themes`, `header`, `footer` for PWA.\nFor comments I used [Gitment](https://github.com/imsun/gitment)\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhijithvijayan%2Fghost-on-github-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhijithvijayan%2Fghost-on-github-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhijithvijayan%2Fghost-on-github-pages/lists"}