Ghost.org •
Forum •
Docs •
Contributing •
Twitter
Ghost is a popular open-source content management system (CMS) and blogging platform. Designed to be simple, elegant, and focused solely on publishing content, Ghost provides a user-friendly interface for writers and bloggers to create and manage their posts effortlessly.
This repository aims to leverage Ghost to swiftly and efficiently build a stunning landing-page website and deploy it using Amplify.
If you want to know more about ghost, you can click the picture above or the ghost icon to jump to the ghost home page
Amplify is a cloud development platform that enables seamless and scalable deployment of web and mobile applications.
With Amplify, developers can quickly set up, manage, and automate the entire application deployment process, making it easier to focus on building and enhancing the core functionalities of their applications without worrying about server infrastructure.
If you have an AWS account, you can click here to access the AWS console and explore Amplify in more detail.
Amplify can deploy various types of websites, including static websites, single-page applications (SPAs), and serverless web applications. However, it cannot directly deploy Ghost, which is a dynamic content management system (CMS) and requires a server to run.
So we need a tool to generate static sites for ghost.
This is a static site generation tool specially designed for ghost and based on wget. It is very convenient to use. When your ghost project is running on the localhost:2368 endpoint, you only need to enter gssg
in the terminal, and the corresponding static website file will be generated in the current folder
If you want to know more about gssg
, please click here.
-
First, clone the repository:
git init git clone git@github.com:ocademy-ai/ghost-landing-page.git
-
Install dependencies
yarn install
If you have not installed yarn, please install it first.
-
Start server
yarn run dev
-
Make some changes
Open localhost:2368 and make some changes.
-
Commit changes
Push commit or submit a pull request to synchronize your local changes to the main branch.
Note1: You don't need to run gssg yourself to generate the static site, once the main branch has any commits, github actions will run gssg to generate the static site files according to the latest change records, and upload them all to the gh-pages branch. If you want to understand the whole process, please check the .github/workflows/main.yml
file
Note2: Do not make any changes to the gh-pages branch, it is a clean, static site file storage branch, and it is associated with amplify, any changes to the gh-pages branch will cause the site to be re-deployed.
Finally, if you want to visit the deployed website to verify your changes, please click here.
Username: ocademy2023 Password: q7ZMwiZzQHjeH5X