~subsetpark/subsetpark

ref: 9141d698737535261fdfd1f0991b9afcdfbc3775 subsetpark/temple/page.temple -rw-r--r-- 763 bytes
9141d698 — Zach Smith Update with newer absolute template imports 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{$ (import /temple/base-top) $}
{$ (import /temple/base-bottom) $}
{$ (import /temple/recent-posts) $}

{% (base-top/render-dict args) %}

<div class="container">
  <div class="row">
    <div class="col-md-7">
      {- (when-let [sigil (get-in args [:_item :sigil])]
               (printf `<div class="sigil">%s</div>` sigil)) -}
      <h1>{{ (get-in args [:_item :title]) }}</h1>
      {- (-> (get-in args [:_item :body]) (bagatto/markdown->html
                                           :opts [:smart :footnotes :unsafe]
                                           :exts [:table])) -}
    </div>
    <div class="col-md-3">
      <h3>Recent Posts</h3>
      {% (recent-posts/render-dict args) %}
    </div>
  </div>
</div>

{% (base-bottom/render-dict args) %}