Skip to content

Commit

Permalink
add some more pages to example
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Nov 23, 2023
1 parent 711e805 commit 516fbb3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Gozer!

Gozer is a simple static site generator written in Golang.
Gozer is a fast & simple static site generator written in Golang.

- Converts Markdown to HTML.
- Allows you to use page-specific templates.
- Creates an XML sitemap for search engines.
- Creates an RSS feed for feed readers.

Here's a [sample website built using Gozer](https://github.com/dannyvankooten/www.dannyvankooten.com).
Sample websites using Gozer:

- [Simplest possible example](example/)
- [My personal website](https://github.com/dannyvankooten/www.dannyvankooten.com)


## Directory structure

Expand Down
5 changes: 5 additions & 0 deletions example/content/2023-11-01-hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = "Hello, world!"
+++

This is a blog post.
8 changes: 8 additions & 0 deletions example/content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = "About me"
+++

Lorem ipsum:

- Dolor
- Sit amet
2 changes: 2 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func TestExampleSite(t *testing.T) {
contains []byte
}{
{"index.html", []byte("<p>Hey, welcome on my site!</p>")},
{"about/index.html", []byte("<li>Dolor</li>")},
{"hello-world/index.html", []byte("This is a blog post.")},
{"favicon.ico", []byte{}},
{"feed.xml", []byte{}},
{"sitemap.xml", []byte("<url><loc>http://localhost:8080//</loc>")},
Expand Down

0 comments on commit 516fbb3

Please sign in to comment.