Add `spaceless` tag to remove whitespace from iterating thoughts
* Also, removes line of dead code (get_season never existed)
This commit is contained in:
parent
30918a179f
commit
7d294523a1
|
@ -25,6 +25,7 @@
|
||||||
<meta content="Thoughts" property="og:title">
|
<meta content="Thoughts" property="og:title">
|
||||||
<meta content="Thoughts" name="twitter:title">
|
<meta content="Thoughts" name="twitter:title">
|
||||||
|
|
||||||
|
{% spaceless %}
|
||||||
{% for thought in thoughts %}
|
{% for thought in thoughts %}
|
||||||
{% if thought.uuid == highlighted %}
|
{% if thought.uuid == highlighted %}
|
||||||
<meta content="{{ thought.text }}" property="og:description">
|
<meta content="{{ thought.text }}" property="og:description">
|
||||||
|
@ -36,6 +37,8 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endspaceless %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
@ -68,7 +71,7 @@
|
||||||
{% if thought.extended_text.strip %}
|
{% if thought.extended_text.strip %}
|
||||||
<span class="extended-text text">{{ thought.extended_text|urlize }}</span>
|
<span class="extended-text text">{{ thought.extended_text|urlize }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if file_type == "png" or file_type == "jpeg" %}
|
{% if file_type == "png" or file_type == "jpeg" or file_type == "jpg" %}
|
||||||
<img src="{{ thought.media.url }}" class="extended-media" alt="{{ thought.media_alt }}">
|
<img src="{{ thought.media.url }}" class="extended-media" alt="{{ thought.media_alt }}">
|
||||||
{% elif file_type == "m4a" or file_type == "mp3" or file_type == "aac" %}
|
{% elif file_type == "m4a" or file_type == "mp3" or file_type == "aac" %}
|
||||||
<audio controls src="{{ thought.media.url }}" class="extended-media"></audio>
|
<audio controls src="{{ thought.media.url }}" class="extended-media"></audio>
|
||||||
|
@ -103,7 +106,6 @@
|
||||||
{{ thought.posted|date:"M d, Y" }},
|
{{ thought.posted|date:"M d, Y" }},
|
||||||
|
|
||||||
UTC{{ thought.get_offset_hours }}
|
UTC{{ thought.get_offset_hours }}
|
||||||
{{ thought.get_season }}
|
|
||||||
{% endtimezone %}
|
{% endtimezone %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
{{ thought.object.posted|date:"M d, Y" }},
|
{{ thought.object.posted|date:"M d, Y" }},
|
||||||
|
|
||||||
UTC{{ thought.object.get_offset_hours }}
|
UTC{{ thought.object.get_offset_hours }}
|
||||||
{{ thought.object.get_season }}
|
|
||||||
{% endtimezone %}
|
{% endtimezone %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue