Blot

Sync a GitHub-based theme to a local folder?

This question perhaps displays my own limited knowledge, but here's the situation:

  1. Github-based public theme
  2. My fork of same for editing to Blot syntax (automatic)
  3. My local dropbox folder containing theme that syncs to Blot (manual)
  4. My preview of same which reflects my changes (automatic)

I'd like to automate the changes in 2 to updates in 3. Any suggestions?

3 replies

This is very possible to achieve. First, open up Blot's template editor and duplicate an existing template to use as a base. Open the 'Preview' link and perhaps bookmark it – this will be the preview URL for your Github template. Then click 'Edit code' to open up the source code editor for your template, and click 'Move to folder'. This will create the source files 'locally' in your Dropbox folder.

Now that you have the local template files, you can navigate to the folder on the command line and run the following to initialize a git repository:

git init

Then you can follow these instructions to set up the git repository on GitHub.

Once set up, you should have a locally-edited template with a live preview which is versioned using git and available on GitHub. Does that answer your question?

a year ago Edit

Yes, this is great, thank you!

a year ago Edit

FYI for folk interested, I solved this (the 2nd time) in a new way:

  1. Copy theme file to new test folder in Dropbox
  2. Use Claude Code Mac app to iterate on that local folder (which is of course also part of / synced to Blot).

For folk who are more comfortable w/ local files (which is probably a fair few Blot people) this was a much faster way to iterate.

a year ago Edit

Your reply