A sample blog demonstrating the hype static site generator.
-
Install hype:
go install github.com/gopherguides/hype/cmd/hype@latest
-
Clone this repository:
git clone https://github.com/gopherguides/hype-blog-sample.git cd hype-blog-sample -
Build the site:
hype blog build
-
Preview locally:
hype blog serve
-
Open http://localhost:3000 in your browser
Use watch mode to automatically rebuild when files change:
hype blog serve -watchThis watches content/, static/, and config.yaml for changes and rebuilds automatically.
hype-blog-sample/
├── config.yaml # Site configuration
├── content/ # Blog articles
│ ├── go-rest-api/ # Go article with source code
│ ├── ruby-automation/ # Ruby article with scripts
│ ├── bash-oneliners/ # Bash examples
│ └── tech-documentation/ # Non-technical article
├── static/ # Static assets
│ └── favicon.svg
└── .github/workflows/ # GitHub Actions deployment
└── deploy.yml
hype blog new my-article-slugThis creates:
content/my-article-slug/module.md- Article contentcontent/my-article-slug/src/- Source code directory
Articles use hype's markdown format with metadata in <details> tags:
# Article Title
<details>
slug: my-article
published: 01/25/2026
author: Your Name
seo_description: Description for search engines (150-160 chars)
tags: tag1, tag2, tag3
</details>
Your content here...
<code src="src/example.go"></code>- Live Development:
hype blog serve -watchrebuilds on file changes - SEO: OpenGraph, Twitter Cards, JSON-LD structured data
- Syntax Highlighting: Chroma with monokai theme + copy-to-clipboard
- RSS Feed: Available at
/rss.xml - Sitemap: Generated at
/sitemap.xml - Dark Mode: Automatic based on system preference
- Mobile Responsive: Tailwind CSS design
| Command | Description |
|---|---|
hype blog init <name> |
Create a new blog project |
hype blog build |
Build static site to public/ |
hype blog serve |
Preview at localhost:3000 |
hype blog serve -watch |
Preview with auto-rebuild on changes |
hype blog new <slug> |
Create new article scaffold |
This repository includes a GitHub Actions workflow that automatically builds and deploys to GitHub Pages when you push to main.
To enable:
- Go to repository Settings > Pages
- Set Source to "GitHub Actions"
- Push to
mainbranch
MIT