Skip to content

Commit a8a0550

Browse files
author
jordanmccullough
committed
Support language definition via template and config default
1 parent 0537b78 commit a8a0550

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ include:
2525
- _javascript
2626

2727
markdown: rdiscount
28+
29+
# Custom site configuration
30+
lang: en

_layouts/bare.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44

55
<!DOCTYPE html>
6-
<html>
6+
<html lang="{% if page.lang %}{{ page.lang }}{% else %}{{ site.lang }}{% endif %}">
77
<head>
88
<title>{% if page.title %}{{ page.title }} • {% endif %}{{ site.title }}</title>
99
{% if page.description %}

0 commit comments

Comments
 (0)