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.
- Hugo (v0.58.0 or later)
- Git
- A text editor or IDE
-
Clone the Repository
git clone https://github.com/adriah/blog.git cd yourhugoblog -
Install Dependencies If your theme requires Node.js or other dependencies, ensure they are installed as per the theme documentation.
-
Run the Hugo Server
hugo server -D
Visit
http://localhost:1313in your web browser to see your site in development mode, including draft content.
-
Themes
- The theme used is specified in the
config.tomlfile. - You can change the theme by updating the
themeparameter inconfig.tomland replacing the theme files.
- The theme used is specified in the
-
Site Configuration
- Edit
config.tomlto set metadata, including the site's title, description, language, and more.
- Edit
-
Adding Content
- Create new posts using:
hugo new posts/your-post-title.md
- Files are stored in the
content/postsdirectory. Use Markdown to write your content.
- Create new posts using:
-
Static Files
- Add static resources such as images, CSS, and JavaScript in the
staticdirectory.
- Add static resources such as images, CSS, and JavaScript in the
-
Build Your Site
hugo
The static site will be generated in the
publicdirectory. -
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.
Feel free to open issues or submit pull requests for improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.