~subsetpark/subsetpark

ref: 9141d698737535261fdfd1f0991b9afcdfbc3775 subsetpark/temple/note.temple -rw-r--r-- 572 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
{$ (import /temple/base-top) $}
{$ (import /temple/base-bottom) $}

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

<div class="container">
  <div class="col-md-7">
    <div class="row">
      <h1>{{ (get-in args [:_item "title"]) }}</h1>
      {- (-> (get-in args [:_item]) (with-hyperlinks (args :notes)) (bagatto/markdown->html)) -}
    </div>
  {% (def related-notes (all-related (args :notes) (args :_item)))
     (unless (empty? related-notes) (print "<hr>"))
     (print-related related-notes (args :_item) (args :root)) %}
  </div>
</div>

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