Skip to content

Commit

Permalink
Update _storage-template.md
Browse files Browse the repository at this point in the history
The example for the {{if}} was a little bit confusing. Just a recommendation
  • Loading branch information
chriskoch authored Oct 18, 2024
1 parent b114988 commit 48e1968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/partials/_storage-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
```

0 comments on commit 48e1968

Please sign in to comment.