kcl-digital-humanities-garden/_layouts/note.html
2021-05-17 22:02:22 -04:00

63 lines
2.7 KiB
HTML

---
layout: default
---
<div class="flex">
<article id="note-container" class="w-50 w-100-m pa3 pr0-l mt7-m relative z-1">
<div class="container bg-white min-vh-100-header-comp pa3 br4 flex flex-column justify-between">
<header>
<div class="note-meta flex f7 lh-copy justify-between code items-center" data-status="{{ page.status }}">
{% if page.date_created %}
<time class="ml3 flex-auto" datetime="{{ page.date_created | date_to_xmlschema }}">{% if page.type != 'pages' %}
Created <br> {{ page.date_created | date: "%B %-d, %Y" }}
{% endif %}
</time>
{% else %}
<time class="ml3 flex-auto" datetime="{{ page.date | date_to_xmlschema }}">{% if page.type != 'pages' %}
Created <br> {{ page.date | date: "%B %-d, %Y" }}
{% endif %}
</time>
{% endif %}
<time datetime="{{ page.last_modified_at | date_to_xmlschema }}">{% if page.type != 'pages' %}
Last updated <br> {{ page.last_modified_at | date: "%B %-d, %Y" }}
{% endif %}
</time>
</div>
<h1 class="note-title normal relative work-sans-light f-5 f1-m mb4 lh-solid">{{ page.title }}</h1>
</header>
<div id="notes-entry-container" class="flex-auto">
<div class="note-contents f5 lh-copy">
{{ content }}
</div>
</div>
<aside class="bt b--background bw1 nl3 nr3 ph3 mt5">
<h2 class="normal f1 f2-m mv4 work-sans-light lh-solid">Notes mentioning this note</h2>
{% if page.backlinks.size > 0 %}
<div class="flex flex-wrap">
{% for backlink in page.backlinks %}
<div class="w-50 flex">
<div class="shadow-solid-accent mb2 mr2 br4 pa3 flex flex-column">
<h3 class="mt0 f5 mb2"><a class="internal-link" href="{{ backlink.url | relative_url }}{%- if site.use_html_extension -%}.html{%- endif -%}">{{ backlink.title }}</a></h3>
<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>
{% else %}
<div>
<p class="f7">
There are no notes linking to this note.
</p>
</div>
{% endif %}
</aside>
</div>
<button id="note-expand" class="absolute top-1 pointer nr4 mt3 right-0 bg-background button-reset bn foreground-text "></button>
</article>
<div class="fixed top-0 right-0 w-50 vh-100 w-100-m vh-50-m">
{% include notes_graph.html %}
</div>
</div>