๐Ÿค“ Steve Polito's Personal Site

CI

๐Ÿš€ Set Up

bundle install

๐Ÿ›  Local Development

bundle exec jekyll serve --livereload

โœ๏ธ Content Creation

๐Ÿ“ธ Open Graph Images

Open Graph images are automatically created for every page on the site. This only works in a non-production environment since this task depends on Selenium being installed. The content used for the Open Graph images is based on the title of the page.

Additional Details

๐Ÿ”— Linking to External Posts

Sometimes I write for other blogs, but I want to share my work on my personal website. In theses cases I simply add a canonical_url key to the front matter of a blank post.

---
title: "Some title"
canonical_url: https://external.com/blog/example.html
---

Additional Details

โœ… Tests and CI

Test Suite

bundle exec rake

CI

GitHub actions runs CI which runs the test suite and standard.

๐Ÿงผ Linting

Prettier

Run npx prettier --write path/to/file to lint a specific file or files if using glob pattern matching.

There's also a pre-commit hook via ./husky/pre-commit that will lint any files that were just committed.

Standard

Run bundle exec standardrb --fix to fix any Ruby violations. This is currently run as part of CI.

Markdown

Run ./bin.mdl path/to/markdown/file to lint a specific file or files if using glob pattern matching. Since the existing posts were migrating from a previous Gatsby build, there are a lot of violations. This is better suited for new posts, and as such, is not part of CI.