aktech.github.io

aktech.github.io

My Homepage/Blog at Github. šŸ“

Personal Blog and Webpage

Website: https://iamit.in Blog: https://iamit.in/blog

Built with Hugo and deployed via GitHub Actions to GitHub Pages.

Quick Start

Prerequisites

  • Hugo (v0.152.0 or later, extended version)
  • htmltest (optional, for link checking)

Local Development

# Serve the site locally with live reload
hugo server

# Open http://localhost:1313 in your browser

Building

# Build the site (outputs to public/)
./build.sh

# Or manually:
hugo --gc --minify
cp public/index.xml public/atom.xml

Testing

# Check for broken links
htmltest

Writing a New Post

  1. Create a new markdown file in content/blog/:

    # Format: YYYY-MM-DD-Title.md
    touch "content/blog/$(date +%Y-%m-%d)-My-New-Post.md"
    
  2. Add front matter:

    ---
    date: "2024-01-15"
    title: My New Post
    tags:
      - Tag1
      - Tag2
    url: /blog/my-new-post/
    ---
    
  3. Write your content in Markdown

  4. Preview locally:

    hugo server -D  # -D includes drafts
    
  5. Commit and push - GitHub Actions will automatically deploy

Project Structure

ā”œā”€ā”€ content/           # Markdown content
│   ā”œā”€ā”€ blog/         # Blog posts
│   ā”œā”€ā”€ about.md      # About page
│   ā”œā”€ā”€ talks.md      # Talks page
│   └── publications.md
ā”œā”€ā”€ layouts/          # Hugo templates
ā”œā”€ā”€ static/           # Static assets (images, CSS, JS)
ā”œā”€ā”€ hugo.toml         # Hugo configuration
└── .github/workflows/
    ā”œā”€ā”€ hugo.yml      # Deployment workflow
    └── pr-check.yml  # PR validation workflow

Deployment

The site automatically deploys via GitHub Actions when you push to main:

  1. Build with Hugo
  2. Run htmltest for link validation
  3. Deploy to GitHub Pages

RSS Feeds

License

See LICENSE