~dricottone/blog

ref: 802e6f4ba742dd2e8930bf810759c5665a3cd19f blog/layouts/index.html -rw-r--r-- 446 bytes
802e6f4bDominic Ricottone Redesign of header/navigation 2 years 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
25
26
27
{{ define "main" }}

<div id="content">
  <h1>{{ .Title }}</h1>
  {{ .Content }}

  <hr />
</div>


<div id="blog-content">

  <p>These are my three most recent blog posts. More posts can be found on the 'Blog' tab.<p>

  <ul id="blog-post-list">
    {{ with .Site.GetPage "/posts" }}
      {{ range first 3 .Pages }}
      <li>
      {{ partial "blog-post-listitem.html" . }}
      </li>
      {{ end }}
    {{ end }}
  </ul>

</div>

{{ end }}