-
Notifications
You must be signed in to change notification settings - Fork 487
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 ability to have Colab badges on pages #210
Conversation
Nice! I think we need a way to turn them on and off per page. If on for the site, it shouldn't be added to pages that aren't from notebooks. And needs some docs including in readme |
@jph00 I made the following changes:
LMK what you think |
@@ -5,6 +5,9 @@ | |||
<div class="post-header"> | |||
<a id="{{page.title}}"></a> | |||
<h1 class="post-title-main">{{ page.title }}</h1> | |||
{% if page.nb_path %} |
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.
@jph00 this line of code prevents non-notebook documents from getting a Colab badge
EDIT: this is ready for review now
This closes issue #209