Skip to content
Snippets Groups Projects
Unverified Commit 8da77783 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Add dir attribute to the html tag, ltr/rtl. (#3728)

Fixes #3726
parent 6ad8c0e3
No related branches found
No related tags found
1 merge request!54Merge 5.3.1
{% load i18n static wagtailcore_tags wagtailimages_tags navigation_tags util_tags hijack cookieconsent_tags %}<!doctype html>
{% wagtail_site as current_site %}
{% get_current_language as LANGUAGE_CODE %}
<html class="no-js" lang="{{ LANGUAGE_CODE }}">
{% get_current_language_bidi as LANGUAGE_BIDI %}
<html class="no-js" lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
<head>
{# TODO fallbacks if page is not defined e.g. for 404 page #}
<meta charset="utf-8">
......
{% load static cache wagtailcore_tags wagtailimages_tags navigation_tags util_tags cookieconsent_tags i18n %}<!doctype html>
{% wagtail_site as current_site %}
{% get_current_language as LANGUAGE_CODE %}
<html class="no-js" lang="{{ LANGUAGE_CODE }}">
{% get_current_language_bidi as LANGUAGE_BIDI %}
<html class="no-js" lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
<head>
{# TODO fallbacks if page is not defined e.g. for 404 page #}
<meta charset="utf-8">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment