Moved ToC Menu to Sidebar (#1582)

Addressing #1551 using the same sidebar as in #1366, removing the inline ToC menu from the CV
This commit is contained in:
Dr. David Krassnig 2023-09-17 21:03:21 +02:00 committed by GitHub
parent 53ad434ad2
commit 8883c9ddf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 22 deletions

View File

@ -10,13 +10,6 @@ layout: default
{% if page.description %}<p class="post-description">{{ page.description }}</p>{% endif %}
</header>
<h4>Table of contents</h4>
<ul class="timeline">
{% for entry in site.data.cv %}
<li><a href="#{{ entry.title }}"><span class="badge-toc">{{ entry.title }}</span></a></li>
{% endfor %}
</ul>
<article>
<div class="cv">
{% for entry in site.data.cv %}
@ -52,21 +45,6 @@ layout: default
{% if page.description %}<p class="post-description">{{ page.description }}</p>{% endif %}
</header>
<h4>Table of contents</h4>
<ul class="timeline">
{% for entry in site.data.resume %}
{% if site.jsonresume and site.jsonresume.size > 0 %}
{% unless site.jsonresume contains entry[0] %}
{% continue %}
{% endunless %}
{% endif %}
{% if entry[0] == "meta" or entry[1].size == 0 %}
{% continue %}
{% endif %}
<li><a href="#{{ entry[0] }}"><span class="badge-toc">{{ entry[0] | capitalize }}</span></a></li>
{% endfor %}
</ul>
<article>
<div class="cv">
{% for data in site.data.resume %}

View File

@ -6,4 +6,6 @@ nav: true
nav_order: 4
cv_pdf: example_pdf.pdf
description: This is a description of the page. You can modify it in 'pages/_cv.md'. You can also change or remove the top pdf download button.
toc:
sidebar: left
---