diff --git a/content/demo/index.md b/content/demo/index.md index 66f6794..a283693 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -1,6 +1,7 @@ +++ title = "Demo Page" [extra] +go_to_top = true styles = ["demo/demo.css"] scripts = ["demo/demo.js"] katex = true diff --git a/templates/base.html b/templates/base.html index bbec753..ee0f2d5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -24,6 +24,11 @@ {%- endif -%}
{% block custom %}{% endblock custom %} + {%- if page.extra.go_to_top or section.extra.go_to_top -%} +
+ +
+ {%- endif -%} {% block content %}{% endblock content %} {% include "partials/extra_features.html" %}