From 8d58567f810bd0fb86a856fadd31211602f3d76c Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 11 Jul 2022 22:55:11 +0300 Subject: Add mustache templating --- src/admin/config.yml | 16 +++++++++++----- src/index.html | 44 -------------------------------------------- src/index.html.mustache | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 49 deletions(-) delete mode 100644 src/index.html create mode 100644 src/index.html.mustache (limited to 'src') diff --git a/src/admin/config.yml b/src/admin/config.yml index 9b3044f..2747ca7 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -14,6 +14,10 @@ collections: - name: title label: Title widget: string + - name: show_title + label: Show title above gallery? + widget: boolean + default: false - name: column_count label: Column count widget: number @@ -29,11 +33,13 @@ collections: - name: title label: Title widget: string - - name: source - label: Source + - name: src_thumbnail + label: Thumbnail image (smaller file size) + widget: image + allow_multiple: false + choose_url: true + - name: src_hiq + label: High quality image (larger file size) widget: image allow_multiple: false choose_url: true - media_library: - config: - multiple: true diff --git a/src/index.html b/src/index.html deleted file mode 100644 index 732a318..0000000 --- a/src/index.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - Minni Honka - - - - - - - - - - -
-

Minni Honka

-

Graphic designer & Illustrator

- -
- -

Graphic Design

- - - - \ No newline at end of file diff --git a/src/index.html.mustache b/src/index.html.mustache new file mode 100644 index 0000000..d01df1a --- /dev/null +++ b/src/index.html.mustache @@ -0,0 +1,38 @@ + + + + Minni Honka + + + + + + + + + + +
+

Minni Honka

+

Graphic designer & Illustrator

+ +
+ + {{#galleries}} + {{#show_title}} +

{{title}}

+ {{/show_title}} + + {{/galleries}} + + \ No newline at end of file -- cgit v1.3