-
Notifications
You must be signed in to change notification settings - Fork 0
Disable reading time on TIL posts #16
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1,14 @@ | ||||||||||||||
| {% extends "index.html" %} | ||||||||||||||
| {% extends "index.html" %} | ||||||||||||||
|
|
||||||||||||||
| {% block content %} | ||||||||||||||
| <style> | ||||||||||||||
| .tils-section .muted svg.i-clock, | ||||||||||||||
| .tils-section .muted svg.i-clock+span { | ||||||||||||||
| display: none !important; | ||||||||||||||
| } | ||||||||||||||
| </style> | ||||||||||||||
|
|
||||||||||||||
|
Comment on lines
+4
to
+10
|
||||||||||||||
| <style> | |
| .tils-section .muted svg.i-clock, | |
| .tils-section .muted svg.i-clock+span { | |
| display: none !important; | |
| } | |
| </style> |
Copilot
AI
Aug 30, 2025
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.
The condition 'til' in section.slug will always evaluate to True because it's not properly grouped with the first condition. It should be (section.title == 'TILs') or ('til' in section.slug) to work as intended.
| <div class="section-content{% if section.title == 'TILs' or 'til' in section.slug %} tils-section{% endif %}"> | |
| <div class="section-content{% if (section.title == 'TILs') or ('til' in section.slug) %} tils-section{% endif %}"> |
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.
This CSS rule is duplicated between templates/section.html and templates/page.html. Consider extracting this to a shared CSS file or creating a reusable template block to avoid code duplication.