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

Adding grav powered blog to static site

Started by Muut Archive 9 years ago · 2 replies · 452 views
9 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?

9 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 1338 9 years ago
Archive · by Muut Archive, 9 years ago
2 927 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago