Skip to content

crittermike/grav-plugin-blackhole

 
 

Repository files navigation

Blackhole Plugin

The Blackhole Plugin is for Grav CMS.

Description

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.

Currently, Blackhole only supports pages.

Installation

GPM Installation

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

Manual Installation

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 blackhole.

Usage

Generate Command

Generate your static site. generate can also be written as gen or g.

  • Input URL (required) - Set the URL of your live Grav site.
bin/plugin blackhole generate http://localhost/grav

Options

  • Output URL --output-url or -d Set the URL of your static site. This determines the domain used in the absolute path of your links.

    --output-url https://website.com
  • Output Path --output-path or -p Set the directory to which your static site will be written (relative to Grav root).

    --output-path ../build

Author

BarryMode
BarryMode

About

Generates a static html copy of your Grav website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%