Skip to content

Repository files navigation

My Hugo Blog

This repository contains the source code for my Hugo-based blog. Hugo is a fast and modern static site generator written in Go, known for its speed and flexibility. This README provides instructions to set up, customize, and deploy your own blog using this repository.

Prerequisites

  • Hugo (v0.58.0 or later)
  • Git
  • A text editor or IDE

Getting Started

  1. Clone the Repository

    git clone https://github.com/adriah/blog.git
    cd yourhugoblog
  2. Install Dependencies If your theme requires Node.js or other dependencies, ensure they are installed as per the theme documentation.

  3. Run the Hugo Server

    hugo server -D

    Visit http://localhost:1313 in your web browser to see your site in development mode, including draft content.

Customizing Your Blog

  1. Themes

    • The theme used is specified in the config.toml file.
    • You can change the theme by updating the theme parameter in config.toml and replacing the theme files.
  2. Site Configuration

    • Edit config.toml to set metadata, including the site's title, description, language, and more.
  3. Adding Content

    • Create new posts using:
      hugo new posts/your-post-title.md
    • Files are stored in the content/posts directory. Use Markdown to write your content.
  4. Static Files

    • Add static resources such as images, CSS, and JavaScript in the static directory.

Building and Deployment

  1. Build Your Site

    hugo

    The static site will be generated in the public directory.

  2. Deploy Your Site

    • You can deploy your site using various services. Common options include GitHub Pages, Netlify, and Vercel.
    • Follow the specific guidelines of the chosen platform for deployment instructions.

Contributing

Feel free to open issues or submit pull requests for improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages