Move cats and syndications back into the card, shrinking them down to avoid taking up too much vertical space

pull/1/head
Danielle McLean 4 years ago
parent dee64f130e
commit 778a9c870d
Signed by: 00dani
GPG Key ID: 8EB789DDF3ABD240
  1. 25
      entries/jinja2/entries/h-entry.html
  2. 2
      entries/static/entries/css/h-entry.styl

@ -20,18 +20,6 @@
{{i}}<i class="fas fa-link" aria-hidden="true"></i>
{{i}}{{ entry.short_url | friendly_url }}
{{i}}</a>
{% for c in entry.cats.all() %}
{{i}}<a class="p-category" href="{{ c.url }}">
{{i}}<i class="fas fa-paw" aria-hidden="true"></i>
{{i}}{{ c.name }}
{{i}}</a>
{% endfor %}
{% for s in entry.syndications.all() %}
{{i}}<a class="u-syndication" href="{{ s.url }}">
{{i}}<i class="{{ s.profile.site.icon }}" aria-hidden="true"></i>
{{i}}{{ s.profile }}
{{i}}</a>
{% endfor %}
{{i}}</aside>
{{i}}<div class="card">
@ -46,6 +34,19 @@
{{i}}<div class="e-content">
{{i}}{{ entry.content | markdown }}
{{i}}</div>
{% for c in entry.cats.all() %}
{{i}}<a class="p-category card-link" href="{{ c.url }}">
{{i}}<i class="fas fa-paw" aria-hidden="true"></i>
{{i}}{{ c.name }}
{{i}}</a>
{% endfor %}
{% for s in entry.syndications.all() %}
{{i}}<a class="u-syndication card-link" href="{{ s.url }}">
{{i}}<i class="{{ s.profile.site.icon }}" aria-hidden="true"></i>
{{i}}{{ s.profile }}
{{i}}</a>
{% endfor %}
{{i}}</div>
{{i}}</div>

@ -42,3 +42,5 @@ ol.entries, div.entry
max-width 100%
> :last-child
margin-bottom 0
.card-link
font-size 0.8rem

Loading…
Cancel
Save