From 8b86f47640481803742c14d57b694c2ecd0451e5 Mon Sep 17 00:00:00 2001 From: Arthur Wallendorff Date: Tue, 26 Mar 2024 15:35:43 +0100 Subject: [PATCH 1/9] chore: update url --- .babilema.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.babilema.toml b/.babilema.toml index 05c3522..bf1b477 100644 --- a/.babilema.toml +++ b/.babilema.toml @@ -1,3 +1,3 @@ -website_url = "https://babilema.github.io" +website_url = "https://bytebakersco.github.io/babilema" blog_title = "Babilema: A Minimalist Static Blog Generator" output_dir = "." # This could be ommited or just be an empty string From 58d8cf588506cb7cc749dfcd61558ea40e10aae8 Mon Sep 17 00:00:00 2001 From: Arthur Wallendorff Date: Tue, 26 Mar 2024 15:35:52 +0100 Subject: [PATCH 2/9] chore: update href --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index fd919f7..1e70449 100644 --- a/templates/index.html +++ b/templates/index.html @@ -29,7 +29,7 @@ - + From 9461e44714d774104b40a5b8657062484f0b42b3 Mon Sep 17 00:00:00 2001 From: Arthur Wallendorff Date: Tue, 26 Mar 2024 15:36:04 +0100 Subject: [PATCH 3/9] chore: update test --- internal/generator/generator_test.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/internal/generator/generator_test.go b/internal/generator/generator_test.go index 1bf714e..04fe758 100644 --- a/internal/generator/generator_test.go +++ b/internal/generator/generator_test.go @@ -62,7 +62,7 @@ func TestGenerateBlogPosts(t *testing.T) { CSSDir: filepath.Join(basePath, "test-data"), TempDir: filepath.Join(basePath, "test-data", "tmp"), BlogPostIssuePrefix: "[BLOG]", - WebsiteURL: "http://localhost:8080", + WebsiteURL: "http://localhost:8080/foo", }, &buf, ) @@ -76,9 +76,9 @@ func TestGenerateBlogPosts(t *testing.T) { Test Title - Website name - + - + @@ -119,14 +119,14 @@ func TestGenerateBlogIndexPage(t *testing.T) { Preview: "Test preview", Title: "Test Title 1", DatePublished: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC), - URL: "example.com", + URL: "bar/baz.html", }, { Author: "Test Author", Preview: "Test preview without an image", Title: "Test Title 2", DatePublished: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC), - URL: "example.com", + URL: "bar/qux.html", }, } @@ -149,7 +149,8 @@ func TestGenerateBlogIndexPage(t *testing.T) { "test-data", "footer.html", ), - OutputDir: filepath.Join(".", "test-data"), + OutputDir: filepath.Join(".", "test-data"), + WebsiteURL: "https://localhost:8080/foo", }, &buf, ) @@ -166,23 +167,23 @@ func TestGenerateBlogIndexPage(t *testing.T) {
- +

Test Title 1

Test preview

Author: Test Author

Published: 1970-01-01 00:00:00 +0000 UTC

- Test Title 1 + Test Title 1
- +

Test Title 2

Test preview without an image

Author: Test Author

Published: 1970-01-01 00:00:00 +0000 UTC

- Test Title 2 + Test Title 2