My personal portfolio website and blog, built with Hugo and Nix.
This is a static website showcasing my projects, blog posts, and professional background. The site features:
- Portfolio: Showcasing various software projects and games
- Blog: Technical articles and project write-ups
- About: Professional background and skills
- Contact: Links to social profiles and contact information
- Nix with flakes enabled
-
Clone the repository:
git clone https://github.com/SquarePear/www.git cd www -
Enter the development environment (or use direnv!):
nix develop --no-pure-eval
-
Start the development server:
hugo server
-
Visit
http://localhost:1313to view the site
To build the static site for production:
hugo build --gcThe built site will be available in the public/ directory.
Alternatively, you can build the site using Nix:
nix buildThe built site will be available in the result/ directory as a symlink to the Nix store.
├── archetypes/ # Content templates
├── assets/ # Fonts, images, and styles
├── content/ # Site content (Markdown files)
│ ├── blog/ # Blog posts
│ ├── projects/ # Project showcases
│ └── redirect/ # Redirect pages
├── layouts/ # Hugo templates
├── static/ # Static assets (icons, etc.)
├── hugo.toml # Hugo configuration
└── flake.nix # Nix development environment
Create a new Markdown file in content/blog/:
hugo new blog/your-post-title.mdCreate a new Markdown file in content/projects/:
hugo new projects/your-project-name.md