1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00

chore(docs): update _storage-template.md (#13578)

Update _storage-template.md

The example for the {{if}} was a little bit confusing. Just a recommendation
This commit is contained in:
Christian Koch 2024-10-18 21:43:48 +02:00 committed by GitHub
parent e1e3ae811d
commit 76c0b964eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,5 +31,5 @@ Immich also provides a mechanism to migrate between templates so that if the tem
If you want to store assets in album folders, but you also have assets that do not belong to any album, you can use `{{#if album}}`, `{{else}}` and `{{/if}}` to create a conditional statement. For example, the following template will store assets in album folders if they belong to an album, and in a folder named "Other/Month" if they do not belong to an album:
```
{{y}}/{{#if album}}{{album}}{{else}}Other/{{MM}}{{/if}}/{{filename}}
{{y}}/{{#if album}}{{album}}{{else}}Other{{/if}}/{{MM}}/{{filename}}
```