Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upValidator errors in the template #81
Conversation
| @@ -1,10 +1,10 @@ | |||
| <!doctype html> | |||
| <html xmlns="http://www.w3.org/1999/xhtml" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}> | |||
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml" {% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}> | |||
This comment has been minimized.
This comment has been minimized.
emmapeel2
Oct 25, 2019
Contributor
Here you add the language 'en', but the template will be used also in other languages, so maybe you need to add some template tags with 'if's like the one about the rtl and ltr text at the end of the same line:
{% if bag('alternatives', this.alt, 'direction') == 'text-right' %}dir="rtl"{% endif %}
(but of course different, related to the language)
Sorry, no idea how to fix this. It seems a problem of the plugin that generates anchors from the titles, there is a ticket open on the plugin bugtracker: |
PROTechThor commentedOct 19, 2019
•
edited
This is an attempt to fix this issue
The continuation of this fix is at this pull request.
@emmapeel2 @gusgustavo As seen here, there are several duplicate IDs. These duplicate IDs do not show up in the code, and I think this is because lektor automatically atrributes them based on the contents.lr file. From what I noticed, if headers have identical text, they automatically get identical IDs. Am I wrong? Is there anything I can do about it?