Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to use GitHub Pages for GRAV?

Started by Muut Archive 11 years ago · 3 replies · 2902 views
11 years ago

GitHub pages is only for static pages. So no PHP support on there at all. Jekyll takes markdown and templates and generates static html pages, the result is not dynamic at all.

Grav is not a static file generator, its a flat-file CMS that needs PHP to run. Therefore it won't run on GitHub pages.

However, there is a possibility that Grav could get a 'generator' mode in the future, although it would mean the resulting site is pretty limited compared to the dynamic capabilities it has now (live data integration, search, filtering, ajax, etc)

11 years ago

Oh, now I see
Thank you for the answer :)

11 years ago

Hi,

If you develop the site locally (say on localhost), you could generate static pages to upload by mirroring it.

BASH
wget --mirror localhost

Then upload the site wget dumps out to github pages just like any other static files.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago