Update README.md to reflect recent changes

This commit is contained in:
Bashy 2025-09-24 21:11:58 +03:00 committed by GitHub
parent aa354ad732
commit c1d71eec1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,13 +108,12 @@ sidebar_menu:
- Put post images in `source/images/` - Put post images in `source/images/`
- The theme generates thumbnails automatically in `source/thumbnails/` - The theme generates thumbnails automatically in `source/thumbnails/`
- Use `small-` or `large-` in templates depending on your layout.
Example in a template: Example in a template:
```ejs ```ejs
<% if (post.photos && post.photos.length) { %> <% if (post.photos && post.photos.length) { %>
<img class="gallery" src="<%- config.root %>thumbnails/small-<%- post.photos[0].replace(/^images\//,'') %>" alt="<%- post.title %>"> <img class="gallery" src="<%- config.root %>thumbnails/<%- post.photos[0].replace(/^images\//, '') %>" alt="<%- post.title || 'Untitled' %>">
<% } %> <% } %>
``` ```