Challenge10k · Foundation

Day 15 - Work on Jekyll, Codespaces, and GitHub Pages

07 October 2024 3 h 3 h total
Czysty kod

Work on configuring Jekyll in Codespaces, deploying to GitHub Pages, building the project, and adding a new post.

Focus area
Jekyll, Codespaces, GitHub Pages, build, new post
Mood
Engaged
Tags
jekyll codespaces github-pages devops

Tasks completed

  1. Codespaces setup
    Created a new Codespace for the repository and verified tooling availability (jekyll, ruby, node, npm). Tested local Jekyll startup (bundle exec jekyll serve) and confirmed the environment works correctly.

  2. GitHub integration tests
    Made a test commit and pushed changes from Codespaces to the GitHub repository. Checked that the GitHub Pages workflow builds the site correctly after pushing.

  3. Adding a new post
    Added a new post file in the _posts directory, filled in metadata and content. Verified locally that the post appears on the site. After confirming, pushed the changes to GitHub.

  4. Verifying GitHub Pages
    After pushing, checked the GitHub Pages build status. Confirmed that the new post is visible on the production site.

Takeaways

  • Codespaces significantly streamlines working with Jekyll and automates deployment.
  • GitHub Pages integration runs smoothly with a fast, predictable workflow.
  • Adding new posts and testing changes locally before deploying helps avoid mistakes.