Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I host my wordpress blog on github pages as a static webpage

I would like to make my WordPress blog installed on Localhost to push into GitHub and run that on GitHub as a static page. Can I do it, and if yes please give me a detailed answer with the steps and problems involved?

I don't care if my page is static, but will I be able to host it on GitHub pages?

like image 414
Hari Avatar asked Oct 02 '15 07:10

Hari


People also ask

Is GitHub Pages for static website hosting?

GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website. You can see examples of GitHub Pages sites in the GitHub Pages examples collection.

Can you host a blog on GitHub Pages?

Did you know you can host your personal, organization, and project sites on GitHub? With GitHub Pages, you can quickly create a site from your GitHub repositories—a great way to share static content related to your repository like resumes, portfolios, and project blogs.

How do I run a static website on GitHub?

Step 2 Create a new GitHub Repository Go into your dashboard and find a “New Repository” button. Click on it to create a new repository and name it whatever you want let say I named my repo to “first-repo-gfg” and in description you can give some information about your repository.

Should I use GitHub or WordPress?

You can even use GitHub Pages to host a static version of a WordPress website. However, if you're looking to build a more complex and/or dynamic site, you're probably better off with WordPress. But if you need a free site and don't mind coding a bit, the performance you get out of GitHub Pages may be worth it to you.


1 Answers

This website gives a good answer on how to do this: https://www.hywel.me/static/site/wordpress/2016/07/17/fast-free-static-website-with-wordpress-and-github-pages.html

In short:

  1. Set-up GitHub pages.
  2. Install Simply static plugin into WordPress.
  3. Push the export from the plug-in back to your git repository and you are done!
like image 149
Christoph Avatar answered Oct 26 '22 12:10

Christoph