Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakjois committed Aug 9, 2024
1 parent b08a02f commit 1ca7649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
Expand Down

0 comments on commit 1ca7649

Please sign in to comment.