From 395a76bc4193c0c7182f87778458a68d0079e836 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 14 Feb 2020 15:39:56 +0100 Subject: compiler: metadata sidecar for whole directories GitHub: closes #3 --- example/readme.md | 2 ++ example/src/Glacier 3000/_DSC5475.jpg.yaml | 2 -- example/src/Glacier 3000/_DSC5542.jpg.yaml | 2 -- example/src/Glacier 3000/directory.yaml | 4 ++++ example/src/directory.yaml | 1 + example/src/gallery.yaml | 2 -- 6 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 example/src/Glacier 3000/directory.yaml create mode 100644 example/src/directory.yaml (limited to 'example') diff --git a/example/readme.md b/example/readme.md index e455f03..eafdaf5 100644 --- a/example/readme.md +++ b/example/readme.md @@ -14,9 +14,11 @@ Content ├── _DSC8808-1.jpg.yaml -- its associated sidecar metadata file ├── Glacier 3000 -- a directory grouping gallery items │   ├── thumbnail.jpg -- a thumbnail for the "Glacier 3000" directory +│   ├── directory.yaml -- sidecar metadata file for the "Glacier 3000" directory │   ├── _DSC5475.jpg │   ├── _DSC5475.jpg.yaml │   ├── _DSC5542.jpg │   └── _DSC5542.jpg.yaml +├── directory.yaml -- sidecar metadata file for the root directory └── gallery.yaml -- gallery settings file ``` diff --git a/example/src/Glacier 3000/_DSC5475.jpg.yaml b/example/src/Glacier 3000/_DSC5475.jpg.yaml index 3454a68..dfff6e8 100644 --- a/example/src/Glacier 3000/_DSC5475.jpg.yaml +++ b/example/src/Glacier 3000/_DSC5475.jpg.yaml @@ -7,8 +7,6 @@ description: > tags: - photographer.nphilou - - location.switzerland.ormont-dessus - - glacier3000 - time.day - weather.foggy - forest diff --git a/example/src/Glacier 3000/_DSC5542.jpg.yaml b/example/src/Glacier 3000/_DSC5542.jpg.yaml index d174911..f2c6a94 100644 --- a/example/src/Glacier 3000/_DSC5542.jpg.yaml +++ b/example/src/Glacier 3000/_DSC5542.jpg.yaml @@ -7,8 +7,6 @@ description: > tags: - photographer.nphilou - - location.switzerland.ormont-dessus - - glacier3000 - time.day - weather.foggy - catwalk diff --git a/example/src/Glacier 3000/directory.yaml b/example/src/Glacier 3000/directory.yaml new file mode 100644 index 0000000..44674cf --- /dev/null +++ b/example/src/Glacier 3000/directory.yaml @@ -0,0 +1,4 @@ +# The following tags are applied to all items in the directory +tags: + - location.switzerland.ormont-dessus + - glacier3000 diff --git a/example/src/directory.yaml b/example/src/directory.yaml new file mode 100644 index 0000000..ab81bb2 --- /dev/null +++ b/example/src/directory.yaml @@ -0,0 +1 @@ +title: Example gallery diff --git a/example/src/gallery.yaml b/example/src/gallery.yaml index 5efbfef..bef19e0 100644 --- a/example/src/gallery.yaml +++ b/example/src/gallery.yaml @@ -1,6 +1,4 @@ compiler: - galleryName: Example gallery - #includedDirectories: ["*"] #excludedDirectories: [] -- cgit v1.2.3