more flexible implementation of TOC

This commit is contained in:
Yan Lin 2026-02-03 10:45:30 +01:00
parent e259b73404
commit 53cf411c2f
3 changed files with 27 additions and 23 deletions

View file

@ -2,9 +2,6 @@
title = "End-to-end Learning of Spatiotemporal Trajectories" title = "End-to-end Learning of Spatiotemporal Trajectories"
date = 2026-02-02 date = 2026-02-02
description = "" description = ""
[extra]
toc = true
+++ +++
End-to-end learning means training a model to perform a task from input to output, supervising only on how the output aligns with the task's ground truth. End-to-end learning means training a model to perform a task from input to output, supervising only on how the output aligns with the task's ground truth.
@ -21,6 +18,8 @@ For each category of tasks, we will give a general problem formulation and the g
> Schema overview of the three categories of end-to-end trajectory learning tasks. > Schema overview of the three categories of end-to-end trajectory learning tasks.
{{ toc() }}
## Trajectory Prediction ## Trajectory Prediction
Recall in the [introduction post](@/dl4traj/introduction/index.md) that a complete trajectory usually records the movement of the target from the beginning to the end of the movement process. Recall in the [introduction post](@/dl4traj/introduction/index.md) that a complete trajectory usually records the movement of the target from the beginning to the end of the movement process.

View file

@ -12,7 +12,10 @@
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %d, %Y") }}</time> <time datetime="{{ page.date }}">{{ page.date | date(format="%B %d, %Y") }}</time>
{% endif %} {% endif %}
</header> </header>
{% if page.extra.toc | default(value=false) %} <div class="content">
{% if page.content is containing("<!--TOC_PLACEHOLDER-->") %}
{% set parts = page.content | split(pat="<!--TOC_PLACEHOLDER-->") %}
{{ parts[0] | safe }}
<nav class="toc"> <nav class="toc">
<p class="toc-title">Table of Contents</p> <p class="toc-title">Table of Contents</p>
<ul> <ul>
@ -30,9 +33,10 @@
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>
{% endif %} {{ parts[1] | safe }}
<div class="content"> {% else %}
{{ page.content | safe }} {{ page.content | safe }}
{% endif %}
</div> </div>
</article> </article>
{% endblock content %} {% endblock content %}

View file

@ -0,0 +1 @@
<!--TOC_PLACEHOLDER-->