Skip to content

Commit

Permalink
chore: add comments on how footnotes work
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Jul 6, 2024
1 parent 5a302e3 commit e7b986a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp2hugo/internal/hugogenerator/hugopage/hugo_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ func (page *Page) getMarkdown(provider ImageURLProvider, htmlContent string, foo
log.Debug().Msg("Auto-detecting languages of code blocks is disabled for now")
}

// Replace footnote links with actual Hugo-style footnotes
// Ref: https://geekthis.net/post/hugo-footnotes-and-citations
footnoteStrs := make([]string, 0, len(footnotes))
if len(footnotes) > 0 {
// [^1]: And that's the footnote.
Expand Down

0 comments on commit e7b986a

Please sign in to comment.