Skip to content

Theme: Move body tag into a block - #4140

Merged
tk0miya merged 1 commit into
sphinx-doc:masterfrom
Blendify:patch-1
Oct 16, 2017
Merged

Theme: Move body tag into a block#4140
tk0miya merged 1 commit into
sphinx-doc:masterfrom
Blendify:patch-1

Conversation

@Blendify

Copy link
Copy Markdown
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 %}`

@tk0miya tk0miya left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

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

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

tk0miya commented Oct 16, 2017

Copy link
Copy Markdown
Member

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