Duplicating or renaming template folders locally does not work?
Hi, I duplicated a template in my local Dropbox folder (and renamed the folder) and it wasn't picked up by Blot. Is this expected? The process for starting to build a new theme locally (and then preview via Blot) seems quite convoluted, perhaps I'm missing something?
Both re-naming and duplicating via Finder / Dropbox seem to confuse the Blot Template editor.
Yes, unfortunately for now this is expected (although I'd like to make it possible to duplicate a template directly in the folder). For now
- Open up the web template editor
- Select the template in your folder in the sidebar on the left
- Press the duplicate button for this template.
- Open up the duplicated template, then press 'Edit code' and then click the link ' Move to folder' at the bottom of the list of template files.
Thank you, that's clear. Unfortunately what i'm doing is starting from a non-Blot template (and converting, with the help of Claude Code). It's going surprisingly well, but doing it for new templates is a bit of a process. I'm currently:
- Doing everything above
- Replacing the files with my own files
- Editing locally However the naming conventions on Blot's side are quite confused by this.
Yes, Blot has a few naming conventions, specifically, entry.html for posts and pages, and entries.html for the index pages.
If you point Claude at the source for one of Blot's templates and ask it to follow the naming conventions, it should work it out:
https://github.com/davidmerfield/blot/tree/master/app/templates/source
Please let me know if you have any questions about this or anything else
Yup, that's what I have been doing, works great. My issue was I re-named the local folder (to match the new theme name) and then that caused a sync issue and I had to revert/rename on the blot site instead.