Giter VIP home page Giter VIP logo

grav-plugin-tidyhtml's Introduction

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 [email protected]: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.

grav-plugin-tidyhtml's People

Contributors

gidlov avatar jnaskali avatar sourcesoldier avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

grav-plugin-tidyhtml's Issues

Breaks sitemap.xml

Strips xml from the sitemap generated by sitemap plugin, breaking the output.

I'll see if I can modify the code to accept a list of ignored routes.

Strips down <i> tag

Don't know if this is an issue, but if you activate the "strip down comments" option, it also strips down the < i > tag, which I use it for the Font Awesome icons.

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.