Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Adding grav powered blog to static site

Started by Muut Archive 10 years ago · 2 replies · 528 views
10 years ago

I have a one page scrolling static site that I'd like to add a grav powered blog to. But I'm not sure the best way to do this, as I don't want to have to convert the homepage. i just want to leave that as is and add the grav blog onto it. Can someone advise me on the best way to do this?

10 years ago

Simplest thing: download the "Blog Site" skeleton.

Create an empty page in user/pages/home/home.md
Make that your home page in the System config.

Make a user/themes/antimatter/templates/home.html.twig file, and paste in there the whole static page you already have. That will serve your page as-is (just make sure the CSS/JS paths are still working), and add a link to /blog.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2283 9 years ago
Archive · by Muut Archive, 9 years ago
2 1498 9 years ago
Archive · by Muut Archive, 9 years ago
2 4748 9 years ago
Archive · by Muut Archive, 9 years ago
1 3563 9 years ago
Archive · by Muut Archive, 9 years ago
3 1623 9 years ago