Logo

Welcome to your new Bridgetown website

Tutorial

I will write up a tutorial for adding Torchlight to your own site soon on my personal website: andrewm.codes! 🎉

In the meantime, you can view the single commit that added Torchlight to the repository.

S/O to Aaron for creating a great highlighting experience!

Keep up to date with me on Twitter or on my website.

Bridgetown

You can learn more about how to build and deploy your new website by reading the Bridgetown documentation.

You can choose a theme or add some plugins to get started quickly.

Be sure to check out the Bridgetown Cards community site for helpful tips & tricks.

If you run into any issues or have additional questions, please join us in our Discord chat or in GitHub discussions.

Have fun and good luck!

Torchlight

There are multiple ways you can run Torchlight with Bridgetown.

You can run Torchlight as a separate process with their watch command.

Can also be run as a hook on every build, but this can occasionally put you into a weird state where you have to reload to see the changes.

class Builders::Torchlight < SiteBuilder
def build
hook :site, :post_write, priority: :high do
system "yarn torchlight"
end
end
end

There really isn’t a need to run Torchlight everytime we rebuild the site though…

We can just run it at the end of our build process via the CLI or with a hook. Or we could only run it when BRIDGETOWN_ENV is set to production.

class Builders::Torchlight < SiteBuilder
def build
hook :site, :post_write, priority: :high do
next unless Bridgetown.env.production?
 
system "yarn torchlight"
end
end
end

Generated by v1.0.0