Skip to content

Commit d1ceb1b

Browse files
authored
Disable reading time on TIL posts (#16)
1 parent 2d9ab71 commit d1ceb1b

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

templates/page.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
{% extends "after-dark/templates/page.html" %}
2+
3+
{% block content %}
4+
{% if 'tils' in page.path %}
5+
<style>
6+
.muted svg.i-clock,
7+
.muted svg.i-clock+span {
8+
display: none !important;
9+
}
10+
</style>
11+
{% endif %}
12+
{{ super() }}
13+
{% endblock %}
14+
215
{% block extra_footer %}
316
<script src="https://utteranc.es/client.js" repo="sinon/sinon.github.io" issue-term="url" label="comments"
417
theme="github-dark" crossorigin="anonymous" async>

templates/section.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
{% extends "index.html" %}
1+
{% extends "index.html" %}
2+
3+
{% block content %}
4+
<style>
5+
.tils-section .muted svg.i-clock,
6+
.tils-section .muted svg.i-clock+span {
7+
display: none !important;
8+
}
9+
</style>
10+
11+
<div class="section-content{% if section.title == 'TILs' or 'til' in section.slug %} tils-section{% endif %}">
12+
{{ super() }}
13+
</div>
14+
{% endblock %}

0 commit comments

Comments
 (0)