GithubHelp home page GithubHelp logo

iceskysl / jekyll-pages-directory Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bbakersmith/jekyll-pages-directory

0.0 2.0 0.0 164 KB

Defines a _pages directory for page files which routes its output relative to the project root.

License: MIT License

jekyll-pages-directory's Introduction

Jekyll Pages Directory Plugin

Defines a _pages directory for page files which routes its contents relative to the project root.

Jekyll does a great job of keeping things tidy until you have more than a couple static pages. Unlike posts, which are nicely contained within the _posts directory, page data and containing subdirectories end up scattered throughout the project root. Jekyll Pages Directory helps keep your project root clean by defining a _pages directory in which to store page data.

Installation

Simply copy _plugins/jekyll-pages-directory.rb into your project's _plugins directory.

Usage

By default, the plugin defines _pages as the directory for your page data.

To specify another directory instead, set the pages configuration option just like you would set source, plugins, or layouts.

# _config.yml

pages: ./_static_pages

Only page files should be stored in the _pages directory. Other file types will not behave as expected.

Output Routing

Files in _pages are routed relative to your project root, so _pages/foo/bar.html will be output to _site/foo/bar.html.

index.html

Some Jekyll functions require that the main index.html be present in the project root, so it should remain there and not be moved into _pages.

Compatibility

Jekyll Pages Directory should work with any plugin that is not accessing page data files directly, but only limited compatibility testing has been done.

If you encounter an issue, please submit a pull request or bug report through the Github issue tracker.

License

The MIT License (MIT)

Copyright (c) 2014 Ben Baker-Smith

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

jekyll-pages-directory's People

Contributors

bbakersmith avatar

Watchers

IceskYsl avatar James Cloos avatar

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.