Add example gallery for recursive features
This commit is contained in:
parent
3e0c875a3c
commit
5a8f172480
@ -0,0 +1,7 @@
|
|||||||
|
title: my second gallery
|
||||||
|
sub_title: some subtitle
|
||||||
|
date: 2015-12-08
|
||||||
|
cover:
|
||||||
|
type: video
|
||||||
|
name: video.mp4
|
||||||
|
theme: exposure
|
BIN
example/second_gallery/second_level_gallery/stuff.png
Normal file
BIN
example/second_gallery/second_level_gallery/stuff.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
@ -0,0 +1,66 @@
|
|||||||
|
title: my third level gallery
|
||||||
|
sub_title: some subtitle
|
||||||
|
date: 2015-12-08
|
||||||
|
cover: stuff.png
|
||||||
|
sections:
|
||||||
|
- type: full-picture
|
||||||
|
image: stuff.png
|
||||||
|
text:
|
||||||
|
title: Beautiful Title
|
||||||
|
sub_title: pouet pouet
|
||||||
|
date: 2015-12-08
|
||||||
|
- type: full-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
||||||
|
text:
|
||||||
|
title: Beautiful Title
|
||||||
|
sub_title: pouet pouet
|
||||||
|
date: 2015-12-08
|
||||||
|
- type: bordered-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
||||||
|
- type: bordered-picture
|
||||||
|
image: stuff.png
|
||||||
|
- type: bordered-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
||||||
|
text: "plop"
|
||||||
|
- type: bordered-picture
|
||||||
|
image: stuff.png
|
||||||
|
text: "plop"
|
||||||
|
- type: text
|
||||||
|
text: « voici plein de blabla à rajouter et <b>ceci est du gras</b> et encore plein plein plein plein de text car je veux voir comment ça va wrapper car c'est important et il faut pas que j'oublie de mettre des margins en % sinon ça va pas le faire alala là ça devrait aller »
|
||||||
|
- type: pictures-group
|
||||||
|
images:
|
||||||
|
-
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
- name: video.mp4
|
||||||
|
type: video
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
-
|
||||||
|
- stuff.png
|
||||||
|
- name: video.mp4
|
||||||
|
type: video
|
||||||
|
- type: pictures-group
|
||||||
|
images:
|
||||||
|
-
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
-
|
||||||
|
- stuff.png
|
||||||
|
- stuff.png
|
||||||
|
- type: full-picture
|
||||||
|
image: stuff.png
|
||||||
|
- type: full-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
BIN
example/second_gallery/second_level_gallery/video.mp4
Normal file
BIN
example/second_gallery/second_level_gallery/video.mp4
Normal file
Binary file not shown.
66
example/second_gallery/second_level_gallery_2/settings.yaml
Normal file
66
example/second_gallery/second_level_gallery_2/settings.yaml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
title: my second level gallery 2
|
||||||
|
sub_title: some subtitle
|
||||||
|
date: 2015-12-08
|
||||||
|
cover: stuff.png
|
||||||
|
sections:
|
||||||
|
- type: full-picture
|
||||||
|
image: stuff.png
|
||||||
|
text:
|
||||||
|
title: Beautiful Title
|
||||||
|
sub_title: pouet pouet
|
||||||
|
date: 2015-12-08
|
||||||
|
- type: full-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
||||||
|
text:
|
||||||
|
title: Beautiful Title
|
||||||
|
sub_title: pouet pouet
|
||||||
|
date: 2015-12-08
|
||||||
|
- type: bordered-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
||||||
|
- type: bordered-picture
|
||||||
|
image: stuff.png
|
||||||
|
- type: bordered-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
||||||
|
text: "plop"
|
||||||
|
- type: bordered-picture
|
||||||
|
image: stuff.png
|
||||||
|
text: "plop"
|
||||||
|
- type: text
|
||||||
|
text: « voici plein de blabla à rajouter et <b>ceci est du gras</b> et encore plein plein plein plein de text car je veux voir comment ça va wrapper car c'est important et il faut pas que j'oublie de mettre des margins en % sinon ça va pas le faire alala là ça devrait aller »
|
||||||
|
- type: pictures-group
|
||||||
|
images:
|
||||||
|
-
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
- name: video.mp4
|
||||||
|
type: video
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
-
|
||||||
|
- stuff.png
|
||||||
|
- name: video.mp4
|
||||||
|
type: video
|
||||||
|
- type: pictures-group
|
||||||
|
images:
|
||||||
|
-
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
- name: stuff.png
|
||||||
|
text: "test"
|
||||||
|
-
|
||||||
|
- stuff.png
|
||||||
|
- stuff.png
|
||||||
|
- type: full-picture
|
||||||
|
image: stuff.png
|
||||||
|
- type: full-picture
|
||||||
|
image:
|
||||||
|
name: video.mp4
|
||||||
|
type: video
|
BIN
example/second_gallery/second_level_gallery_2/stuff.png
Normal file
BIN
example/second_gallery/second_level_gallery_2/stuff.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
example/second_gallery/second_level_gallery_2/video.mp4
Normal file
BIN
example/second_gallery/second_level_gallery_2/video.mp4
Normal file
Binary file not shown.
4
example/second_gallery/settings.yaml
Normal file
4
example/second_gallery/settings.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
title: my second level gallery
|
||||||
|
sub_title: some subtitle
|
||||||
|
date: 2015-12-08
|
||||||
|
cover: stuff.png
|
BIN
example/second_gallery/stuff.png
Normal file
BIN
example/second_gallery/stuff.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
example/second_gallery/video.mp4
Normal file
BIN
example/second_gallery/video.mp4
Normal file
Binary file not shown.
@ -426,7 +426,7 @@ def main():
|
|||||||
settings=settings,
|
settings=settings,
|
||||||
galleries=reversed(sorted(front_page_galleries_cover, key=lambda x: x["date"]))
|
galleries=reversed(sorted(front_page_galleries_cover, key=lambda x: x["date"]))
|
||||||
).encode("Utf-8"))
|
).encode("Utf-8"))
|
||||||
print 'Build homepage'
|
|
||||||
build_index(settings, front_page_galleries_cover, templates)
|
build_index(settings, front_page_galleries_cover, templates)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user