zenodo / zenodo-docs-user

Zenodo User Documentation
https://zenodo.org
Other
7 stars 16 forks source link

bug: fix HTML title #119

Closed carlinmack closed 3 months ago

carlinmack commented 3 months ago

Close https://github.com/zenodo/ops/issues/390

Change:

<title>{% if title %}{% block title %}{% endblock %} | {% endif %}Zenodo</title>

to

<title>{% block title %}{% endblock %}{% if self.title() %} | {% endif %}Zenodo</title>

The error is that the person who wrote this confused title for a variable when it is a block. Ref https://stackoverflow.com/questions/18720899/how-can-i-determine-if-a-jinja2-template-block-is-empty