GRAV plugin for the PHP module tidy. Make your messy HTML code looks awesome again.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit behind sourcesoldier:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CHANGELOG.md
LICENSE
README.md
blueprints.yaml
tidyhtml.php
tidyhtml.yaml

README.md

Grav tidyhtml plugin

Clemens Queissner

Requirements

This plugins requires you to have the PHP module tidy installed. Check out the official PHP doc.

Installation

The tidyhtml plugin is easy to install with GPM.

$ bin/gpm install tidyhtml

Or clone from GitHub and put in the user/plugins/tidyhtml folder.

$ git clone git@github.com:sourcesoldier/grav-plugin-tidyhtml.git tidyhtml

Usage

The plugin is enabled by default, if you want to disable it make sure to place a tidyhtml.yaml file in the user/config/plugins/ directory.

Most of the settings already applied to the defaults are most common to the HTML5 standard. Checkout the plugin settings in the admin panel to modify the settings to your needs.

Disabled output processing on a per-site basis

If you need to disable tidy processing on a site basis you must add the site-node to the list of ignore_pages in the config. For more convenience you can use the settings in the admin panel of the plugin.