Skip to content

Commit b531b86

Browse files
authored
Fix README.md
1 parent 66071cb commit b531b86

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

mdbook-tera-backend/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ template_dir = "theme/templates"
3636
Create your template files in the same directory as your book.
3737

3838
```html
39-
<!-- ./theme/templates/language_list.html -->
40-
<ul>
41-
{% for identifier, language_name in get_context(key="output.i18n.languages")
42-
%}
43-
<li>{{ identifier }}: {{ language_name }}</li>
44-
{% endfor %}
45-
</ul>
39+
<!-- ./theme/templates/hello_world.html -->
40+
<div>
41+
Hello world!
42+
</div>
4643
```
4744

4845
### Using templates in `index.hbs`
@@ -54,7 +51,7 @@ it to ignore Tera templates using `{{{{raw}}}}` blocks:
5451
{{{{raw}}}}
5552
{% set current_language = ctx.config.book.language %}
5653
<p>Current language: {{ current_language }}</p>
57-
<p>All languages: {% include "language_list.html" %}</p>
54+
{% include "hello_world.html" %}
5855
{{{{/raw}}}}
5956
```
6057

0 commit comments

Comments
 (0)