Skip to content

Commit

Permalink
feat: add lang to html
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Nov 1, 2019
1 parent 68705bf commit 26a099b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/layout.pug
Expand Up @@ -93,7 +93,7 @@ mixin footer-nav(prev, next)
//-
doctype html
html
html(lang=meta.lang)
head
meta(charset='utf-8')
- for (var i in styles)
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -214,6 +214,7 @@ function relayout (files, ms, done) {
}

meta.disqus = addDisqus(fname, meta)
meta.lang = meta.lang || 'en';
const key = [ pugData, locals, file ]

file.contents = memoize(['pugdata', key], () => {
Expand Down

0 comments on commit 26a099b

Please sign in to comment.