Editing and Publishing Guide
This guide explains how to make changes to the website, upload them to GitHub, and publish the updated content.
Editing Content
The main files you’ll need to edit are:
1. _config.yml
This configuration file controls the global settings of your site:
- Site title and description: Change the
titleanddescriptionvalues - Author information: Update the
authorsection with your details - Navigation links: Modify the site’s navigation menu
- Theme settings: Adjust colors, fonts, and other visual elements
To edit this file:
# Open the file in your preferred text editor
# For example, using Visual Studio Code:
code _config.yml
2. index.md
This is your homepage content. Edit this file to change what appears on the main page:
# Open the file in your preferred text editor
code index.md
Uploading Changes to GitHub
After making your edits, follow these steps to upload your changes:
- Check which files have been modified:
git status - Add the modified files to the staging area:
git add _config.yml index.md # Or to add all modified files: git add . - Commit your changes with a descriptive message:
git commit -m "Update site configuration and homepage content" - Push your changes to GitHub:
git push origin master # If you're working on a different branch, use: git push origin your-branch-name
Publishing Your Changes
After uploading to GitHub, you need to deploy your changes to make them live:
- Open Git Bash terminal
- Navigate to your project’s root directory
- Run the deployment script:
bin/deploy --user
This script builds the site and publishes it to the appropriate branch for GitHub Pages.
Complete Workflow Example
Here’s a complete example of the editing and publishing workflow:
# 1. Edit the files
code _config.yml
code index.md
# 2. Check your changes
git status
# 3. Add and commit your changes
git add _config.yml index.md
git commit -m "Update website content"
# 4. Push to GitHub
git push origin master
# 5. Deploy the changes
bin/deploy --user
That’s it! Your changes should now be published and visible on your website.
Troubleshooting
- If the
bin/deployscript fails, check that it has execute permissions:chmod +x bin/deploy - If you encounter GitHub authentication issues, make sure your credentials are properly set up:
git config --global user.name "Your Name" git config --global user.email "your.email@example.com"