Skip to content

Commit a6e0446

Browse files
committed
small test for "additional variables in keystore"
1 parent 5049f6f commit a6e0446

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

documentation/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ plugins:
132132
selfhost_download: true
133133
selfhost_dir: 'theme_override'
134134
reload_scripts:
135+
- '#theme'
135136
- '#autostart'
136137
password_file: 'passwords.yml'
137138
additional_storage_file: 'additional_storage.yaml'

documentation/theme_override/main.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
hljs.highlightElement(el);
1111
});
1212
MathJax.typesetPromise();
13+
//small test for "additional variables in keystore"
14+
username = sessionStorage.getItem('username');
15+
if (username) {
16+
document.getElementById('show-user').textContent = username;
17+
}
1318
}
1419
if (DOMContentLoaded_fired) {
1520
runWhenDOMContentLoaded();
@@ -24,15 +29,16 @@
2429
{% endblock %}
2530

2631
{%- block footer_ext %}
27-
{%- if not config.theme.no_imprint %}
2832
<p class="w3-right w3-tiny">
33+
<span id="show-user"></span>
34+
{%- if not config.theme.no_imprint %}
2935
{%- if i18n_config and i18n_page_locale == "en" %}
3036
<a href="{{ (i18n_page_locale + '/imprint/') | url }}">Imprint</a>
3137
{%- else %}
3238
<a href="{{ 'imprint/' | url }}">Impressum</a>
3339
{%- endif %}
34-
</p>
3540
{%- endif %}
41+
</p>
3642
{%- endblock %}
3743

3844
{%- block top_buttons %}

0 commit comments

Comments
 (0)