If this plugin helps you, please send a thank you in the form of a donation.
Why Blackhole? Grav is a space term, so I think this plugin should follow suit. Time stops at the event horizon of a black hole, which is exactly what this plugin does to your website. It freezes it in a state. By Increasing gravity to infinity you get a static black hole, or in this case you generate a static html copy of your Grav website.
The simplest way to install this plugin is via the Grav Package Manager (GPM). From the root of your Grav install type:
bin/gpm install blackhole
If you can't use GPM you can manually install this plugin. Download the zip version of this repository and unzip it under
/your/site/grav/user/plugins, then rename the folder to
Absolute URLs must be enabled in Grav System Configuration.
The generate command can be used from the command line or directly in the Grav Admin Panel. Generate your static site.
generate can also be written as
- Input URL (required) - Enter the URL to your live Grav site.
bin/plugin blackhole generate http://localhost/grav
-dThe URL of your static site. This determines the domain used in the absolute path of your links.
-pThe directory to which your static site will be written (relative to Grav root).
-rLimit generation to a select list of page routes.
-sDetermine how many files will generate at the same time (default: 10).
-aCopy assets to the output path.
-fOverwrite previously generated files.
--verbose-modeEnable verbose mode.