Skip to content

Add conditional for "View On GitHub" button#13

Open
sindastra wants to merge 2 commits into
pages-themes:masterfrom
sindastra:master
Open

Add conditional for "View On GitHub" button#13
sindastra wants to merge 2 commits into
pages-themes:masterfrom
sindastra:master

Conversation

@sindastra

Copy link
Copy Markdown

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

welcome Bot commented Sep 9, 2020

Copy link
Copy Markdown

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

stale Bot commented Dec 25, 2020

Copy link
Copy Markdown

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
Copy Markdown
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

parkr commented Feb 4, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

@davorpa davorpa left a comment

Copy link
Copy Markdown

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

marschr commented Apr 17, 2024

Copy link
Copy Markdown

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