From 0d3bb25617a48b6432090ba75acba98f87c1713a Mon Sep 17 00:00:00 2001 From: Humberto Rocha Date: Sun, 29 May 2016 18:19:22 -0300 Subject: [PATCH 1/8] Add lektor-creative-commons plugin to plugin list --- content/docs/plugins/list/contents.lr | 1 + 1 file changed, 1 insertion(+) diff --git a/content/docs/plugins/list/contents.lr b/content/docs/plugins/list/contents.lr index 1d8094dc..8d5f23b3 100644 --- a/content/docs/plugins/list/contents.lr +++ b/content/docs/plugins/list/contents.lr @@ -43,6 +43,7 @@ so they might not keep pace with development on Lektor. * [tags :ext](https://github.com/ajdavis/lektor-tags): For each tag on site, build a list of pages with that tag. * [i18n :ext](https://github.com/numericube/lektor-i18n-plugin): Use GetText .PO files to translate your site **content**. * [htmlmin :ext](https://github.com/vesuvium/lektor-htmlmin): Automatically minifies .html files in build directory +* [creative-commons :ext](https://github.com/humrochagf/lektor-creative-commons): Add Creative Commons license to your pages ! Have your own plugin and you want to see it here? Just [edit this page on GitHub :ref](https://github.com/lektor/lektor-website/edit/master/content/docs/plugins/list/contents.lr), From e3d829d312652b8bca39b5266c59763f444201c4 Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Tue, 28 Jun 2016 11:51:19 +0200 Subject: [PATCH 2/8] =?UTF-8?q?Fix=20typo=20"net"=20=E2=86=92=20"next"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/docs/api/db/record/pagination/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/api/db/record/pagination/contents.lr b/content/docs/api/db/record/pagination/contents.lr index 1c8fec77..343fd73f 100644 --- a/content/docs/api/db/record/pagination/contents.lr +++ b/content/docs/api/db/record/pagination/contents.lr @@ -19,7 +19,7 @@ The following attributes exist on the pagination object: | ------------ | ------------ | `current` | The current record | `prev` | The record for the last page (might be `None`) -| `next` | The record for the net page (might be `None`) +| `next` | The record for the next page (might be `None`) | `total` | The total number of items across all pages | `pages` | The total number of pages | `page` | The number of current page From 30e048628ea1328e0916a99e65a12ae086d4652f Mon Sep 17 00:00:00 2001 From: Peter VandeHaar Date: Fri, 1 Jul 2016 16:26:54 -0400 Subject: [PATCH 3/8] Reduce awkwardness --- content/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/contents.lr b/content/contents.lr index df0652e0..4a5fa3d3 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -20,7 +20,7 @@ contents: complex and beautiful websites out of flat files — for people who do not want to make a compromise between a CMS and a static blog engine.

- Getting your ideas implemented is as easy as making breakfast eggs. + Getting your ideas implemented is as easy as frying an egg.

Date: Fri, 22 Jul 2016 11:06:47 -0400 Subject: [PATCH 4/8] Add quotations marks around HTML attribute So that mistune can parse it correctly. Fixes #106 --- content/docs/quickstart/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/quickstart/contents.lr b/content/docs/quickstart/contents.lr index 1e0eba30..7f8573ae 100644 --- a/content/docs/quickstart/contents.lr +++ b/content/docs/quickstart/contents.lr @@ -32,7 +32,7 @@ some basic configuration for you. If you want a video walkthrough you can have a look at the screencast which explains the quickstart project a bit: - From 0ecf8c45757ca1745d940e50b762e637e369397d Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Fri, 22 Jul 2016 11:22:23 -0400 Subject: [PATCH 5/8] Add favicon --- assets/static/favicon.png | Bin 0 -> 5818 bytes templates/layout.html | 1 + 2 files changed, 1 insertion(+) create mode 100644 assets/static/favicon.png diff --git a/assets/static/favicon.png b/assets/static/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..4386aa28335c693ca00c567822caf3aa6e5c04ae GIT binary patch literal 5818 zcmbt&cT`i&w>FC6D+nsRi3mstEi{#q1d$G*C?G`)A|(bxNdgiKMMRoXM4Awa(tA}1 zAkrZaiZl@jMS2ZQh={ycSfR|7#JjC{9YSLY1wmj1TaN@ z;^}OjN$9+#8Ik}Z$z5Yq zZ^Y+ZWFlq-yhuw~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G(sBlk%0y;-wpswC?~FhSF^kz zZd)!T9MhBTdbZ`Ci))5`5Hym{41A-1jgd%`a*T@HX;&p>9aXBa>77?gJmax(gMLuT quHVg%ed53^hIpj@j``-#8#cy + {% block title %}Hello{% endblock %} | Lektor Static Content Management System
#### text-block #### diff --git a/content/docs/api/db/expression/and/contents.lr b/content/docs/api/db/expression/and/contents.lr index 7c7a8144..083d37aa 100644 --- a/content/docs/api/db/expression/and/contents.lr +++ b/content/docs/api/db/expression/and/contents.lr @@ -20,7 +20,7 @@ differs between Python and templates. In templates you have to use the
    {% for item in this.children.filter( (F.type == 'hotel').and(F.stars >= 3)) %} -
  • {{ item.name }}: {{ item.stars }} stars +
  • {{ item.name }}: {{ item.stars }} stars
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/contains/contents.lr b/content/docs/api/db/expression/contains/contents.lr index 32ea681d..17641451 100644 --- a/content/docs/api/db/expression/contains/contents.lr +++ b/content/docs/api/db/expression/contains/contents.lr @@ -19,7 +19,7 @@ contained in another string or a item can be contained within a list.

Projects Tagged 'amazing'

    {% for item in this.children.filter(F.tags.contains('amazing')) %} -
  • {{ item.name }} +
  • {{ item.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/endswith-cs/contents.lr b/content/docs/api/db/expression/endswith-cs/contents.lr index e60b62bc..c8275949 100644 --- a/content/docs/api/db/expression/endswith-cs/contents.lr +++ b/content/docs/api/db/expression/endswith-cs/contents.lr @@ -18,7 +18,7 @@ see [endswith :ref](../endswith/). ```html+jinja
    {% for item in this.children.filter(F.name.endswith_cs('House')) %} -
  • {{ item.name }} +
  • {{ item.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/endswith/contents.lr b/content/docs/api/db/expression/endswith/contents.lr index b022220c..c0f6916c 100644 --- a/content/docs/api/db/expression/endswith/contents.lr +++ b/content/docs/api/db/expression/endswith/contents.lr @@ -18,7 +18,7 @@ see [endswith_cs :ref](../endswith-cs/). ```html+jinja
    {% for item in this.children.filter(F.name.endswith('house')) %} -
  • {{ item.name }} +
  • {{ item.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/eq/contents.lr b/content/docs/api/db/expression/eq/contents.lr index ec8e68bb..68ac3c4e 100644 --- a/content/docs/api/db/expression/eq/contents.lr +++ b/content/docs/api/db/expression/eq/contents.lr @@ -15,7 +15,7 @@ Typically it compares if a value matches a specific value exactly:

Our Houses

    {% for project in this.children.filter(F.type == 'house') %} -
  • {{ project.name }} +
  • {{ project.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/ge/contents.lr b/content/docs/api/db/expression/ge/contents.lr index 2acb0052..ff2c3233 100644 --- a/content/docs/api/db/expression/ge/contents.lr +++ b/content/docs/api/db/expression/ge/contents.lr @@ -16,7 +16,7 @@ or equal to it. This behavior works best with [integers

3 or more Stars

    {% for item in this.children.filter(F.stars >= 3) %} -
  • {{ item.name }}: {{ item.stars }} stars +
  • {{ item.name }}: {{ item.stars }} stars
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/gt/contents.lr b/content/docs/api/db/expression/gt/contents.lr index 3d96d714..7d92b342 100644 --- a/content/docs/api/db/expression/gt/contents.lr +++ b/content/docs/api/db/expression/gt/contents.lr @@ -16,7 +16,7 @@ or [floats :ref](../../types/float/).

Well Rated Items

    {% for item in this.children.filter(F.stars > 3) %} -
  • {{ item.name }}: {{ item.stars }} stars +
  • {{ item.name }}: {{ item.stars }} stars
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/le/contents.lr b/content/docs/api/db/expression/le/contents.lr index 6ec15b4d..3a4fbd0a 100644 --- a/content/docs/api/db/expression/le/contents.lr +++ b/content/docs/api/db/expression/le/contents.lr @@ -16,7 +16,7 @@ or equal to it. This behavior works best with [integers

Projects From Before Including 2000

    {% for item in this.children.filter(F.year <= 2000) %} -
  • {{ item.name }} ({{ item.year }}) +
  • {{ item.name }} ({{ item.year }})
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/lt/contents.lr b/content/docs/api/db/expression/lt/contents.lr index 5195694d..cd4e1958 100644 --- a/content/docs/api/db/expression/lt/contents.lr +++ b/content/docs/api/db/expression/lt/contents.lr @@ -16,7 +16,7 @@ or equal to it. This behavior works best with [integers

Projects From Before 2000

    {% for item in this.children.filter(F.year < 2000) %} -
  • {{ item.name }} ({{ item.year }}) +
  • {{ item.name }} ({{ item.year }})
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/ne/contents.lr b/content/docs/api/db/expression/ne/contents.lr index d9caf2b1..0ba661a7 100644 --- a/content/docs/api/db/expression/ne/contents.lr +++ b/content/docs/api/db/expression/ne/contents.lr @@ -15,7 +15,7 @@ by doing an exact comparison:

Everything Other Than Houses

    {% for project in this.children.filter(F.type != 'house') %} -
  • {{ project.name }} +
  • {{ project.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/or/contents.lr b/content/docs/api/db/expression/or/contents.lr index 7851cf7e..07941077 100644 --- a/content/docs/api/db/expression/or/contents.lr +++ b/content/docs/api/db/expression/or/contents.lr @@ -20,7 +20,7 @@ differs between Python and templates. In templates you have to use the
    {% for item in this.children.filter( (F.type == 'hotel').or(F.type == 'apartment')) %} -
  • {{ item.name }} ({{ item.type}}) +
  • {{ item.name }} ({{ item.type}})
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/startswith-cs/contents.lr b/content/docs/api/db/expression/startswith-cs/contents.lr index 22ce74e3..89927d34 100644 --- a/content/docs/api/db/expression/startswith-cs/contents.lr +++ b/content/docs/api/db/expression/startswith-cs/contents.lr @@ -19,7 +19,7 @@ see [startswith :ref](../startswith/).

A

    {% for item in this.children.filter(F.name.startswith_cs('A')) %} -
  • {{ item.name }} +
  • {{ item.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/expression/startswith/contents.lr b/content/docs/api/db/expression/startswith/contents.lr index beddd1ab..cf558cb3 100644 --- a/content/docs/api/db/expression/startswith/contents.lr +++ b/content/docs/api/db/expression/startswith/contents.lr @@ -19,7 +19,7 @@ see [startswith_cs :ref](../startswith-cs/).

A

    {% for item in this.children.filter(F.name.startswith('a')) %} -
  • {{ item.name }} +
  • {{ item.name }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/f/contents.lr b/content/docs/api/db/f/contents.lr index c5550773..50dc90d3 100644 --- a/content/docs/api/db/f/contents.lr +++ b/content/docs/api/db/f/contents.lr @@ -22,7 +22,7 @@ Accessing an attributes creates an [Expression :ref](../expression/). ```html+jinja
    {% for item in this.children.filter(F.status == 'published') %} -
  • {{ item.title }} +
  • {{ item.title }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/get-alts/contents.lr b/content/docs/api/db/get-alts/contents.lr index 460bf7a5..a87216f2 100644 --- a/content/docs/api/db/get-alts/contents.lr +++ b/content/docs/api/db/get-alts/contents.lr @@ -28,7 +28,7 @@ used to provide alts with a humand readable title.

Other languages:

``` diff --git a/content/docs/api/db/pad/query/contents.lr b/content/docs/api/db/pad/query/contents.lr index 55086332..1b39b141 100644 --- a/content/docs/api/db/pad/query/contents.lr +++ b/content/docs/api/db/pad/query/contents.lr @@ -18,7 +18,7 @@ and will also include hidden pages. ```html+jinja
    {% for project in site.query('/projects') %} -
  • {{ project.name }}: {{ project.year }} +
  • {{ project.name }}: {{ project.year }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/query/all/contents.lr b/content/docs/api/db/query/all/contents.lr index 311fd4bc..ec57ec48 100644 --- a/content/docs/api/db/query/all/contents.lr +++ b/content/docs/api/db/query/all/contents.lr @@ -18,7 +18,7 @@ handy. {% if items %}
    {% for item in items %} -
  • {{ item.name }} +
  • {{ item.name }}
  • {% endfor %}
{% endif %} diff --git a/content/docs/api/db/query/contents.lr b/content/docs/api/db/query/contents.lr index 51b351a2..9ed89074 100644 --- a/content/docs/api/db/query/contents.lr +++ b/content/docs/api/db/query/contents.lr @@ -22,7 +22,7 @@ Here a basic example of how to filter something in a template: ```html+jinja
    {% for item in this.children.filter(F.status == 'published') %} -
  • {{ item.title }} +
  • {{ item.title }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/query/filter/contents.lr b/content/docs/api/db/query/filter/contents.lr index 9a1aefef..5b19acc7 100644 --- a/content/docs/api/db/query/filter/contents.lr +++ b/content/docs/api/db/query/filter/contents.lr @@ -22,7 +22,7 @@ Here a basic example of how to filter something in a template: ```html+jinja
    {% for item in this.children.filter(F.status == 'published') %} -
  • {{ item.title }} +
  • {{ item.title }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/query/include-hidden/contents.lr b/content/docs/api/db/query/include-hidden/contents.lr index 0e0ac0e7..871eb449 100644 --- a/content/docs/api/db/query/include-hidden/contents.lr +++ b/content/docs/api/db/query/include-hidden/contents.lr @@ -24,7 +24,7 @@ Here a basic example of how to filter something in a template: ```html+jinja
    {% for item in this.children.include_hidden(true) %} -
  • {{ item.title }}{% if item.is_hidden %} (hidden){% endif %} +
  • {{ item.title }}{% if item.is_hidden %} (hidden){% endif %}
  • {% endfor %}
``` diff --git a/content/docs/api/db/query/include-undiscoverable/contents.lr b/content/docs/api/db/query/include-undiscoverable/contents.lr index d0abada9..0b23f5d2 100644 --- a/content/docs/api/db/query/include-undiscoverable/contents.lr +++ b/content/docs/api/db/query/include-undiscoverable/contents.lr @@ -25,7 +25,7 @@ Here a basic example of how to filter something in a template: ```html+jinja
    {% for item in this.children.include_undiscoverable(true) %} -
  • {{ item.title }} +
  • {{ item.title }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/query/limit/contents.lr b/content/docs/api/db/query/limit/contents.lr index 3229a7c7..0d2efe61 100644 --- a/content/docs/api/db/query/limit/contents.lr +++ b/content/docs/api/db/query/limit/contents.lr @@ -17,7 +17,7 @@ of matching records.

Our Top 3

    {% for item in this.children.order_by('-rating').limit(3) %} -
  • {{ item.title }} +
  • {{ item.title }}
  • {% endfor %}
``` diff --git a/content/docs/api/db/query/order-by/contents.lr b/content/docs/api/db/query/order-by/contents.lr index b4952e9e..3e719ef4 100644 --- a/content/docs/api/db/query/order-by/contents.lr +++ b/content/docs/api/db/query/order-by/contents.lr @@ -23,7 +23,7 @@ order by year and within a year it will order by name. ```html+jinja
    {% for project in this.children.order_by('-year', 'name') %} -
  • {{ project.year }}: {{ project.name }} +
  • {{ project.year }}: {{ project.name }}
  • {% endif %}
``` diff --git a/content/docs/api/db/query/request-page/contents.lr b/content/docs/api/db/query/request-page/contents.lr index 64fa975f..b1b0a7f1 100644 --- a/content/docs/api/db/query/request-page/contents.lr +++ b/content/docs/api/db/query/request-page/contents.lr @@ -25,6 +25,7 @@ there is a good reason to use it.
  • Items on the first page of {{ child.title }}: {{ child.pagination.items.count() }} +
  • {% endfor %} ``` diff --git a/content/docs/api/db/record/children/contents.lr b/content/docs/api/db/record/children/contents.lr index 0f7969fc..04e6b5c9 100644 --- a/content/docs/api/db/record/children/contents.lr +++ b/content/docs/api/db/record/children/contents.lr @@ -27,7 +27,7 @@ via the [query :ref](../../pad/query/) method of the pad. ```html+jinja
      {% for child in this.children %} -
    • {{ child.title }} +
    • {{ child.title }}
    • {% endfor %}
    ``` diff --git a/content/docs/api/db/record/pagination/contents.lr b/content/docs/api/db/record/pagination/contents.lr index 1c8fec77..0cc5cf62 100644 --- a/content/docs/api/db/record/pagination/contents.lr +++ b/content/docs/api/db/record/pagination/contents.lr @@ -42,7 +42,7 @@ page: ```html+jinja
      {% for child in this.pagination.items %} -
    • {{ child.title }} +
    • {{ child.title }}
    • {% endfor %}
    ``` diff --git a/content/docs/api/db/record/record-label/contents.lr b/content/docs/api/db/record/record-label/contents.lr index 319c4d31..a5cad561 100644 --- a/content/docs/api/db/record/record-label/contents.lr +++ b/content/docs/api/db/record/record-label/contents.lr @@ -17,7 +17,7 @@ a page that might use different independent models. ```html+jinja ``` diff --git a/content/docs/api/db/system-fields/model/contents.lr b/content/docs/api/db/system-fields/model/contents.lr index d8f2f3b8..9ecb508a 100644 --- a/content/docs/api/db/system-fields/model/contents.lr +++ b/content/docs/api/db/system-fields/model/contents.lr @@ -17,7 +17,7 @@ This field is most useful for filtering when operating on mixed collections. ```html+jinja
      {% for child in this.children.filter(F._model == 'project') %} -
    • {{ child.name }} +
    • {{ child.name }}
    • {% endfor %}
    ``` diff --git a/content/docs/api/db/types/strings/contents.lr b/content/docs/api/db/types/strings/contents.lr index 9691b23b..012fcab9 100644 --- a/content/docs/api/db/types/strings/contents.lr +++ b/content/docs/api/db/types/strings/contents.lr @@ -6,7 +6,7 @@ type: type --- body: -The `strings` type one that is a mixture of the [string :ref](../string/) +The `strings` type one that is a mixture of the [string :ref](../string/) and [text :ref](../text/) type. It renders as a multi-line text area in the admin but the template will see each line of text separately. It's primarily useful for some advanced scenarios where enumerations and other things @@ -28,7 +28,7 @@ description = A list of things that would be good to buy

    Shopping List

      {% for item in this.things_to_buy %} -
    • {{ item }} +
    • {{ item }}
    • {% endfor %}
    ``` diff --git a/content/docs/api/templates/filters/url/contents.lr b/content/docs/api/templates/filters/url/contents.lr index cdb203d6..2bcda92a 100644 --- a/content/docs/api/templates/filters/url/contents.lr +++ b/content/docs/api/templates/filters/url/contents.lr @@ -32,8 +32,8 @@ the website. ```html+jinja ``` diff --git a/content/docs/guides/blog/contents.lr b/content/docs/guides/blog/contents.lr index 2077b2bc..477c09f6 100644 --- a/content/docs/guides/blog/contents.lr +++ b/content/docs/guides/blog/contents.lr @@ -102,6 +102,7 @@ page. {{ post.title }} — by {{ post.author }} on {{ post.pub_date|dateformat }} + {% endfor %} diff --git a/content/docs/guides/categories/contents.lr b/content/docs/guides/categories/contents.lr index 8ddc8510..1a44fa26 100644 --- a/content/docs/guides/categories/contents.lr +++ b/content/docs/guides/categories/contents.lr @@ -197,7 +197,7 @@ markup that appears on multiple pages. {% endmacro %} @@ -205,7 +205,7 @@ markup that appears on multiple pages. {% macro render_project_list(projects) %} {% endmacro %} diff --git a/content/docs/guides/sitemap/contents.lr b/content/docs/guides/sitemap/contents.lr index 7f33e5d1..b8a36913 100644 --- a/content/docs/guides/sitemap/contents.lr +++ b/content/docs/guides/sitemap/contents.lr @@ -65,6 +65,7 @@ create a `sitemap/contents.lr` file instead and use a template like {% if page.children %}
      {{ loop(page.children) }}
    {% endif %} + {% endfor %} {% endblock %} diff --git a/content/docs/templates/urls/contents.lr b/content/docs/templates/urls/contents.lr index 145ed3d6..f5f27b3d 100644 --- a/content/docs/templates/urls/contents.lr +++ b/content/docs/templates/urls/contents.lr @@ -27,8 +27,8 @@ Because the path starts with a slash it will be treated as absolute path: ```html+jinja ``` @@ -59,7 +59,7 @@ link to all children of a page: ```html+jinja ``` diff --git a/templates/blog-archive/index.html b/templates/blog-archive/index.html index f1342024..08de6a98 100644 --- a/templates/blog-archive/index.html +++ b/templates/blog-archive/index.html @@ -8,7 +8,7 @@ There have been posts in the following years: {% endblock %} diff --git a/templates/blog-archive/month.html b/templates/blog-archive/month.html index bd5301f0..fb3c7083 100644 --- a/templates/blog-archive/month.html +++ b/templates/blog-archive/month.html @@ -6,7 +6,7 @@ « Back to {{ this.year }}
      {% for post in this.items %} -
    • {{ post.title }} by {{ post.author }} on {{ post.pub_date|dateformat }} +
    • {{ post.title }} by {{ post.author }} on {{ post.pub_date|dateformat }}
    • {% endfor %}
    {% endblock %} diff --git a/templates/blog-archive/year.html b/templates/blog-archive/year.html index 0b15b286..c8c96b31 100644 --- a/templates/blog-archive/year.html +++ b/templates/blog-archive/year.html @@ -10,9 +10,10 @@
      {% for post in items %}
    • {{ post.title }} by {{ post.author }} - on {{ post.pub_date|dateformat }} + on {{ post.pub_date|dateformat }}
    • {% endfor %}
    + {% endfor %} {% endblock %} diff --git a/templates/blog-layout.html b/templates/blog-layout.html index 26faf6f1..6820d626 100644 --- a/templates/blog-layout.html +++ b/templates/blog-layout.html @@ -21,12 +21,12 @@ Subscribe for the latest news about Lektor as well as content management and web development.

    Missed a Post?

    diff --git a/templates/doc-page.html b/templates/doc-page.html index 17063ced..518ffef9 100644 --- a/templates/doc-page.html +++ b/templates/doc-page.html @@ -23,7 +23,7 @@
      {% for item in this.body.toc recursive %}
    • {{ item.title }}{% - if item.children %}
        {{ loop(item.children) }}
      {% endif %} + if item.children %}
        {{ loop(item.children) }}
      {% endif %}
    • {% endfor %}
    @@ -35,19 +35,19 @@
      {% if this.type == 'method' %} -
    • Method of {{ get_doc_link(this.parent) }} +
    • Method of {{ get_doc_link(this.parent) }}
    • {% elif this.type == 'property' %} -
    • Property of {{ get_doc_link(this.parent) }} +
    • Property of {{ get_doc_link(this.parent) }}
    • {% elif this.type == 'operator' %} -
    • Operator of {{ get_doc_link(this.parent) }} +
    • Operator of {{ get_doc_link(this.parent) }}
    • {% endif %} {% if this.template_var %}
    • Template variable: {{ this.template_var }} + }}">{{ this.template_var }}
    • {% endif %} {% if this.version_added %} -
    • New in Lektor Version {{ this.version_added }} +
    • New in Lektor Version {{ this.version_added }}
    • {% endif %}
    From 688a1e3830cdf863fda46df79496393253be8222 Mon Sep 17 00:00:00 2001 From: andreas Date: Wed, 13 Jul 2016 09:12:29 +0200 Subject: [PATCH 7/8] Clarify docs on flow blocks templates --- content/docs/models/flow/contents.lr | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/content/docs/models/flow/contents.lr b/content/docs/models/flow/contents.lr index 07c9301a..064ecc4b 100644 --- a/content/docs/models/flow/contents.lr +++ b/content/docs/models/flow/contents.lr @@ -43,9 +43,14 @@ a flow. ## Templates Now that we have a model for our flow block, we need to create a template -for it. When a flow block is added to a Flow, it will automatically -render it by default through the template `blocks/NAME.html` (so in our -case `blocks/text.html`). Here is a suitable template for this: +for it. Templates for blocks are stored in the `blocks` subdirectory of the +`templates` folder. +The name for the block template is automatically derived from the config file +that keeps the flow block definition (`templates/blocks/NAME.html`): +In our case the expected template is `templates/blocks/text.html`, +as our flow block is defined in a file called `text.ini`. + +Here is a suitable template for this: ```html+jinja
    From 0f37f76bbe973e2b9eac70f81f219feeede4ca0c Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 23 Jul 2016 21:41:25 +0200 Subject: [PATCH 8/8] Mention dropbox --- content/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/contents.lr b/content/contents.lr index 64339663..99fcca91 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -98,7 +98,7 @@ image: edit-post.png description: The project files are neatly laid out in the filesystem and allow tracking -via cloud storage or version control. +via cloud storage like Dropbox or version control. ----- image: filesystem.png ##### slide #####