design update
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
||||
{%- include head.html -%}
|
||||
<body class="dark-green sans-serif links-dark-green bg-washed-green">
|
||||
<body class="dark-green sans-serif bg-washed-green">
|
||||
{%- include header.html -%}
|
||||
<main aria-label="Content">
|
||||
<main class="links-dark-green" aria-label="Content">
|
||||
{{ content }}
|
||||
</main>
|
||||
{%- include footer.html -%}
|
||||
|
@ -2,49 +2,53 @@
|
||||
layout: default
|
||||
---
|
||||
<div class="flex">
|
||||
<article class="w-50">
|
||||
<header class="mb2">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% if page.date_created %}
|
||||
<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" }}
|
||||
<article class="w-50 pa3 pr0">
|
||||
<div class="container bg-white pa3 br4">
|
||||
<header class="mb2 b--washed-green">
|
||||
<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>
|
||||
{% endif %}
|
||||
</time>
|
||||
{% endif %}
|
||||
<time class="code dib f7 ph3 pv2 ba br-pill" 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>
|
||||
</header>
|
||||
<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>
|
||||
<h1 class="normal f-6 lh-solid">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<div id="notes-entry-container">
|
||||
<div class="note-contents lh-copy">
|
||||
{{ content }}
|
||||
</div>
|
||||
<div id="notes-entry-container">
|
||||
<div class="note-contents f6 lh-copy">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
<aside class="bt b--dark-green">
|
||||
<h3 class="mb3">Notes mentioning this note</h3>
|
||||
{% if page.backlinks.size > 0 %}
|
||||
<div class="flex">
|
||||
{% for backlink in page.backlinks %}
|
||||
<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>
|
||||
<aside class="bt b--dark-green mt5">
|
||||
<h3 class="normal f1 mv5">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--dark-green br4">
|
||||
<h4 class="mt0 normal f3 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>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div>
|
||||
<p class="f7">
|
||||
There are no notes linking to this note.
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</aside>
|
||||
{% else %}
|
||||
<div>
|
||||
<p class="f7">
|
||||
There are no notes linking to this note.
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<div class="w-50">
|
||||
<div class="fixed top-0 right-0 w-50 vh-100">
|
||||
{% include notes_graph.html %}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user