Skip to content

Theme: Move body tag into a block #4140

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

Merged
merged 1 commit into from
Oct 16, 2017
Merged

Theme: Move body tag into a block #4140

merged 1 commit into from
Oct 16, 2017

Conversation

Blendify
Copy link
Contributor

Feature or Bugfix

  • Feature

Purpose

Sometimes users might want to override this tag to include custom information such as ids.

Detail

Example:

<body id="page-top">

Can be done with {%- block body_tag %}<body id="page-top">{% endblock %}

Relates

None

Sometimes users might want to override this tag to include custom information such as `id`s e.g:

`<body id="page-top">`

Can be done with `{%- block body_tag %}<body id="page-top">{% endblock %}`
Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shibukawa do you have any comments for this?

@tk0miya tk0miya added html theme type:proposal a feature suggestion labels Oct 11, 2017
@tk0miya tk0miya added this to the 1.7 milestone Oct 11, 2017
@shibukawa
Copy link
Contributor

This fix is not bad, because it keeps backward compatibility.

@tk0miya tk0miya merged commit 30a9cb0 into sphinx-doc:master Oct 16, 2017
@tk0miya
Copy link
Member

tk0miya commented Oct 16, 2017

Merged. Thank you for contribution!

tk0miya added a commit that referenced this pull request Oct 16, 2017
@Blendify Blendify deleted the patch-1 branch October 27, 2017 14:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
html theme type:proposal a feature suggestion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants