Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved ToC Menu to Sidebar #1582

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
---