Giter VIP home page Giter VIP logo

grav-plugin-blackhole's Introduction

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.

Pagination not currently supported.

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

Absolute URLs must be enabled in Grav System Configuration.

Generate Command

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 gen or g.

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

Options

  • Output URL --output-url or -d 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 The directory to which your static site will be written (relative to Grav root).

    --output-path ../build
  • Routes --routes or -r Limit generation to a select list of page routes.

    --routes home,about,about/contact
  • Simultaneous Limit --simultaneous or -s Determine how many files will generate at the same time (default: 10).

    --simultaneous 10
  • Assets --assets or -a Copy assets to the output path.

  • Taxonomy --taxonomy or -t Process the taxonomy map.

  • Force --force or -f Overwrite previously generated files.

Author

BarryMode
BarryMode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.