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

Feature request: css styling for footnotes #6

Closed
Lucretiel opened this issue Aug 18, 2020 · 2 comments
Closed

Feature request: css styling for footnotes #6

Lucretiel opened this issue Aug 18, 2020 · 2 comments

Comments

@Lucretiel
Copy link

Lucretiel commented Aug 18, 2020

Currently, zola (via pulldown-cmark) will generate footnotes from your markdown, at the end of the content. The footnote is rendered like this:

<div class="footnote-definition" id="1">
    <sup class="footnote-definition-label">1</sup>
    <p>This is a footnote.</p>
</div>

(though see also pulldown-cmark/pulldown-cmark#464)

If possible it'd be nice to have this be styled more like a footnote; in particular, the current (lack of) css makes the alignment out of whack
image

@bennetthardwick
Copy link
Owner

Boy, they make it hard to style the footnotes! I tried my best to make it look like how hugo renders. Here's the preview, if you have any CSS suggestions feel free to make a PR or let me know - I'm not much of a designer.

@Lucretiel
Copy link
Author

Sure, I'll see what I can do. I agree, I was also having trouble styling them but I am also not much of a css author. Hoping that if pulldown-cmark/pulldown-cmark#464 lands it'll be easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants