kcl-digital-humanities-garden/_layouts/note.html

49 lines
1.6 KiB
HTML
Raw Normal View History

2021-03-11 03:33:55 +00:00
---
layout: default
---
<div class="flex">
<article class="w-50">
2021-03-15 22:22:28 +00:00
<header class="mb2">
2021-03-11 03:33:55 +00:00
<h1>{{ page.title }}</h1>
2021-03-19 01:49:17 +00:00
<time class="code dib f7 ph3 pv2 ba br-pill" datetime="{{ page.date_created | date_to_xmlschema }}">{% if page.type != 'pages' %}
Created on {{ page.date_created | date: "%B %-d, %Y" }}
{% endif %}
</time>
</header>
2021-03-15 22:22:28 +00:00
<time class="code dib f7 ph3 pv2 ba br-pill" datetime="{{ page.last_modified_at | date_to_xmlschema }}">{% if page.type != 'pages' %}
2021-03-11 03:33:55 +00:00
Last updated on {{ page.last_modified_at | date: "%B %-d, %Y" }}
{% endif %}
</time>
2021-03-15 22:22:28 +00:00
</header>
2021-03-11 03:33:55 +00:00
<div id="notes-entry-container">
2021-03-15 19:49:03 +00:00
<div class="note-contents lh-copy">
2021-03-11 03:33:55 +00:00
{{ content }}
2021-03-12 01:58:04 +00:00
</div>
2021-03-11 03:33:55 +00:00
2021-03-15 22:22:28 +00:00
<aside class="bt b--dark-green">
<h3 class="mb3">Notes mentioning this note</h3>
2021-03-11 03:33:55 +00:00
{% if page.backlinks.size > 0 %}
2021-03-15 22:22:28 +00:00
<div class="flex">
2021-03-11 03:33:55 +00:00
{% for backlink in page.backlinks %}
2021-03-15 22:22:28 +00:00
<div class="w-50 mr2 pa2 ba b--dark-green br3">
<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>
2021-03-11 03:33:55 +00:00
</div>
{% endfor %}
</div>
{% else %}
<div>
2021-03-15 22:22:28 +00:00
<p class="f7">
2021-03-11 03:33:55 +00:00
There are no notes linking to this note.
</p>
</div>
{% endif %}
2021-03-15 22:22:28 +00:00
</aside>
2021-03-11 03:33:55 +00:00
</div>
</article>
<div class="w-50">
2021-03-15 22:22:28 +00:00
{% include notes_graph.html %}
2021-03-11 03:33:55 +00:00
</div>
</div>