From f75fc6fc802c9034a62b31cca26ba625b895f175 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Sun, 10 Jan 2016 15:36:42 -0500 Subject: [PATCH] Close HTML tags in template examples. --- content/docs/api/db/expression/and/contents.lr | 2 +- content/docs/api/db/expression/contains/contents.lr | 2 +- content/docs/api/db/expression/endswith-cs/contents.lr | 2 +- content/docs/api/db/expression/endswith/contents.lr | 2 +- content/docs/api/db/expression/eq/contents.lr | 2 +- content/docs/api/db/expression/ge/contents.lr | 2 +- content/docs/api/db/expression/gt/contents.lr | 2 +- content/docs/api/db/expression/le/contents.lr | 2 +- content/docs/api/db/expression/lt/contents.lr | 2 +- content/docs/api/db/expression/ne/contents.lr | 2 +- content/docs/api/db/expression/or/contents.lr | 2 +- content/docs/api/db/expression/startswith-cs/contents.lr | 2 +- content/docs/api/db/expression/startswith/contents.lr | 2 +- content/docs/api/db/f/contents.lr | 2 +- content/docs/api/db/obj/is-hidden/contents.lr | 2 +- content/docs/api/db/obj/parent/contents.lr | 2 +- content/docs/api/db/pad/get/contents.lr | 2 +- content/docs/api/db/pad/query/contents.lr | 2 +- content/docs/api/db/query/all/contents.lr | 2 +- content/docs/api/db/query/contents.lr | 2 +- content/docs/api/db/query/count/contents.lr | 2 +- content/docs/api/db/query/filter/contents.lr | 2 +- content/docs/api/db/query/first/contents.lr | 2 +- content/docs/api/db/query/get/contents.lr | 2 +- content/docs/api/db/query/include-hidden/contents.lr | 2 +- content/docs/api/db/query/include-undiscoverable/contents.lr | 2 +- content/docs/api/db/query/limit/contents.lr | 2 +- content/docs/api/db/query/order-by/contents.lr | 2 +- content/docs/api/db/query/request-page/contents.lr | 1 + content/docs/api/db/record/children/contents.lr | 2 +- content/docs/api/db/record/contents.lr | 4 ++-- content/docs/api/db/record/format/contents.lr | 2 +- content/docs/api/db/record/pagination/contents.lr | 2 +- content/docs/api/db/system-fields/model/contents.lr | 2 +- content/docs/api/db/types/date/contents.lr | 2 +- content/docs/api/db/types/strings/contents.lr | 2 +- content/docs/api/templates/filters/dateformat/contents.lr | 4 ++-- content/docs/api/templates/filters/latformat/contents.lr | 4 ++-- content/docs/api/templates/filters/latlongformat/contents.lr | 2 +- content/docs/api/templates/filters/longformat/contents.lr | 4 ++-- content/docs/content/flow/contents.lr | 2 +- content/docs/guides/blog/contents.lr | 1 + content/docs/plugins/dev/contents.lr | 2 +- 43 files changed, 47 insertions(+), 45 deletions(-) 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 ``` 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'

``` 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 ``` 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 ``` 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

``` diff --git a/content/docs/api/db/expression/ge/contents.lr b/content/docs/api/db/expression/ge/contents.lr index 834400ea..06898b83 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

``` diff --git a/content/docs/api/db/expression/gt/contents.lr b/content/docs/api/db/expression/gt/contents.lr index ff5f6d6d..07ec0533 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

``` diff --git a/content/docs/api/db/expression/le/contents.lr b/content/docs/api/db/expression/le/contents.lr index c52b76f9..66bc3cec 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

``` diff --git a/content/docs/api/db/expression/lt/contents.lr b/content/docs/api/db/expression/lt/contents.lr index ebdd1543..9aa4aa03 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

``` diff --git a/content/docs/api/db/expression/ne/contents.lr b/content/docs/api/db/expression/ne/contents.lr index 97b3abd2..b28b0511 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 a exact comparision:

Everything Other Than Houses

``` 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 ``` 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

``` 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

``` 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 ``` diff --git a/content/docs/api/db/obj/is-hidden/contents.lr b/content/docs/api/db/obj/is-hidden/contents.lr index 68a3385e..75b3e217 100644 --- a/content/docs/api/db/obj/is-hidden/contents.lr +++ b/content/docs/api/db/obj/is-hidden/contents.lr @@ -24,6 +24,6 @@ source objects is that they are always visible. ```html+jinja {% set downloads = site.get('/downloads') %} {% if downloads.is_hidden %} -

Downloads are currently unavailable +

Downloads are currently unavailable

{% endif %} ``` diff --git a/content/docs/api/db/obj/parent/contents.lr b/content/docs/api/db/obj/parent/contents.lr index 65aa5cc2..dcb85cf2 100644 --- a/content/docs/api/db/obj/parent/contents.lr +++ b/content/docs/api/db/obj/parent/contents.lr @@ -14,5 +14,5 @@ where this property can be used to discover the associated parent object. ## Example ```html+jinja -

