~subsetpark/bagatto

ref: 19aea03fe23fe5486890912df7dc4a936ce617a3 bagatto/demo/basic-site/templates/index.temple -rw-r--r-- 537 bytes
19aea03f — Zach Smith Basic site demo 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% (bagatto/include "templates/head") %}

<h1>{{ (get-in args [:config :title]) }}</h1> 
<div>
  <nav>
    <ul class="list pl0 ma0">
      {% (each page (args :pages)
            (printf ```
                    <li class="dib mr2">
                    <a class="pv2 ph3 fw6 nav focus-black"
                     href="%s">%s</a>
                    </li>
                    ```
                    (page-path args page)
                    (page :basename))) %}
    </ul>
  </nav>
</div>
      
{% (bagatto/include "templates/foot") %}