view piecrust/resources/theme/pages/_index.html @ 1128:6ab1299c1058

theme: Fix quickstart message formatting.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 28 Feb 2018 20:20:48 -0800
parents a1bbe66cba03
children
line wrap: on
line source

---
title: 
format: markdown
---

{% if pagination.has_posts %}
<section>
    {% for post in pagination.posts %}
    {% include 'partial_post.html' %}
    {% endfor %}
</section>
<section>
    {% if pagination.prev_page %}<div class="prev"><a href="{{ pagination.prev_page }}">Next Posts</a></div>{% endif %}
    {% if pagination.next_page %}<div class="next"><a href="{{ pagination.next_page }}">Previous Posts</a></div>{% endif %}
</section>
{% endif %}


{% if not pagination.has_posts and not site.hide_quickstart %}

## Quick Start

Welcome to your new [PieCrust][] website!

Since you don't seem to have any blog post or home page created yet, here's a
quick reference of things you probably want to do next. All `chef` commands need
to be run from inside your website's directory.

For more information, refer to the [documentation][doc]. This message will go
away as soon as you've written your first blog post, or after you set the
`hide_quickstart` setting to `true` in the site configuration (_i.e._ in
`config.yml` under the `site` section).

### Create a new page

Run `chef prepare page my-new-page`, where `my-new-page` is the [URL
slug][slug] you want for your new page. This can contain sub-directories, like
so: `about/my-new-page`.

### Create a new blog post

Run `chef prepare post my-new-post-slug`, where `my-new-post-slug` is the [URL
slug][slug] you want for your new post. Unlike pages, this shouldn't contain
any sub-directories.

### Bake your site

Run `chef bake`.

### Preview your site

Run `chef serve`, and point your browser to `http://localhost:8080`.


[piecrust]: {{ piecrust.url }}
[doc]: http://bolt80.com/piecrust/
[slug]: http://en.wikipedia.org/wiki/Clean_URL#Slug

{% endif %}