diff --git a/example/second_gallery/second_level_gallery/settings.yaml b/example/second_gallery/second_level_gallery/settings.yaml new file mode 100644 index 0000000..8e82c44 --- /dev/null +++ b/example/second_gallery/second_level_gallery/settings.yaml @@ -0,0 +1,7 @@ +title: my second gallery +sub_title: some subtitle +date: 2015-12-08 +cover: + type: video + name: video.mp4 +theme: exposure \ No newline at end of file diff --git a/example/second_gallery/second_level_gallery/stuff.png b/example/second_gallery/second_level_gallery/stuff.png new file mode 100644 index 0000000..2126ff5 Binary files /dev/null and b/example/second_gallery/second_level_gallery/stuff.png differ diff --git a/example/second_gallery/second_level_gallery/third_level_gallery/settings.yaml b/example/second_gallery/second_level_gallery/third_level_gallery/settings.yaml new file mode 100644 index 0000000..07c801c --- /dev/null +++ b/example/second_gallery/second_level_gallery/third_level_gallery/settings.yaml @@ -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 ceci est du gras 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 diff --git a/example/second_gallery/second_level_gallery/third_level_gallery/stuff.png b/example/second_gallery/second_level_gallery/third_level_gallery/stuff.png new file mode 100644 index 0000000..2126ff5 Binary files /dev/null and b/example/second_gallery/second_level_gallery/third_level_gallery/stuff.png differ diff --git a/example/second_gallery/second_level_gallery/third_level_gallery/video.mp4 b/example/second_gallery/second_level_gallery/third_level_gallery/video.mp4 new file mode 100644 index 0000000..95b7652 Binary files /dev/null and b/example/second_gallery/second_level_gallery/third_level_gallery/video.mp4 differ diff --git a/example/second_gallery/second_level_gallery/video.mp4 b/example/second_gallery/second_level_gallery/video.mp4 new file mode 100644 index 0000000..95b7652 Binary files /dev/null and b/example/second_gallery/second_level_gallery/video.mp4 differ diff --git a/example/second_gallery/second_level_gallery_2/settings.yaml b/example/second_gallery/second_level_gallery_2/settings.yaml new file mode 100644 index 0000000..0f89dd8 --- /dev/null +++ b/example/second_gallery/second_level_gallery_2/settings.yaml @@ -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 ceci est du gras 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 diff --git a/example/second_gallery/second_level_gallery_2/stuff.png b/example/second_gallery/second_level_gallery_2/stuff.png new file mode 100644 index 0000000..2126ff5 Binary files /dev/null and b/example/second_gallery/second_level_gallery_2/stuff.png differ diff --git a/example/second_gallery/second_level_gallery_2/video.mp4 b/example/second_gallery/second_level_gallery_2/video.mp4 new file mode 100644 index 0000000..95b7652 Binary files /dev/null and b/example/second_gallery/second_level_gallery_2/video.mp4 differ diff --git a/example/second_gallery/settings.yaml b/example/second_gallery/settings.yaml new file mode 100644 index 0000000..94ddff0 --- /dev/null +++ b/example/second_gallery/settings.yaml @@ -0,0 +1,4 @@ +title: my second level gallery +sub_title: some subtitle +date: 2015-12-08 +cover: stuff.png \ No newline at end of file diff --git a/example/second_gallery/stuff.png b/example/second_gallery/stuff.png new file mode 100644 index 0000000..2126ff5 Binary files /dev/null and b/example/second_gallery/stuff.png differ diff --git a/example/second_gallery/video.mp4 b/example/second_gallery/video.mp4 new file mode 100644 index 0000000..95b7652 Binary files /dev/null and b/example/second_gallery/video.mp4 differ diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 46d5b97..7973bcc 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -426,7 +426,7 @@ def main(): settings=settings, galleries=reversed(sorted(front_page_galleries_cover, key=lambda x: x["date"])) ).encode("Utf-8")) - print 'Build homepage' + build_index(settings, front_page_galleries_cover, templates)