repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

starfx / docs / tmpl
Eric Bower · 17 Nov 24

post.page.tmpl

 1{{template "base" .}}
 2
 3{{define "title"}}{{.Data.Title}}{{end}}
 4
 5{{define "meta"}}
 6<meta name="description" content="{{.Data.Description}}" />
 7{{end}}
 8
 9{{define "attrs"}}class="post-container"{{end}}
10
11{{define "body"}}
12{{template "nav" .}}
13
14<div class="post-group">
15  <main class="post">
16    <h1 class="text-2xl text-hdr m-0 flex items-center">
17      {{.Data.Title}}
18    </h1>
19    <p class="m-0">{{.Data.Description}}</p>
20
21    <hr />
22
23    <article class="md">
24      {{.Data.Html}}
25    </article>
26
27    {{template "pager" .}}
28    {{template "footer" .}}
29  </main>
30
31  {{template "sitemap-footer" .}}
32</div>
33
34{{end}}