notes and colophon

This commit is contained in:
Garry Ing
2021-03-31 23:56:11 -04:00
parent 14d363f87b
commit eb0db9f450
4 changed files with 28 additions and 8 deletions

View File

@ -29,11 +29,14 @@ layout: default
<aside class="bt b--washed-green bw1 nl3 nr3 ph3 mt5">
<h3 class="normal f1 mt5 work-sans-light mb4">Notes mentioning this note</h3>
{% if page.backlinks.size > 0 %}
<div class="flex">
<div class="flex flex-wrap">
{% for backlink in page.backlinks %}
<div class="w-50 mr2 pa3 ba b--moon-gray br4">
<h4 class="mt0 mb2"><a class="internal-link" href="{{ backlink.url | relative_url }}{%- if site.use_html_extension -%}.html{%- endif -%}">{{ backlink.title }}</a></h4>
<div class="f7 lh-copy">{{ backlink.excerpt | strip_html | truncatewords: 20 | remove: '[[' | remove: ']]' }}</div>
<div class="w-50 flex">
<div class="shadow-solid-accent mb2 mr2 br4 pa3 flex flex-column">
<h4 class="mt0 mb2"><a class="internal-link" href="{{ backlink.url | relative_url }}{%- if site.use_html_extension -%}.html{%- endif -%}">{{ backlink.title }}</a></h4>
<div class="f7 lh-copy mb3 flex-auto">{{ backlink.excerpt | strip_html | truncatewords: 20 | remove: '[[' | remove: ']]' }}</div>
<div class="f7 light-silver">{{ backlink.url }}</div>
</div>
</div>
{% endfor %}
</div>