oficina / mapa Public

Clone
git clone https://amadan.net/oficina/mapa

Plain git — no account needed to clone.

Download

Download this file

1{{define "banner"}}{{with .Data.Banner}}{{template "mapa-banner" dict "Banner" . "Look" (printf "%s/look" $.Data.Page.Href)}}{{end}}{{end}}
2{{define "content"}}{{$d := .Data}}{{$page := $d.Page}}
3{{template "mapa-doc-head" dict "Page" $page "Last" $d.Last "Edit" (printf "%s/edit" $page.Href) "Rename" $d.Rename "Look" (and (eq $page.Kind "page") (printf "%s/look" $page.Href)) "Banner" $d.Banner}}
4{{template "notice" $d.Notice}}
5{{with $d.Draft}}{{template "mapa-unsaved" dict "Draft" . "Save" (printf "/p/%s/draft/save" $page.Public) "Discard" (printf "/p/%s/draft/discard" $page.Public) "Href" $page.Href "Saved" $d.Saved}}{{end}}
6{{template "mapa-island" $d.Island}}<article mapa-body rst-section>
7{{if or $page.Body $d.Island}}{{$page.HTML}}{{else}}<p mapa-empty>This page is empty. <a href="{{$page.Href}}/edit">Write something</a>.</p>{{end}}
8</article>
9<footer mapa-foot-refs rst-stack rst-section>
10{{template "mapa-linked" dict "ID" "backlinks" "Heading" "Linked from" "Items" $page.Backlinks "Empty" "Nothing links here yet." "Target" 0}}
11{{if eq $page.Kind "page"}}
12{{template "mapa-linked" dict "ID" "mentions" "Heading" "Mentioned without a link" "Items" $page.Mentions "Empty" "No unlinked mentions." "Target" $page.Public}}
13{{end}}
14{{template "mapa-links-out" $page}}
15</footer>
16{{template "mapa-links-panel" dict "Page" $page "Week" nil "State" $.Frame.Panel}}
17{{end}}
18