My parent is: {{ this.parent.path }} +

My parent is: {{ this.parent.path }}

``` diff --git a/content/docs/api/db/pad/get/contents.lr b/content/docs/api/db/pad/get/contents.lr index c307afcc..7cc2dc7f 100644 --- a/content/docs/api/db/pad/get/contents.lr +++ b/content/docs/api/db/pad/get/contents.lr @@ -33,7 +33,7 @@ Here another example that loads the current page but in another language: ```html+jinja {% set other_lang = site.get(this._path, alt='ru') %} -

This page in Russian: {{ other_lang.title }} +

This page in Russian: {{ other_lang.title }}

``` ## Virtual Paths 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 ``` 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 %} {% 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 ``` diff --git a/content/docs/api/db/query/count/contents.lr b/content/docs/api/db/query/count/contents.lr index d302825a..d92cd93e 100644 --- a/content/docs/api/db/query/count/contents.lr +++ b/content/docs/api/db/query/count/contents.lr @@ -12,5 +12,5 @@ This is a simple way to count the total number of items a query matches. ```html+jinja {% set project_count = site.query('/projects').count() %} -

We built {{ project_count }} projects. +

We built {{ project_count }} projects.

``` diff --git a/content/docs/api/db/query/filter/contents.lr b/content/docs/api/db/query/filter/contents.lr index 0d62f97d..70435c2c 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 ``` diff --git a/content/docs/api/db/query/first/contents.lr b/content/docs/api/db/query/first/contents.lr index 0ac23b37..caaa3628 100644 --- a/content/docs/api/db/query/first/contents.lr +++ b/content/docs/api/db/query/first/contents.lr @@ -15,6 +15,6 @@ query. If no such record can be produced, `None` is returned. {% first_visible = this.children.first() %} {% if first_visible %}

Explore More ...

-

{{ first_visible.title }} +

{{ first_visible.title }}

{% endif %} ``` diff --git a/content/docs/api/db/query/get/contents.lr b/content/docs/api/db/query/get/contents.lr index baacd54a..b01551cb 100644 --- a/content/docs/api/db/query/get/contents.lr +++ b/content/docs/api/db/query/get/contents.lr @@ -18,5 +18,5 @@ requested page number from the query for pagination. ```html+jinja {% set p1 = this.children.get('project-1') %}

{{ p1.name }}

-

Our favorite! +

Our favorite!

``` 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 ``` 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 ``` 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

``` diff --git a/content/docs/api/db/query/order-by/contents.lr b/content/docs/api/db/query/order-by/contents.lr index c93c1dfb..559be602 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 ``` 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 ``` diff --git a/content/docs/api/db/record/contents.lr b/content/docs/api/db/record/contents.lr index eb934c57..0f8d0180 100644 --- a/content/docs/api/db/record/contents.lr +++ b/content/docs/api/db/record/contents.lr @@ -25,6 +25,6 @@ attribute overlaps with your custom field, you need to access the fields with the subscript syntax (`[]`): ```html+jinja -

    Built-in Path: {{ obj.path }} -

    Path field: {{ obj['path'] }} +

    Built-in Path: {{ obj.path }}

    +

    Path field: {{ obj['path'] }}

    ``` diff --git a/content/docs/api/db/record/format/contents.lr b/content/docs/api/db/record/format/contents.lr index c29479ec..e2377f46 100644 --- a/content/docs/api/db/record/format/contents.lr +++ b/content/docs/api/db/record/format/contents.lr @@ -13,6 +13,6 @@ only implemented for attachments that are images. ```html+jinja {% for image in this.attachments.images %} -

    {{ image._id }}: {{ image.format }} +

    {{ image._id }}: {{ image.format }}

    {% 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 ``` 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 ``` diff --git a/content/docs/api/db/types/date/contents.lr b/content/docs/api/db/types/date/contents.lr index a64c7484..8792fb14 100644 --- a/content/docs/api/db/types/date/contents.lr +++ b/content/docs/api/db/types/date/contents.lr @@ -23,5 +23,5 @@ type = date ## Template Usage ```html+jinja -

    Published: {{ this.pub_date.strftime('%d/%m/%Y') }} +

    Published: {{ this.pub_date.strftime('%d/%m/%Y') }}

    ``` diff --git a/content/docs/api/db/types/strings/contents.lr b/content/docs/api/db/types/strings/contents.lr index 9691b23b..45a3cf77 100644 --- a/content/docs/api/db/types/strings/contents.lr +++ b/content/docs/api/db/types/strings/contents.lr @@ -28,7 +28,7 @@ description = A list of things that would be good to buy

    Shopping List

    ``` diff --git a/content/docs/api/templates/filters/dateformat/contents.lr b/content/docs/api/templates/filters/dateformat/contents.lr index 61b753d5..8c9e2abe 100644 --- a/content/docs/api/templates/filters/dateformat/contents.lr +++ b/content/docs/api/templates/filters/dateformat/contents.lr @@ -31,11 +31,11 @@ more information see [CLDR Date/Time Symbols ## Examples ```html+jinja -

    Date: {{ this.pub_date|dateformat('full') }} +

    Date: {{ this.pub_date|dateformat('full') }}

    ``` Or with custom CLDR format strings: ```html+jinja -

    Date: {{ this.pub_date|dateformat('EEE, MMM d, ''yy') }} +

    Date: {{ this.pub_date|dateformat('EEE, MMM d, ''yy') }}

    ``` diff --git a/content/docs/api/templates/filters/latformat/contents.lr b/content/docs/api/templates/filters/latformat/contents.lr index 62b48900..055455db 100644 --- a/content/docs/api/templates/filters/latformat/contents.lr +++ b/content/docs/api/templates/filters/latformat/contents.lr @@ -15,6 +15,6 @@ and [latlongformat :ref](../latlongformat/). ## Examples ```html+jinja -

    Lat: {{ image.exif.latitude|latformat }} -

    Long: {{ image.exif.longitude|longformat }} +

    Lat: {{ image.exif.latitude|latformat }}

    +

    Long: {{ image.exif.longitude|longformat }}

    ``` diff --git a/content/docs/api/templates/filters/latlongformat/contents.lr b/content/docs/api/templates/filters/latlongformat/contents.lr index 36d11ab8..d772fc78 100644 --- a/content/docs/api/templates/filters/latlongformat/contents.lr +++ b/content/docs/api/templates/filters/latlongformat/contents.lr @@ -15,5 +15,5 @@ in the format format degrees, minutes and seconds. See also [latformat ## Examples ```html+jinja -

    Location: {{ image.exif.location|latlongformat }} +

    Location: {{ image.exif.location|latlongformat }}

    ``` diff --git a/content/docs/api/templates/filters/longformat/contents.lr b/content/docs/api/templates/filters/longformat/contents.lr index e3f596cd..27bc42a9 100644 --- a/content/docs/api/templates/filters/longformat/contents.lr +++ b/content/docs/api/templates/filters/longformat/contents.lr @@ -15,6 +15,6 @@ and [latlongformat :ref](../latlongformat/). ## Examples ```html+jinja -

    Lat: {{ image.exif.latitude|latformat }} -

    Long: {{ image.exif.longitude|longformat }} +

    Lat: {{ image.exif.latitude|latformat }}

    +

    Long: {{ image.exif.longitude|longformat }}

    ``` diff --git a/content/docs/content/flow/contents.lr b/content/docs/content/flow/contents.lr index 81d12106..b403fb19 100644 --- a/content/docs/content/flow/contents.lr +++ b/content/docs/content/flow/contents.lr @@ -99,7 +99,7 @@ using their templates: ```html+jinja {% for blk in this.demo_flow.blocks %} {% if blk._flowblock == 'text' %} -

    {{ blk.text }} +

    {{ blk.text }}

    {% elif blk._flowblock == 'image' %} {{ blk.alt }} {% endif %} diff --git a/content/docs/guides/blog/contents.lr b/content/docs/guides/blog/contents.lr index add6c93b..1833db4b 100644 --- a/content/docs/guides/blog/contents.lr +++ b/content/docs/guides/blog/contents.lr @@ -101,6 +101,7 @@ page. {{ post.title }} — by {{ post.author }} on {{ post.pub_date|dateformat }} + {% endfor %} diff --git a/content/docs/plugins/dev/contents.lr b/content/docs/plugins/dev/contents.lr index 43a2ab06..3d1407b7 100644 --- a/content/docs/plugins/dev/contents.lr +++ b/content/docs/plugins/dev/contents.lr @@ -152,7 +152,7 @@ template globals when the environment is initialized. This means that we can access this function from templates then: ```html+jinja -

    Message of the page: {{ get_random_message() }} +

    Message of the page: {{ get_random_message() }}

    ``` There are many events that can be hooked and they can be found in the