diff --git a/site.yml b/site.yml index 6d7c758..9f4adc1 100644 --- a/site.yml +++ b/site.yml @@ -4,13 +4,19 @@ baseUrl: https://example.com/blog # You'll probably have more than 3, this is just for demonstration articlesPerPage: 3 -# Whether to apply Pebble templating to posts. Disabled by default +# Whether to apply Pebble templating to posts. +# Disabled by default templateArticles: true -coolProperty: 1231 +# Whether to render page 1 as separate page, using page template. +# If false (default), index.html is page 1 and url_to_page(1) links to /index.html +# If true, /page/1.html is rendered and url_to_page(1) links to /page/1.html +separateFirstPage: false + +coolProperty: hello coolerProperty: isMap: true aList: - a value - - another value - - check out site-config.yml! \ No newline at end of file + - 123 + - check out site.yml! \ No newline at end of file diff --git a/template/index_template.html b/template/index_template.html index 0a53323..8e2737f 100644 --- a/template/index_template.html +++ b/template/index_template.html @@ -20,21 +20,9 @@ {% endfor %} - {% if not page.isFirstPage %} -

First page: 1 (click to go)

-

Previous page: {{ page.previous }} (click to go)

- {% else %} -

This is the first page

- {% endif %} +

This is the first page

-

This is page {{ page.current }} (click to go)

- - {% if not page.isLastPage %} -

Last page: {{ page.last }} (click to go)

-

Next page: {{ page.next }} (click to go)

- {% else %} -

This is the last page

- {% endif %} +

Next page: {{ page.next }} (click to go)