-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnote.html
58 lines (51 loc) · 1.41 KB
/
note.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
layout: default
---
<article>
<div>
<h1>{{ page.title }}</h1>
<time 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>
{% capture time %}{{ content | reading_time }}{% endcapture %}
<p>
This article will take {{ time }} {% if time == '1' %}minute{% else
%}minutes{% endif %} to read.
</p>
</div>
<div id="notes-entry-container">
<content> {{ content }} </content>
<side style="font-size: 0.9em">
<h3 style="margin-bottom: 1em">Notes mentioning this note</h3>
{% if page.backlinks.size > 0 %}
<div
style="display: grid; grid-gap: 1em; grid-template-columns: repeat(1fr)"
>
{% for backlink in page.backlinks %}
<div class="backlink-box">
<a
class="internal-link"
href="{{ site.baseurl }}{{ backlink.url }}{%- if site.use_html_extension -%}.html{%- endif -%}"
>{{ backlink.title }}</a
><br />
<div style="font-size: 0.9em">
{{ backlink.excerpt | strip_html | truncatewords: 20 }}
</div>
</div>
{% endfor %}
</div>
{% else %}
<div style="font-size: 0.9em">
<p>There are no notes linking to this note.</p>
</div>
{% endif %}
</side>
</div>
</article>
<hr />
<p>
Here are all the notes in this garden, along with their links, visualized as a
graph.
</p>
{% include notes_graph.html %}