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

Make HTML title fully configurable in basic/layout.html #260

Closed
shimizukawa opened this issue Jan 2, 2015 · 3 comments
Closed

Make HTML title fully configurable in basic/layout.html #260

shimizukawa opened this issue Jan 2, 2015 · 3 comments
Labels
builder:html type:enhancement enhance or introduce a new feature type:proposal a feature suggestion

Comments

@shimizukawa
Copy link
Member

The current basic HTML templates don't allow full control over the title of the document. You get "title -- docstitle" whether you want it or not:

    {%- if not embedded %}
      {%- set titlesuffix = " — "|safe + docstitle|e %}
    {%- else %}
      {%- set titlesuffix = "" %}
    {%- endif %}
    <title>{{ title|striptags }}{{ titlesuffix }}</title>

For single documents with one title, you get your title repeated twice and can't really do anything. It would be nice if the <title> element was in a block so you could override it:

    {&#37; block htmltitle &#37;}
        {&#37;- if not embedded &#37;}
          {&#37;- set titlesuffix = " &mdash; "|safe + docstitle|e &#37;}
        {&#37;- else &#37;}
          {&#37;- set titlesuffix = "" &#37;}
        {&#37;- endif &#37;}
        <title>{{ title|striptags }}{{ titlesuffix }}</title>
    {&#37; block htmltitle &#37;}

@shimizukawa shimizukawa added type:enhancement enhance or introduce a new feature builder:html type:proposal a feature suggestion labels Jan 2, 2015
@shimizukawa
Copy link
Member Author

From Anonymous on 2009-09-23 22:51:20+00:00

Err, that should be {% endblock %} at the end there. :)

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2009-11-08 18:04:37+00:00

I added the "htmltitle" block in <<cset 51a1698>>.

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2013-03-31 13:57:31+00:00

Removing version: 0.6.3 (automated comment)

shimizukawa added a commit that referenced this issue Mar 11, 2015
Encode underscore in citation labels for latex export
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
builder:html type:enhancement enhance or introduce a new feature type:proposal a feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant