Website for rendall.dev
- Create a blog post by adding a markdown file to _src/blog/posts and pushing it to the
masterbranch.
- 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
./distis 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.
./staticand./static/blogholds static resources and assets copied to./distduring 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.pugis 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 pullgit checkout -b <change branch name>
- Pull request against the
stagingbranch- These commands will make your life easier:
git checkout staging && git pullgit fetch origin master:mastergit rebase --reapply-cherry-picks mastergit 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
stagingagainstmaster - 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
