Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4affc8f

Browse files
committed
complete conversion to the new yaml format
1 parent 847a35c commit 4affc8f

File tree

8 files changed

+45
-39
lines changed

8 files changed

+45
-39
lines changed

docs/plugins/blog.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@ A blog post is defined as:
4343
enabled: 1
4444
published_at: Fri, 18 Sep 2009 19:19:16
4545
comment_enabled:
46-
content: |
47-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras gravida malesuada tellus,
48-
at tincidunt lorem accumsan vel. Vestibulum varius sodales sagittis. Quisque tristique
49-
tempus ligula blandit sodales. Nunc luctus, orci in interdum porttitor, urna massa scelerisque
50-
felis, eget hendrerit sapien eros sed augue. Ut quam mauris, feugiat nec laoreet pellentesque,
51-
molestie eget orci. Vivamus leo leo, convallis et sodales vel, fermentum sed leo. Cras sit
52-
amet dui vel sapien consectetur adipiscing. Pellentesque lectus massa, aliquet et ultrices
53-
sit amet, volutpat vel leo. Nulla aliquet sodales enim ac dictum. Proin mattis arcu a metus
54-
aliquam pulvinar. Phasellus sed lectus elit. Donec vitae urna magna. Vestibulum id volutpat eros.
46+
47+
----
48+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras gravida malesuada tellus,
49+
at tincidunt lorem accumsan vel. Vestibulum varius sodales sagittis. Quisque tristique
50+
tempus ligula blandit sodales. Nunc luctus, orci in interdum porttitor, urna massa scelerisque
51+
felis, eget hendrerit sapien eros sed augue. Ut quam mauris, feugiat nec laoreet pellentesque,
52+
molestie eget orci. Vivamus leo leo, convallis et sodales vel, fermentum sed leo. Cras sit
53+
amet dui vel sapien consectetur adipiscing. Pellentesque lectus massa, aliquet et ultrices
54+
sit amet, volutpat vel leo. Nulla aliquet sodales enim ac dictum. Proin mattis arcu a metus
55+
aliquam pulvinar. Phasellus sed lectus elit. Donec vitae urna magna. Vestibulum id volutpat eros.
5556
5657
The ``format`` option defines how to handle the ``content`` field. You can provide a markdown content or a html content.
5758

docs/plugins/errors.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ A node can be anything, here an example:
3030
title: Page Not Found
3131
type: page.default
3232
format: markdown
33-
content: |
34-
The requested URL was not found on the server.
3533
36-
If you entered the URL manually please check your spelling and try again.
34+
----
35+
The requested URL was not found on the server.
36+
37+
If you entered the URL manually please check your spelling and try again.
3738
3839
Events
3940
------

docs/plugins/node.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ There is no configuration option. You only need to enable the plugin by adding t
1010

1111
.. code-block:: yaml
1212
13-
element.plugins.page:
13+
element.plugins.node:
1414
1515
Usage
1616
-----
@@ -72,10 +72,11 @@ This filter take a node and return a formatted string.
7272
type: blog.post
7373
title: Test
7474
format: markdown
75-
content: |
76-
## John Doe
7775
78-
Put a Resume here!!
76+
----
77+
## John Doe
78+
79+
Put a Resume here!!
7980
8081
8182
.. code-block:: jinja

element/standalone/skeleton/content/blog/2011/07/python-is-zen.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
type: blog.post
22
title: Python is Zen
3-
slug: plugins-status
43
format: markdown
54
enabled: 1
65
published_at: Fri, 18 Sep 2009 19:19:16
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
title: Page Not Found
22
type: page.default
33
format: markdown
4-
content: |
5-
The requested URL was not found on the server.
64

7-
If you entered the URL manually please check your spelling and try again.
5+
----
6+
The requested URL was not found on the server.
7+
8+
If you entered the URL manually please check your spelling and try again.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
title: Internal Server Error
22
type: page.default
33
format: markdown
4-
content: |
5-
An error occurs while rendering the page.
64

7-
Sorry for any inconvenients, try again or wait a bit for the technical
8-
team to fix the issue.
5+
----
6+
An error occurs while rendering the page.
7+
8+
Sorry for any inconvenients, try again or wait a bit for the technical
9+
team to fix the issue.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
title: Australia
22
type: media.gallery
33
format: markdown
4-
content: |
5-
Australia is one country where everything is possible, from dessert to the sea, from
6-
the walabee to the shark. This country is incredible.
7-
base_template: element:base_gallery.html
4+
base_template: element:base_gallery.html
5+
6+
----
7+
Australia is one country where everything is possible, from dessert to the sea, from
8+
the walabee to the shark. This country is incredible.
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
title: My Post Content
22
type: blog.post
33
tags: ['red', 'yellow']
4-
content: |
5-
## my title
6-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean rutrum diam
7-
lectus, eget ultricies purus. Suspendisse pellentesque enim ullamcorper libero
8-
adipiscing vulputate.
94

10-
## section 1
11-
Curabitur velit ipsum, sagittis volutpat porta at, imperdiet at risus. Donec ipsum nunc,
12-
commodo ut laoreet sed, mollis eu dolor. Praesent iaculis, nisl a laoreet elementum,
13-
odio lacus aliquam risus, et aliquam turpis metus vestibulum dolor.
5+
----
6+
## my title
7+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean rutrum diam
8+
lectus, eget ultricies purus. Suspendisse pellentesque enim ullamcorper libero
9+
adipiscing vulputate.
1410

15-
Maecenas venenatis nulla in metus egestas sollicitudin. Donec convallis sodales
16-
massa, ac feugiat mauris tincidunt vel. Fusce eu leo vel nisi faucibus luctus.
11+
## section 1
12+
Curabitur velit ipsum, sagittis volutpat porta at, imperdiet at risus. Donec ipsum nunc,
13+
commodo ut laoreet sed, mollis eu dolor. Praesent iaculis, nisl a laoreet elementum,
14+
odio lacus aliquam risus, et aliquam turpis metus vestibulum dolor.
15+
16+
Maecenas venenatis nulla in metus egestas sollicitudin. Donec convallis sodales
17+
massa, ac feugiat mauris tincidunt vel. Fusce eu leo vel nisi faucibus luctus.

0 commit comments

Comments
 (0)