Skip to content

Commit

Permalink
Moved ToC Menu to Sidebar (#1582)
Browse files Browse the repository at this point in the history
Addressing #1551 using the same sidebar as in #1366, removing the inline ToC menu from the CV
  • Loading branch information
DavidKrassnig authored Sep 17, 2023
1 parent 53ad434 commit 8883c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
22 changes: 0 additions & 22 deletions _layouts/cv.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ <h1 class="post-title">{{ page.title }} {% if page.cv_pdf %}<a href="{{ page.cv_
{% 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 %}
Expand Down Expand Up @@ -52,21 +45,6 @@ <h1 class="post-title">{{ page.title }} {% if page.cv_pdf %}<a href="{{ page.cv_
{% 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 %}
Expand Down
2 changes: 2 additions & 0 deletions _pages/cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

0 comments on commit 8883c9d

Please sign in to comment.