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

Page content is extending behind nav bar #71

Open
jamjahal opened this issue May 8, 2020 · 2 comments
Open

Page content is extending behind nav bar #71

jamjahal opened this issue May 8, 2020 · 2 comments

Comments

@jamjahal
Copy link

jamjahal commented May 8, 2020

Hi, I love this theme, thank you!

But I am running into an issue where the page content is being hidden by the menu bar on the left, and the contact page is actually going over the nav menu. Not on all pages (portfolio and intro are fine) but the rest are not making room for the nav bar.

Would love to know what is causing this.

Screen Shot 2020-05-07 at 5 38 34 PM

Screen Shot 2020-05-07 at 5 38 22 PM

@jimmychang851129
Copy link

As far as I know. You can refer to the file _sass/jekyll-theme-prologue

The width of the navbar and the section are declared in line 500, 644 respectively

Therefore, you can change the width to adjust to your need. Though I don't think this is the best solution.

@jimmychang851129
Copy link

jimmychang851129 commented May 15, 2020

I solved this problem by setting the width of header(line 500) to 18%, and the margin-left of main(line 644) and footer(around line 614 to 18%)

In the _includes/section.html I add the following code:

{%- if _title == "Profile" -%}
<section id="{{- _slug -}}" class="{{- _class -}}" style="margin-left:18%">
  <div class="container">
    {{- _photo -}}
    {{- _heading -}}
    {{- include.content -}}
  </div>
</section>
{%- else -%}
<section id="{{- _slug -}}" class="{{- _class -}}">
  <div class="container">
    {{- _photo -}}
    {{- _heading -}}
    {{- include.content -}}
  </div>
</section>
{%- endif -%}

In my case, I have created a profile.html in _sections/ directory. I changed the code in _includes/section.html. When the program try to render the profile.html page, I will add an additional attribute to the section: style="margin-left:18%", which obviously move the block to avoid colliding with the navbar.

In this case, the word in profile section won't be covered by the navbar

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

2 participants