summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/admin/config.yml9
-rw-r--r--src/index.html.mustache4
2 files changed, 6 insertions, 7 deletions
diff --git a/src/admin/config.yml b/src/admin/config.yml
index 2747ca7..61ade92 100644
--- a/src/admin/config.yml
+++ b/src/admin/config.yml
@@ -6,18 +6,17 @@ public_folder: /media
collections:
- name: gallery
label: Gallery
- identifier_name: title
+ identifier_name: id
folder: _gallery
extension: json
create: true
fields:
+ - name: id
+ label: Sorting key (alphabetically first is shown first on page)
+ widget: string
- 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
diff --git a/src/index.html.mustache b/src/index.html.mustache
index d01df1a..698e044 100644
--- a/src/index.html.mustache
+++ b/src/index.html.mustache
@@ -19,9 +19,9 @@
</header>
{{#galleries}}
- {{#show_title}}
+ {{#title}}
<h3>{{title}}</h3>
- {{/show_title}}
+ {{/title}}
<div class="gallery">
{{#columns}}
<div class="column">