developing story mark

This commit is contained in:
Nemo 2023-06-10 13:26:26 +05:30
parent 123d7d814b
commit 9f0608862c
3 changed files with 9 additions and 4 deletions

View File

@ -10,7 +10,7 @@
- [ ] Font adjustments
- [ ] Clear "read articles"
- [x] Redirect 404 articles to upstream
- [ ] Add sign for "developing story"
- [x] Add sign for "developing story"
- [ ] Fix tap target size in bottom footer.
- [ ] Make "/" in bottom footer using CSS after
- [ ] Check color accessibility for viewed tags.

7
_includes/story.html Normal file
View File

@ -0,0 +1,7 @@
<details data-hash="{{include.story.id}}-{{include.story.date | date: '%s'}}">
<summary>
<h3>{{include.story.title | strip}}</h3>
{% if include.story.content.downcase contains "developing story" %}<span title="Developing Story"></span>{%endif%}
</summary>
<div class="details-content">{{include.story.content}}</div>
</details>

View File

@ -13,9 +13,7 @@ layout: default
{% if post.topics and post.days_ago < 2 and post.topics.first == topic %}
{% unless post.sources contains "PTI" or post.sources contains "IE" %}
<details data-hash="{{post.id}}-{{post.date | date: '%s'}}"><summary><h3>{{post.title | strip}}</h3></summary>
<div class="details-content">{{post.content}}</div>
</details>
{% include_cached story.html story=post %}
{% endunless %}
{%endif%}