-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add main footer block #1351
Comments
Well, we could do that for v5, but the question is: above or below Disqus? Probably a matter of taste. |
Yes after disqus I think :)
… Le 29 nov. 2019 à 16:48, Martin Donath ***@***.***> a écrit :
Well, we could do that for v5, but the question is: above or below Disqus? Probably a matter of taste.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I would say before Disqus. But this is exactly my point - It's a matter of taste. For this reason I don't know if it makes sense including it, because then somebody else will open an issue who wants it just the other way. I'll leave this open until I/we decide. |
I decided not to include a generic main header or footer block. The reason is that there are multiple positions where such a block can be placed. However, it is easily achievable with the current architecture using block-level theme extension and the Place after content, before disqus {% block content %}
<p>Main header</p>
{{ super() }}
<p>Main footer</p>
{% endblock %} Place after disqus {% block diqus %}
{{ super() }}
<p>Main footer</p>
{% endblock %} |
Hi,
Description
I asked myself how to easily add a "post article" custom content (right just before closing
</article>
(or after ?) BUT inside the<main>
tag ?Goal
My goal is to add static content on very page above the main content, at template level using native override capabilities.
Details
Add a
main-footer
block (maybe empty by default ?) here https://github.com/squidfunk/mkdocs-material/blob/master/src/base.html#L338, for example :or
Do you think that is possible ?
Best regards
The text was updated successfully, but these errors were encountered: