Skip to content

Commit

Permalink
Moved ToC Menu to Sidebar (alshedivat#1582)
Browse files Browse the repository at this point in the history
Addressing alshedivat#1551 using the same sidebar as in alshedivat#1366, removing the inline ToC menu from the CV
  • Loading branch information
DavidKrassnig authored and wangmagg committed May 14, 2024
1 parent d2e5494 commit e2ba03f
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -47,13 +47,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 @@ -89,21 +82,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
5 changes: 5 additions & 0 deletions _pages/cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ redirect_to: /assets/pdf/MaggieWang_CV.pdf
=======
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.
<<<<<<< HEAD
>>>>>>> cd5138b (CV Restyled (#1339))
=======
toc:
sidebar: left
>>>>>>> 8883c9d (Moved ToC Menu to Sidebar (#1582))
---

0 comments on commit e2ba03f

Please sign in to comment.