## Article & Static Page Layouts with Sidebar

Two-column desktop layout, responsive sidebar that moves to bottom on mobile

### Single Article Page (Tech Example) — Desktop View

Article View / Single (Desktop 1024px+)
TECH

# Building a Go CLI Tool

Apr 12, 2026 • 5 min read

Building command-line tools in Go is straightforward and powerful. Let's explore how to create a simple CLI application.

package
main
import
(
"fmt"
)
func
main() {
fmt
.Println(
"Hello, CLI!"
)
}

This simple example demonstrates the basics. For larger projects, consider using the `cobra` library for more advanced CLI features.

The key advantages of Go for CLI tools are:

- Single binary compilation (no runtime dependencies)
- Cross-platform builds
- Fast execution
- Rich standard library

Tags:
#golang #cli #programming

### Share

𝕏 / Twitter
📘 Facebook
🔗 Copy Link

### Article Info

Published: Apr 12, 2026
Updated: Apr 14, 2026
Reading Time: 5 min
Category: Tech

### Related

Rust vs Go
Apr 5, 2026
Python CLI Tools
Mar 28, 2026

### Mobile View (Sidebar → Bottom)

Article View / Mobile (<768px)
TECH

# Building a Go CLI Tool

Apr 12, 2026 • 5 min

Building command-line tools in Go is straightforward and powerful...

[Article content continues...]

### Share This

𝕏
FB

### Info

Published: Apr 12, 2026
Category: Tech

### Static Page Layout (Same Structure)

Static pages (/is, /is/here, /is/legal) use the same two-column layout with sidebar. The sidebar can contain:

#### About Page Sidebar

- Social links
- Contact info
- Skills/expertise
- CV download

#### Contact Page Sidebar

- Email address
- Social profiles
- Response time
- Availability

### Syntax Highlighting

Implementation: Hugo + Chroma syntax highlighter (built-in)

- Automatically highlights code blocks marked with language (```go, ```python, etc.)
- Custom CSS theme integrated with danix.xyz color scheme (purple accent, green highlights for keywords)
- Line numbers optional (configurable in hugo.toml)
- Supports all major languages: Go, Python, Rust, JavaScript, Bash, etc.

```go
// Code here gets automatic syntax highlighting
```

### Sidebar Implementation Details

Desktop (1024px+): CSS Grid layout with main content + sticky sidebar. Sidebar remains visible while scrolling.
Tablet/Mobile: Single column. Sidebar content rendered after main content using CSS `order` property or media query flexbox reorder.
Content Source: Sidebar content defined via optional front-matter fields or template logic (e.g., `show_sharing: true`, `show_metadata: true`).