diff --git a/README.md b/README.md index 94c4f08..b038a9b 100644 --- a/README.md +++ b/README.md @@ -108,17 +108,16 @@ sidebar_menu: - Put post images in `source/images/` - The theme generates thumbnails automatically in `source/thumbnails/` -- Use `small-` or `large-` in templates depending on your layout. Example in a template: ```ejs <% if (post.photos && post.photos.length) { %> - <%- post.title %> + <%- post.title || 'Untitled' %> <% } %> ``` -> ⚠️ Only shows image if `post.photos` exists. +> ⚠️ Only shows image if `post.photos` exists, and it will only show the first image. ---