Website for rendall.dev
- Create a blog post by adding a markdown file to _src/blog/posts and pushing it to the
master
branch.
- Update
./_src/resume.pug
(source of truth), then:- Update
./static/resume/rendallkoski.pdf
- Update https://docs.google.com/document/d/1dfiAVUVUVMeFW6hxONcYYUL7-6tcze2rQTAbwT2XUKc/edit?usp=sharing
- Update https://linkedin.com/in/rendallkoski
- Update
./dist
is the pubish directory of https://www.rendall.dev./dist/blog/
is the root directory of the blog https://blog.rendall.dev- Requests to https://www.rendall.dev/blog redirect to https://blog.rendall.dev
_src/
holds the source for https://rendall.dev_src/blog/
holds the source for https://blog.rendall.dev- Each site has a separate build process.
./static
and./static/blog
holds static resources and assets copied to./dist
during build.
yarn run build
This site is built using 11ty. The build process is non-default There are two eleventy builds, one for the https://rendall.dev site and the other for the https://blog.rendall.dev blog.
The command yarn run start
will create a server at http://localhost:8080 for local development. This command runs two servers concurrently, one for the blog and the other for the homepage. Put:
- Blog posts in
./_src
_/src/resume.pug
is the single source of truth, propogate changes manually
To use srcset for any image, put it in the ./static
directory and run the command node ./build-scripts/optimize-images.js
.
This will take any image in ./static
(that is not in ./static/icons/
- that directory is excluded) and optimize, resizing them.
It will output to screen an image tag like this, suitable for adding to the HTML.
<img src="/images/rendall.png" srcset="/images/rendall-360w.png 360w, /images/rendall-480w.png 480w, /images/rendall-800w.png 800w">
Better to do it manually. Adding this to the build process, especially via webpack, is a path to darkness and despair.
- Commit changes into a git change branch with an arbitrary name
git checkout staging && git pull
git checkout -b <change branch name>
- Pull request against the
staging
branch- These commands will make your life easier:
git checkout staging && git pull
git fetch origin master:master
git rebase --reapply-cherry-picks master
git push --force
- When ready merge the PR into the staging branch, preserving history
- Netlify will automatically deploy from
staging
- After deployment, can manually check at https://staging.rendall.dev
- Netlify will automatically deploy from
- Pull request from
staging
againstmaster
- When ready squash the PR into
master
, flattening history- Netlify will automatically deploy from
master
- After deployment, sites are live at https://www.rendall.dev and https://blog.rendall.dev
- Netlify will automatically deploy from
- More pleasing visual design
- Add 'Next' and 'Previous' links in blog posts
- Add serviceworker, especially to cache Montserrat webfont
- E2E testing
- Automate propogation of CV changes