diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-06 12:52:35 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-06 12:52:35 -0700 |
commit | 53f714b7f3ac2523a4ce98dcb1a1b8a8ee687c43 (patch) | |
tree | a0af3069daec9c7e5b7c2944aee8a107c40a1847 /theme | |
parent | d19906d5b2638cd55c1b65eeab3327d7533ebca1 (diff) | |
download | gitbook-53f714b7f3ac2523a4ce98dcb1a1b8a8ee687c43.zip gitbook-53f714b7f3ac2523a4ce98dcb1a1b8a8ee687c43.tar.gz gitbook-53f714b7f3ac2523a4ce98dcb1a1b8a8ee687c43.tar.bz2 |
Add base for generating languages index
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/langs.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/theme/templates/langs.html b/theme/templates/langs.html new file mode 100644 index 0000000..238889d --- /dev/null +++ b/theme/templates/langs.html @@ -0,0 +1,19 @@ +{% extends "layout.html" %} + +{% block title %}{{ title }}{% endblock %} + +{% block content %} +<div class="book-langs-index"> + <h1>{{ title }}</h1> + + <ul class="languages"> + {% for lang in langs %} + <li> + <a href="{{ basePath}}/{{ lang.path }}">{{ lang.title }}</a> + </li> + {% endfor %} + </ul> +</div> +{% endblock %} + +{% block javascript %}{% endblock %}
\ No newline at end of file |