index.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {{ partial "header.html" . }}
  2. {{ partial "navbar.html" . }}
  3. <div class="container">
  4. {{ range $index, $page := where .Site.Pages "Section" "=" "home" }}
  5. {{ if eq .Title "about" }}
  6. <section id="bio">
  7. {{ .Render "bio" }}
  8. </section>
  9. {{ end }}
  10. {{ end }}
  11. <section id="publications">
  12. <h2>Recent Publications</h2>
  13. <ul class="fa-ul">
  14. {{ range first 5 (where .Data.Pages.ByDate "Section" "publications").Reverse }}
  15. <li>
  16. <i class="fa-li fa fa-file-text-o pub-icon" aria-hidden="true"></i>
  17. <span style="padding-right: 8px">{{ .Title | safeHTML }}</span>
  18. <a class="btn btn-primary btn-outline btn-xs" href="{{ .Permalink }}">Details</a>
  19. {{ with .Params.url_pdf }}<a class="btn btn-primary btn-outline btn-xs" href="{{ . }}">PDF</a>{{ end }}
  20. {{ with .Params.url_code }}<a class="btn btn-primary btn-outline btn-xs" href="{{ . }}">Code</a>{{ end }}
  21. {{ with .Params.url_dataset }}<a class="btn btn-primary btn-outline btn-xs" href="{{ . }}">Dataset</a>{{ end }}
  22. {{ with .Params.url_project }}<a class="btn btn-primary btn-outline btn-xs" href="{{ . }}">Project</a>{{ end }}
  23. {{ range .Params.url_custom }}<a class="btn btn-primary btn-outline btn-xs" href="{{ .url }}">{{ .name }}</a>{{ end }}
  24. </li>
  25. {{ end }}
  26. </ul>
  27. <p class="text-right"><a href="/publications/">More Publications <i class="fa fa-angle-double-right" style="padding-left: 5px;"></i></a></p>
  28. </section>
  29. <section id="news">
  30. <h2>News</h2>
  31. {{ range last 5 (where .Data.Pages "Section" "=" "blog") }}
  32. <div>
  33. <h3 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
  34. <h4>{{ .Date.Format "Mon, Jan 2, 2006" }}</h4>
  35. <p>
  36. {{ if .Truncated }}
  37. {{ .Summary }}
  38. <a href="{{ .RelPermalink }}">Read More <i class="fa fa-angle-double-right" style="padding-left: 5px;"></i></a>
  39. {{ else }}
  40. {{ .Content }}
  41. {{ end }}
  42. </p>
  43. </div>
  44. {{ end }}
  45. <p class="text-right"><a href="/blog/">More Posts <i class="fa fa-angle-double-right" style="padding-left: 5px;"></i></a></p>
  46. </section>
  47. {{ range $index, $page := where .Site.Pages "Section" "=" "home" }}
  48. {{ if eq .Title "teaching" }}
  49. <section id="teaching">
  50. {{ .Render "teaching" }}
  51. </section>
  52. {{ end }}
  53. {{ end }}
  54. <section id="contact">
  55. <h2>Contact</h2>
  56. {{ partial "contact.html" . }}
  57. </section>
  58. {{ partial "footer_container.html" . }}
  59. </div>
  60. {{ partial "footer.html" . }}