mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added language from localizations to HTML tag
This commit is contained in:
parent
eea31eb528
commit
6336e5055c
@ -362,6 +362,7 @@ macro `t`:
|
||||
|
||||
``` jinja
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "en",
|
||||
"edit.link.title": "Edit this page",
|
||||
"footer.previous": "Previous",
|
||||
"footer.next": "Next",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% import "partials/language.html" as lang %}
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js">
|
||||
<html lang="{{ lang.t('language') }}" class="no-js">
|
||||
<head>
|
||||
{% block site_meta %}
|
||||
<meta charset="utf-8">
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "en",
|
||||
"edit.link.title": "Edit this page",
|
||||
"footer.previous": "Previous",
|
||||
"footer.next": "Next",
|
||||
|
@ -23,7 +23,7 @@
|
||||
{% import "partials/language.html" as lang %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js">
|
||||
<html lang="{{ lang.t('language') }}" class="no-js">
|
||||
<head>
|
||||
|
||||
<!-- Block: metatags -->
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
<!-- Translations -->
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "en",
|
||||
"edit.link.title": "Edit this page",
|
||||
"footer.previous": "Previous",
|
||||
"footer.next": "Next",
|
||||
|
Loading…
Reference in New Issue
Block a user