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

sidebar content for multiple pages - resume css #318

Open
gzahn opened this issue Sep 7, 2023 · 0 comments
Open

sidebar content for multiple pages - resume css #318

gzahn opened this issue Sep 7, 2023 · 0 comments

Comments

@gzahn
Copy link

gzahn commented Sep 7, 2023

I've been browsing the issue threads for a while to try to solve this and only one got close, :
#15 (comment)

I'm in the same boat. I have an academic CV that is more than 2 pages and I would like to add sidebar content to multiple pages.
The solution you gave in that issue thread works great if you only have 2 pages in your resume, because it places the new sidebar content on the last page. How could I get new sidebar content on, say, page 2 of 5? When I tried moving this chunk around, it totally screws everything else up. Thanks!

Your solution was some css:
/* sidebar for page2 */

.extra-sidebar {
top: 0;
padding-top: 0;
}

.extra-sidebar h1 {
display: none;
}

.extra-sidebar .level2:first-of-type {
margin-top: 0;
}

Then in the markdown:

Second page sidebar {.aside .extra-sidebar}

Title

"sidebar2 content"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant