Have syndications infer the correct Site from their URL rather than require an explicit Profile reference

This commit is contained in:
Danielle McLean 2018-06-28 20:51:43 +10:00
parent ac22c826cb
commit 556329d5fa
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
3 changed files with 57 additions and 16 deletions

View file

@ -43,8 +43,8 @@
{% 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}}<i class="{{ s.site.icon }}" aria-hidden="true"></i>
{{i}}{{ s.site.domain }}
{{i}}</a>
{% endfor %}
{{i}}</div>