diff options
author | Erik Michelson | 2020-07-03 00:06:03 +0200 |
---|---|---|
committer | Erik Michelson | 2020-07-03 00:06:03 +0200 |
commit | ee4210a5115e29d02bb1ae8fc6297c2c318eb24b (patch) | |
tree | e4b88b2daa51c49f05718cc0bb559acdef826843 /public | |
parent | 3cc957a88b3b434edbc9db072c7259d188333c9a (diff) |
Added dynamic lang-attr to pretty.ejs
CodiMD currently only uses the 'lang' attribute in YAML-metadata of a note for setting certain js-elements of the markdown-renderer. This commit adds the chosen lang into the published version of a note.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Diffstat (limited to '')
-rw-r--r-- | public/views/pretty.ejs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 2cf96a7b..51900a4a 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html lang="<%= lang || "en" %>"> <head> <meta charset="utf-8"> |