{workspace.here}/{doc.slug} {#if workspace.dirty}modified{/if}
written
{formatStamp(workspace.draft.created_at)} {formatWeekday(workspace.draft.created_at)}
edited
{relative(doc.updated_at)}
words
{words}words
{#if workspace.editing} {:else} {/if}
{#if sharePath}
public {sharePath}
{/if} {#if workspace.editing} workspace.touch()} onkeydown={(event) => { // The title is the line above the text: any of these goes back down. if (['Enter', 'Escape', 'ArrowDown', 'Tab'].includes(event.key) && !event.shiftKey) { event.preventDefault() hooks.focusEditor() } }} />
{#key doc.id} {#await import('./Editor.svelte')}
loading editor_
{:then module} {@const Editor = module.default} {/await} {/key}
{#if isTouchDevice}
{/if} {:else}
{#if doc.name.trim()}

{doc.name}

{/if} {@html html} {#if !doc.body.trim()}

this document is empty — press i to write.

{/if}
{/if}