Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit e64472c

Browse files
committed
Bug Fix: hypothesis and google analytics
* These were incorrectly exculded due to the improper use of appname at page load time.
1 parent 7d99809 commit e64472c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap

runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap/layout.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@
345345
</footer>
346346

347347

348-
{% if appname == "runestone" %}
348+
{% if dynamic_pages == 'True' %}
349+
{% raw %}
350+
{{ if request.application == 'runestone':}}
349351
<script type="text/javascript">
350352
var _gaq = _gaq || [];
351353
_gaq.push(['_setAccount', 'UA-32029811-1']);
@@ -358,7 +360,7 @@
358360
})();
359361
</script>
360362
<script async src="https://hypothes.is/embed.js"></script>
361-
363+
{{ pass }}
364+
{% endraw %}
362365
{% endif %}
363-
364366
{% endblock %}

0 commit comments

Comments
 (0)