Start a new middleman site from my template
https://github.com/CasJam/middelman-template
My middleman template site comes with the following pre-installed:
Tailwind
Stimulus JS
Webpack
Postcss
---
1) cd to my sites folder:
cd ~/code/active/sites
2) Clone the repo for my template site
git clone https://github.com/CasJam/middelman-template.git new-site-name
3) cd into that new site:
cd new-site-name
4) Bundle Install to install the gems for this project
bundle install
5) npm install to install the javascript dependecies
npm install
6) Remove the template github repo from the current origin
git remote rm origin
7) Set up the new repo on github
Log into my github.com account
"Create New Repository"
Name it the same as my projectname
Get commands from the instructions under "...or push an existing repository from the command line."
8) Make first commit to the new GitHub repo:
git add .
git commit -m "first commit"
git push --set-upstream origin master
9) Run the server in terminal tab 1:
middleman s
10) Update info in config.rb
In the new project, open config.rb and update the helper methods with this new site's name, URL, etc.
11) Update favicon and default meta image
These can be founded in source/images/favicon and source/images/meta
Last updated