Mercurial > piecrust2
comparison piecrust/resources/theme/_content/pages/_index.html @ 3:f485ba500df3
Gigantic change to basically make PieCrust 2 vaguely functional.
- Serving works, with debug window.
- Baking works, multi-threading, with dependency handling.
- Various things not implemented yet.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 10 Aug 2014 23:43:16 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:40fa08b261b9 | 3:f485ba500df3 |
---|---|
1 --- | |
2 title: | |
3 format: none | |
4 --- | |
5 | |
6 {% if pagination.has_posts %} | |
7 <section> | |
8 {% for post in pagination.posts %} | |
9 {% include 'partial_post.html' %} | |
10 {% endfor %} | |
11 </section> | |
12 <section> | |
13 {% if pagination.prev_page %}<div class="prev"><a href="{{ pagination.prev_page }}">Next Posts</a></div>{% endif %} | |
14 {% if pagination.next_page %}<div class="next"><a href="{{ pagination.next_page }}">Previous Posts</a></div>{% endif %} | |
15 </section> | |
16 {% endif %} | |
17 | |
18 | |
19 <--markdown--> | |
20 | |
21 {% if not pagination.has_posts or not site.hide_quickstart %} | |
22 | |
23 ## Quick Start | |
24 | |
25 Welcome to your new [PieCrust][] website! | |
26 | |
27 Since you don't seem to have any blog post or home page created yet, here's a | |
28 quick reference of things you probably want to do next. All `chef` commands need | |
29 to be run from inside your website's directory. | |
30 | |
31 For more information, refer to the [documentation][doc]. | |
32 | |
33 | |
34 ### Create a new blog post | |
35 | |
36 Run `chef prepare post my-new-post-slug`, where `my-new-post-slug` is the [URL slug][slug] you want for your new post. | |
37 | |
38 | |
39 ### Change this page | |
40 | |
41 To override this default home page, you can do one of the following: | |
42 | |
43 * Just hide this "quick start" section by setting the `hide_quickstart` property | |
44 to `true` in your site configuration. To do this, edit `_content/config.yml` | |
45 and `hide_quickstart: true` under the `site` section. | |
46 | |
47 * Manually rewrite this page by creating `_content/pages/_index.md` or running | |
48 `chef prepare page _index`. | |
49 | |
50 * Install a theme with `chef themes install theme-name`, where `theme-name` is | |
51 the name of a theme. You can list existing official themes with `chef themes | |
52 find`. | |
53 | |
54 | |
55 [piecrust]: {{ piecrust.url }} | |
56 [doc]: http://bolt80.com/piecrust/doc/ | |
57 [slug]: http://en.wikipedia.org/wiki/Clean_URL#Slug | |
58 {% endif %} | |
59 |