~dricottone/blog

ref: 7790daaad6b15e48089dfc79a7a7bb0a09d31bd4 blog/layouts/index.html -rw-r--r-- 422 bytes
7790daaaDominic Ricottone Multiple design changes 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
{{ define "main" }}

<div id="content">
  {{ .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 }}