Sha256: 31bb04b0239cebf4042d7338079ca0e3de9868926cfa1cd25804fd0aa2497718

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

# Jekyll Pages API [![Build Status](https://travis-ci.org/18F/jekyll_pages_api.svg?branch=master)](https://travis-ci.org/18F/jekyll_pages_api)

Jekyll Pages API is a [Jekyll Plugin](http://jekyllrb.com/docs/plugins/) gem that generates a JSON file with data for all the Pages in your Site. [Jekyll](http://jekyllrb.com), if you're not familiar, is a static website generator written in Ruby.

## Usage

Add this line to your application's Gemfile:

```ruby
group :jekyll_plugins do
  gem 'jekyll_pages_api'
end
```

And then execute:

```bash
bundle
bundle exec jekyll serve
```

You can then see the generated JSON file at http://localhost:4000/api/v1/pages.json, which will look something like this:

```json
{
  "entries": [
    {
      "title": "18F Hub",
      "url": "/",
      "body": "18F is a digital services team within GSA..."
    },
    ...
  ]
}
```

This endpoint will be re-generated any time your site it rebuilt.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll_pages_api-0.1.0 README.md