Skip to main content
  1. Abouts/

About This Site

·489 words·3 mins· loading · loading · ·
Krzysztof Wilczynski
Author
Krzysztof Wilczynski
Table of Contents

This page was made with Hugo and Blowfish, and is deployed on GitHub Pages.

Building Static Websites with Blowfish and Hugo
#

Setup Process
#

While Hugo is the core framework that powers this site, Blowfish provides a convenient CLI tool called blowfish-tools that simplifies the setup process.

  1. Install prerequisites:

  2. Install Blowfish Tools:

    npm install -g blowfish-tools
  3. Create a new site:

    blowfish new site your-site-name
    cd your-site-name

    This command automatically initializes Git, installs the Blowfish theme, and sets up the recommended configuration.

  4. Create content:

    blowfish new post "My First Post"

    This command creates a new post with the proper front matter already configured.

  5. Preview your site locally:

    blowfish serve

    This starts the development server with live reload enabled.

For more detailed instructions and additional features, see the Blowfish documentation. The Blowfish CLI tool makes it much easier to get started while still leveraging the full power of Hugo under the hood.

Publishing on GitHub Pages
#

This site is deployed using GitHub Pages with a GitHub Actions workflow. The source code is available at 3sztof/3sztof.github.io.

How It Works
#

  1. Repository Structure:

    • main branch: Contains the source code (Hugo content, configuration, etc.)
    • gh-pages branch: Contains the generated static site that GitHub serves
  2. GitHub Actions Workflow:

    • When changes are pushed to the main branch, a GitHub Actions workflow automatically:
      1. Checks out the code
      2. Sets up Hugo
      3. Builds the site
      4. Deploys the generated static files to the gh-pages branch
  3. Setting Up Your Own:

    • Create a repository named username.github.io
    • Push your Hugo site to the main branch
    • Create a GitHub Actions workflow file at .github/workflows/hugo.yml
    • Configure GitHub Pages to serve from the gh-pages branch

For a complete example, check out the workflow configuration in this site’s repository.

This setup provides a smooth workflow where you only need to focus on creating content in the main branch, and the deployment happens automatically whenever you push changes.

Customizations
#

This site includes several customizations on top of the standard Blowfish theme:

Animated Background
#

The homepage features a custom animated background using a modified traffic.svg with colors matched to the Marvel theme palette - muted blues, soft golds, and occasional pinks.

Hero Layout with Background
#

A custom hero.html partial combines the hero card layout with an animated full-page background, giving the best of both layouts.

Keyboard Shortcuts
#

  • Ctrl+K / Cmd+K: Open search (in addition to the default / key)
  • Esc: Close search
  • Arrow keys: Navigate search results

Theme as Git Submodule
#

The Blowfish theme is managed as a Git submodule rather than copied directly into the repository, making updates easier and keeping the repo clean.

Built with AI Assistance
#

Much of this site’s configuration, customization, and content was developed with the help of Opencode running Claude models on AWS Bedrock. The AI assisted with theme customization, layout modifications, SVG color adjustments, Hugo template overrides, and content drafting.