Add support for localizing UI text with a _data file

This commit is contained in:
Michael Rose
2016-03-09 16:33:27 -05:00
parent 927b3d36ff
commit ea8fb6fe33
7 changed files with 48 additions and 13 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<section id="table-of-contents" class="toc">
<header><h3><i class="fa fa-{{ include.icon | default: 'book' }}"></i> {{ include.title | default: "Overview" }}</h3></header>
<header><h3><i class="fa fa-{{ include.icon | default: 'book' }}"></i> {{ include.title | default: site.data.ui-text.locale[site.locale].toc_label }}</h3></header>
<div id="drawer" markdown="1">
* Auto generated table of contents
{:toc}