From 1ca7649c53efbb29055f8ee6f8d126a60d5c37b3 Mon Sep 17 00:00:00 2001 From: Deepak Jois Date: Fri, 9 Aug 2024 11:18:38 +0530 Subject: [PATCH] Refactor --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9ae720aa..27839349 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func generateSite(md goldmark.Markdown) error { return fmt.Errorf("parse shell template: %w", err) } - if err := generateIndexPage(md, tmpl); err != nil { + if err := generateIndexPage(tmpl); err != nil { return fmt.Errorf("generate index page: %w", err) } @@ -67,7 +67,7 @@ func generateSite(md goldmark.Markdown) error { return nil } -func generateIndexPage(md goldmark.Markdown, tmpl *template.Template) error { +func generateIndexPage(tmpl *template.Template) error { content, err := os.ReadFile("content/index.html") if err != nil { return fmt.Errorf("read index content: %w", err)