Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure footnote rendering. #526

Closed
wants to merge 1 commit into from
Closed

Configure footnote rendering. #526

wants to merge 1 commit into from

Conversation

halostatue
Copy link
Contributor

  • The config file can provide FootnoteAnchorPrefix, which will be used by blackfriday when rendering to HTML. A value of q: has the effect of making the anchor for a footnote [^footie] be fn:q:footie. The default is "".
  • The config file can provide FootnoteReturnLinkContents, which will be used by blackfriday when rendering to HTML. A value of ^ has the effect of making the return link be ^ instead of [return].

- The config file can provide FootnoteAnchorPrefix, which will be used
  by blackfriday when rendering to HTML. A value of `q:` has the effect
  of making the anchor for a footnote `[^footie]` be `fn:q:footie`. The
  default is `""`.

- The config file can provide FootnoteReturnLinkContents, which will be
  used by blackfriday when rendering to HTML. A value of `^` has the
  effect of making the return link be `^` instead of `[return]`.
@halostatue
Copy link
Contributor Author

Based on the discussion here: http://discuss.gohugo.io/t/footnote-styling/114

@halostatue
Copy link
Contributor Author

Also see http://discuss.gohugo.io/t/footnote-references-are-duplicated-on-list-pages/116 to see if we want to extend this functionality to use the slug as an automatic additional FootnoteAnchorPrefix.

@spf13
Copy link
Contributor

spf13 commented Oct 2, 2014

It looks like PR #530 encompasses this entire PR. Is that correct? If yes, then close this one and I'll merge that one.

@halostatue
Copy link
Contributor Author

Yes, and yes.

@halostatue halostatue closed this Oct 3, 2014
spf13 pushed a commit that referenced this pull request Oct 7, 2014
If content pages are fully rendered in a list page, footnotes that use
the same reference (`[^fn]`) will have duplicated anchors. This change
builds on #526 to put the page filename (`Page.File.Name`) as part of
the anchor for a footnote.

This would fix discussion [116](http://discuss.gohugo.io/t/footnote-references-are-duplicated-on-list-pages/116).
@halostatue halostatue deleted the customize-footnote-return branch October 15, 2014 01:57
tychoish pushed a commit to tychoish/hugo that referenced this pull request Aug 13, 2017
If content pages are fully rendered in a list page, footnotes that use
the same reference (`[^fn]`) will have duplicated anchors. This change
builds on gohugoio#526 to put the page filename (`Page.File.Name`) as part of
the anchor for a footnote.

This would fix discussion [116](http://discuss.gohugo.io/t/footnote-references-are-duplicated-on-list-pages/116).
@github-actions
Copy link

github-actions bot commented Mar 7, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants