chore: move hidden sentiment div below article excerpt in newspaper template
The diff relocates the hidden sentiment display element from above the article-meta section to a position after the excerpt text within the article-content div, preserving its hidden state while adjusting DOM order for cleaner template structure.
This commit is contained in:
parent
719b31c465
commit
aa071db7ae
@ -164,7 +164,7 @@
|
||||
<h2 class="article-title">
|
||||
<a href="{{ article.link }}" target="_blank">{{ article.title }}</a>
|
||||
</h2>
|
||||
<div style="display: none">Sentiment: {{ article.sentiment }}</div>
|
||||
|
||||
<div class="article-meta">
|
||||
<span class="article-source">{{ article.feed_name }}</span>
|
||||
{% if article.author %}
|
||||
@ -179,6 +179,8 @@
|
||||
{% set clean_text = full_content|striptags %}
|
||||
{% set display_text = clean_text[:500] if article.content else clean_text[:300] %}
|
||||
{{ display_text }}{% if clean_text|length > (500 if article.content else 300) %}...{% endif %}
|
||||
|
||||
<div class="article-sentiment" style="display: none">Sentiment: {{ article.sentiment }}</div>
|
||||
</div>
|
||||
|
||||
{% set words = full_content.split() %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user