The Witchcraft
website, built with bridgetownrb and tailwindcss
Join the discussion at https://witchcraft.chat
- ruby 3.0.0 and bundler (
gem install bundler
) - Node.js and yarn
git clone
this repocd
into it- Run
bundle install
- Run
yarn install
yarn start
The page is available under http://localhost:4000.
Any file edits will immediately update inside your browser. ✨
- #TODO
We are using Tailwind CSS for the styling of our website.
Sometimes we do also need to add custom css for specific components.
The css entrypoint is frontend/styles/index.scss
.
The js entrypoint is frontend/javascript/index.js
.
frontend/
contains all the static javascript and stylesheetssrc/
contains all content (pages, layout, components, images)
Contains all content, like pages, guides written in markdown, layouts, components and images.
Directory for all guide entries. Each file should be a markdown file.
Directory for all the external media entries about Witchcraft
like podcasts, conference talks etc.
Directory for all layout files. Different pages can have different layouts.
For example the regular page layout default.liquid
is located here. Read more
about layouts in bridgetownrb here: https://www.bridgetownrb.com/docs/layouts
Directory for all component files, like navbar, footer, etc.
To include a component inside a layout
{% render "shared/navbar", page: page, navigation: site.data.navigation %}
Read more here: https://www.bridgetownrb.com/docs/components
Insert new images for content here.