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

54 lines
2.0 KiB
HTML
Raw Normal View History

2021-03-11 03:33:55 +00:00
---
layout: default
---
<div class="flex">
2021-03-25 02:18:10 +00:00
<article class="w-50 pa3 pr0">
2021-03-30 02:13:11 +00:00
<div class="container bg-white min-vh-100-header-comp pa3 br4 flex flex-column justify-between">
<header>
2021-03-25 02:18:10 +00:00
<div class="note-meta flex justify-between">
{% if page.date_created %}
<time class="code dib f7 pb2 flex" datetime="{{ page.date_created | date_to_xmlschema }}">{% if page.type != 'pages' %}
Created on {{ page.date_created | date: "%B %-d, %Y" }}
{% endif %}
</time>
2021-03-20 15:54:21 +00:00
{% endif %}
2021-03-25 02:18:10 +00:00
<time class="code dib f7 pb2" datetime="{{ page.last_modified_at | date_to_xmlschema }}">{% if page.type != 'pages' %}
Last updated on {{ page.last_modified_at | date: "%B %-d, %Y" }}
{% endif %}
</time>
</div>
2021-03-30 02:13:11 +00:00
<h1 class="normal work-sans-light f-6 mb4 lh-solid">{{ page.title }}</h1>
2021-03-25 02:18:10 +00:00
</header>
2021-03-11 03:33:55 +00:00
2021-03-30 02:13:11 +00:00
<div id="notes-entry-container" class="flex-auto">
2021-03-25 02:18:10 +00:00
<div class="note-contents f6 lh-copy">
{{ content }}
</div>
2021-03-30 02:13:11 +00:00
</div>
2021-03-11 03:33:55 +00:00
2021-03-30 02:13:11 +00:00
<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">
{% 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>
2021-03-25 02:18:10 +00:00
</div>
2021-03-30 02:13:11 +00:00
{% endfor %}
</div>
{% else %}
<div>
<p class="f7">
There are no notes linking to this note.
</p>
</div>
{% endif %}
</aside>
2021-03-11 03:33:55 +00:00
</div>
</article>
2021-03-25 02:18:10 +00:00
<div class="fixed top-0 right-0 w-50 vh-100">
2021-03-15 22:22:28 +00:00
{% include notes_graph.html %}
2021-03-11 03:33:55 +00:00
</div>
</div>