This repository contains the source code for an AI-assisted blog built with Hugo. It serves as an experiment in rapid development using artificial intelligence.
- Hugo: A fast and flexible static site generator
- Paper theme: A clean, responsive Hugo theme
- Custom CSS for dark mode and project/talk styling
- Install Hugo
- Clone this repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name
- Run the Hugo development server:
hugo server -D
- View the site at http://localhost:1313
This project was developed with the assistance of AI, focusing on rapid iteration and experimentation. Key features include:
- Custom CSS modifications for dark mode
- Responsive design for various screen sizes
- Integration of project and talk sections
content/
: Markdown files for blog posts and pagesthemes/paper/
: The Paper theme (as a Git submodule)static/
: Static assets (images, etc.)config.toml
: Hugo configuration file
To add your own content as a submodule and set up secrets for GitHub Actions:
- Create a new repository for your content (e.g.,
my-blog-content
) - Add it as a submodule to this repository:
git submodule add https://github.com/yourusername/my-blog-content.git content/posts
- Update
.gitmodules
file if necessary - Create a Personal Access Token (PAT) on GitHub:
- Go to GitHub Settings > Developer settings > Personal access tokens
- Generate a new token with
repo
scope
- Add the PAT as a secret in your blog repository:
- Go to your blog repo settings > Secrets and variables > Actions
- Create a new repository secret named
ACCESS_TOKEN
- Paste your PAT as the value
- Check if the GitHub Actions workflow file (
.github/workflows/hugo-deploy.yaml
) has the following lines:- name: Checkout uses: actions/checkout@v3 with: submodules: recursive token: ${{ secrets.ACCESS_TOKEN }}
- Commit and push your changes
Now your GitHub Actions workflow will have access to your private content repository.
Please open an issue or submit a pull request if you have suggestions or improvements.
This project is open source and available under the MIT License. The content of this blog are copyrighted by Mickey Beurskens.