chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
525dedb
)
theme: let every page have its language
author
Paolo Miotto
<pauli@muciu.it>
Sun, 3 Dec 2017 16:10:58 +0000
(17:10 +0100)
committer
Paolo Miotto
<pauli@muciu.it>
Sun, 3 Dec 2017 16:10:58 +0000
(17:10 +0100)
pelican-theme/templates/base.html
patch
|
blob
|
history
diff --git
a/pelican-theme/templates/base.html
b/pelican-theme/templates/base.html
index 4a180600be00d5fde1f46972ce8b05aff027718f..e584c2a730d8f3df2d9a4907727a58623e544f6b 100644
(file)
--- a/
pelican-theme/templates/base.html
+++ b/
pelican-theme/templates/base.html
@@
-1,5
+1,5
@@
<!DOCTYPE html>
-<html lang="{
{ DEFAULT_LANG }
}">
+<html lang="{
% if page and page.lang %}{{ page.lang }}{% elif article and article.lang %}{{ article.lang }}{% else %}{{ DEFAULT_LANG }}{%endif %
}">
<head>
{% block head %}
<meta charset="UTF-8" />