put details/summary on main entry not reply context

This commit is contained in:
Kevin Marks 2016-06-21 22:12:21 -07:00 committed by GitHub
parent b31c98456b
commit 3d6cfbb0ab

View file

@ -1,6 +1,6 @@
{% for context in entry.reply_context %} {% for context in entry.reply_context %}
<article class="reply-context"> <article class="reply-context">
<details><summary><header> <header>
{% if context.author_photo %} {% if context.author_photo %}
<img src="{{context.author_photo|proxy_image}}"/> <img src="{{context.author_photo|proxy_image}}"/>
{% endif %} {% endif %}
@ -8,7 +8,7 @@
{{ context.author_name }} - {{ context.author_name }} -
{% endif %} {% endif %}
{{ context.permalink | domain_for_url }} {{ context.permalink | domain_for_url }}
</header></summary> </header>
{% if context.title %} {% if context.title %}
<h1>{{ context.title|e }}</h1> <h1>{{ context.title|e }}</h1>
{% endif %} {% endif %}
@ -17,7 +17,7 @@
{{ context.content_cleaned | proxy_all | add_preview }} {{ context.content_cleaned | proxy_all | add_preview }}
</div> </div>
{% endif %} {% endif %}
</details><footer> <footer>
<a class="permalink" href="{{ context.permalink }}"> <a class="permalink" href="{{ context.permalink }}">
<time datetime="{{ context.published | isoformat }}"> <time datetime="{{ context.published | isoformat }}">
{{ context.published | relative_time }} {{ context.published | relative_time }}
@ -28,7 +28,7 @@
{% endfor %} {% endfor %}
<article> <article>
<header> <details><summary><header>
{% if entry.author_photo %} {% if entry.author_photo %}
<img src="{{entry.author_photo|proxy_image}}"/> <img src="{{entry.author_photo|proxy_image}}"/>
{% endif %} {% endif %}
@ -45,7 +45,7 @@
{% if entry.title %} {% if entry.title %}
<h1>{{ entry.title }}</h1> <h1>{{ entry.title }}</h1>
{% endif %} {% endif %}
</summary>
{% if entry.get_property('event') %} {% if entry.get_property('event') %}
<p> <p>
{% if entry.get_property('start') %} {% if entry.get_property('start') %}
@ -71,7 +71,7 @@
</div> </div>
{% endif %} {% endif %}
</details>
<footer> <footer>
{% set location = entry.get_property('location') %} {% set location = entry.get_property('location') %}
{% if location and 'name' in location %} {% if location and 'name' in location %}