templates
Code
Branches
CI
Releases
Discussions
Prompts
Insights
Settings
mapa / internal / mapa / templates / blocks.html
Download this file
1 {{define "content"}}{{$d := .Data}}{{$page := $d.Page}} 2 {{template "back-nav" dict "Href" $page.Href "Label" $page.Label}} 3 {{template "page-header" dict "Title" "Link to a block" "Sub" "Choose a block to link to. Making it linkable adds a marker like ^a1b2c3 to its end, as an edit by you."}} 4 {{template "notice" $d.Notice}} 5 {{with $d.Marker}}<p mapa-copy>Link: <code>[[{{$page.Title}}#^{{.}}]]</code></p>{{end}} 6 <ul mapa-list> 7 {{range $d.Blocks}}{{if not .Layout}}<li><div mapa-choice-body>{{.HTML}}</div><form method="post" action="/p/{{$page.Public}}/blocks"><input type="hidden" name="grammar" value="{{grammar}}"><input type="hidden" name="block" value="{{.Block}}"><button rst-btn type="submit">Link to this block</button></form></li>{{end}} 8 {{end}}</ul> 9 {{end}} 10