-
Notifications
You must be signed in to change notification settings - Fork 234
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
base: master
Are you sure you want to change the base?
Conversation
Also added conditional for the <ul> or else if both are disabled it would show an empty box
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. |
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? |
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? |
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. |
There was a problem hiding this 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
Since this is still open, for the modernist theme I had to make a hacky
inspired from: pages-themes/cayman#79 (comment) |
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