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

Add conditional for "View On GitHub" button #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sindastra
Copy link

Add conditional for "View On GitHub" button
Also added conditional for the <ul> or else if both are disabled it would show an empty box

Also added conditional for the <ul> or else if both are disabled it would show an empty box
@welcome
Copy link

welcome bot commented Sep 9, 2020

Welcome! Congrats on your first pull request to the Modernist theme. If you haven't already, please be sure to check out the contributing guidelines.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 25, 2020
@sindastra
Copy link
Author

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Well, bump?

@stale stale bot removed the wontfix label Dec 28, 2020
@parkr
Copy link
Contributor

parkr commented Feb 4, 2021

Hey @sindastra! Thanks for your patience. Could you tell me a bit more about why you want this to be conditional and not show for user pages?

@sindastra
Copy link
Author

Hi @parkr!

If you take a quick look at the code you'll see that it's basically improved logic: If neither is there to show, then don't show anything.

With the original logic, if neither is there to show, it will still display a box, however it will be empty.

Copy link

@davorpa davorpa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Is more or less like I did in hacker theme pages-themes/hacker#81

@marschr
Copy link

marschr commented Apr 17, 2024

Since this is still open, for the modernist theme I had to make a hacky assets/css/styles.scss file and add the following:

---
---

@import "{{ site.theme }}";

header > ul {
  display: none !important;
}

footer {
  display: none !important;
}

inspired from: pages-themes/cayman#79 (comment)

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

Successfully merging this pull request may close these issues.

4 participants