Skip to content

ashishjg21/hugopaper-myblog

Repository files navigation

Ashish's Blog

A personal blog built with Hugo and the PaperMod theme.

Netlify Status


Installation & Setup

Prerequisites

Get started

# Clone the repo
git clone <repo-url>
cd hugopaper-myblog

# Install theme (already included)
git submodule update --init --recursive

# Run locally
hugo server -D

Visit http://localhost:1313 in your browser.


Adding a New Blog Post

Quick method

hugo new posts/my-post-title.md

Manual method

Create a new file in content/posts/ with this structure:

---
title: "Post Title"
date: 2025-12-21
draft: false
tag: [tag1, tag2]
description: "Brief summary"
---

Your content here...

Important fields

  • title — Post heading
  • date — Publication date (ISO format)
  • draft: false — Set to true to hide from site
  • tag — Tags for organizing posts (as list)
  • description — Shows in post previews and metadata

Key Things to Keep in Mind

Before publishing

  • ✅ Set draft: false in frontmatter
  • ✅ Add meaningful description (shows in search & OG previews)
  • ✅ Use tag field (helps with categorization)
  • ✅ Check date format: YYYY-MM-DDTHH:MM:SS±ZZ:ZZ or YYYY-MM-DD

Writing posts

  • Markdown syntax supported (headings, lists, code blocks, links, images)
  • Code highlighting works automatically
  • Images go in static/images/ — reference as /images/filename
  • Table of contents auto-generated if post is long enough

Site config

  • Edit config.yml for:
    • Site title, description, author
    • Social links (Twitter, GitHub, LinkedIn, etc.)
    • Theme settings (dark mode, reading time, sharing buttons)

Build & deploy

# Build static site (output in /public)
hugo

# Deploy to production (via Netlify, Vercel, etc.)
# Push to git — auto-deploys on Netlify
git push

Useful commands

hugo server -D          # Preview locally (with drafts)
hugo                    # Build for production
hugo new posts/test.md  # Create new post

Folder structure

├── content/            # Blog posts
│   └── posts/
├── layouts/            # Custom templates (overrides theme)
├── static/             # Static files (images, etc.)
├── config.yml          # Site config
└── themes/PaperMod/    # Theme

Learn more

About

my blog.

Resources

Stars

Watchers

Forks

Contributors