We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b52e7 commit b29c354Copy full SHA for b29c354
content/about/project.md
@@ -1,8 +1,9 @@
1
+++
2
title = "The CodeRefinery project"
3
-template = "page-with-toc.html"
4
5
+<!-- toc -->
6
+
7
## Objectives
8
9
CodeRefinery improves science by providing training and infrastructure
templates/page-with-toc.html
templates/page.html
@@ -1,3 +1,5 @@
+{% import "macros.html" as macros %}
{% extends "base.html" %}
{% block content %}
@@ -6,6 +8,6 @@ <h1>{{ page.title }}</h1>
{% endif %}
10
{% if page.content %}
- {{ page.content | safe }}
11
+ {{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe }}
12
13
{% endblock content %}
0 commit comments