17800dc17b
chore: update theme |
||
---|---|---|
.github/workflows | ||
archetypes | ||
content | ||
layouts | ||
static | ||
themes | ||
.gitignore | ||
.gitmodules | ||
.hugo_build.lock | ||
hugo.toml | ||
LICENSE | ||
README.md |
rottenblog
This is the source code for rottenblog. It is a static site generated using Hugo.
Rottentheme is the theme used by rottenblog.
Getting Started
Prerequisites
- Hugo installed on your machine.
Installation
-
Clone the repository:
git clone https://github.com/rottenwheel/hugo-rottenwheel.git cd hugo-rottenwheel
-
Run the Hugo server:
hugo server
-
Open your browser and visit
http://localhost:1313
to see the site.
Deployment
If you use GitHub, this repository comes with a GitHub Actions workflow that automatically builds and deploys the site to the pages
branch whenever you push changes to the main
branch.
Otherwise, you can build the site manually:
hugo --minify
The generated site will be in the public/
directory.
Adding a New Post
-
Create a new Markdown file in the
content/posts/
directory:hugo new posts/my-new-post.md
-
Edit the new post file to add your content.
--- title: "My New Post" date: 2024-07-15 image: "/images/2.jpg" --- This is the content of my new post.
-
Save the file and refresh your browser to see the new post.
Customizing the Homepage
The homepage content and layout can be customized by editing the content/_index.md
file and the layouts/index.html
template.
content/_index.md
: Contains the metadata for the homepage.layouts/index.html
: Defines the HTML structure and layout for the homepage.
License
Hugo Rottenwheel is released under GNU General Public License v3.0. See LICENSE for more information.