From 516fbb3dcb773f43da4e3b1ddaf103ed0cef81b1 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Thu, 23 Nov 2023 14:09:46 +0100 Subject: [PATCH] add some more pages to example --- README.md | 8 ++++++-- example/content/2023-11-01-hello-world.md | 5 +++++ example/content/about.md | 8 ++++++++ main_test.go | 2 ++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 example/content/2023-11-01-hello-world.md create mode 100644 example/content/about.md diff --git a/README.md b/README.md index 59813bc..dcfca99 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/example/content/2023-11-01-hello-world.md b/example/content/2023-11-01-hello-world.md new file mode 100644 index 0000000..6e2c711 --- /dev/null +++ b/example/content/2023-11-01-hello-world.md @@ -0,0 +1,5 @@ ++++ +title = "Hello, world!" ++++ + +This is a blog post. diff --git a/example/content/about.md b/example/content/about.md new file mode 100644 index 0000000..d880447 --- /dev/null +++ b/example/content/about.md @@ -0,0 +1,8 @@ ++++ +title = "About me" ++++ + +Lorem ipsum: + +- Dolor +- Sit amet diff --git a/main_test.go b/main_test.go index 627856f..0056b81 100644 --- a/main_test.go +++ b/main_test.go @@ -17,6 +17,8 @@ func TestExampleSite(t *testing.T) { contains []byte }{ {"index.html", []byte("

Hey, welcome on my site!

")}, + {"about/index.html", []byte("
  • Dolor
  • ")}, + {"hello-world/index.html", []byte("This is a blog post.")}, {"favicon.ico", []byte{}}, {"feed.xml", []byte{}}, {"sitemap.xml", []byte("http://localhost:8080//")},