Skip to content

Commit 8883c9d

Browse files
Moved ToC Menu to Sidebar (alshedivat#1582)
Addressing alshedivat#1551 using the same sidebar as in alshedivat#1366, removing the inline ToC menu from the CV
1 parent 53ad434 commit 8883c9d

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

_layouts/cv.html

-22
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ <h1 class="post-title">{{ page.title }} {% if page.cv_pdf %}<a href="{{ page.cv_
1010
{% if page.description %}<p class="post-description">{{ page.description }}</p>{% endif %}
1111
</header>
1212

13-
<h4>Table of contents</h4>
14-
<ul class="timeline">
15-
{% for entry in site.data.cv %}
16-
<li><a href="#{{ entry.title }}"><span class="badge-toc">{{ entry.title }}</span></a></li>
17-
{% endfor %}
18-
</ul>
19-
2013
<article>
2114
<div class="cv">
2215
{% for entry in site.data.cv %}
@@ -52,21 +45,6 @@ <h1 class="post-title">{{ page.title }} {% if page.cv_pdf %}<a href="{{ page.cv_
5245
{% if page.description %}<p class="post-description">{{ page.description }}</p>{% endif %}
5346
</header>
5447

55-
<h4>Table of contents</h4>
56-
<ul class="timeline">
57-
{% for entry in site.data.resume %}
58-
{% if site.jsonresume and site.jsonresume.size > 0 %}
59-
{% unless site.jsonresume contains entry[0] %}
60-
{% continue %}
61-
{% endunless %}
62-
{% endif %}
63-
{% if entry[0] == "meta" or entry[1].size == 0 %}
64-
{% continue %}
65-
{% endif %}
66-
<li><a href="#{{ entry[0] }}"><span class="badge-toc">{{ entry[0] | capitalize }}</span></a></li>
67-
{% endfor %}
68-
</ul>
69-
7048
<article>
7149
<div class="cv">
7250
{% for data in site.data.resume %}

_pages/cv.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ nav: true
66
nav_order: 4
77
cv_pdf: example_pdf.pdf
88
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.
9+
toc:
10+
sidebar: left
911
---

0 commit comments

Comments
 (0)