Webseite von neu-trifft-alt (Gemeinschaftsprojekt mit CompuRama)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="de">
  3. {{ partial "head.html" . }}
  4. <body>
  5. {{ partial "nav.html" . }}
  6. <header class="header-section ">
  7. <div class="intro-header no-img">
  8. <div class="container">
  9. <div class="row">
  10. <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
  11. <div class="page-heading">
  12. <!-- <h1>{{.Site.Title}}</h1> -->
  13. {{if .Site.Params.subtitle}}
  14. <hr class="small">
  15. <span class="page-subheading">{{.Site.Params.subtitle}}</span>
  16. {{end}}
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </header>
  23. <div role="main" class="container">
  24. <div class="row">
  25. <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
  26. <div class="posts-list">
  27. {{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
  28. {{ range $pag.Pages }}
  29. <article class="post-preview">
  30. <a href="{{ .Permalink }}">
  31. <h1 class="post-title">{{ .Title }}</h1>
  32. {{ if .Params.subtitle }}
  33. <h3 class="post-subtitle">
  34. {{ .Params.subtitle }}
  35. </h3>
  36. {{ end }}
  37. </a>
  38. <p class="post-meta">
  39. Ver&ouml;ffentlicht am {{ .Date.Format "2.1.2006" }} | von {{ .Site.Author.handle }}
  40. </p>
  41. <div class="post-entry">
  42. <p>{{ .Summary }}</p>
  43. <a href="{{ .Permalink }}" class="post-read-more">[MEHR]</a>
  44. </div>
  45. </article>
  46. {{ end }}
  47. </div>
  48. {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
  49. <ul class="pager main-pager">
  50. {{ if .Paginator.HasPrev }}
  51. <li class="previous">
  52. <a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}">&larr; Newer Posts</a>
  53. </li>
  54. {{ end }}
  55. {{ if .Paginator.HasNext }}
  56. <li class="next">
  57. <a href="{{ .URL }}page/{{ .Paginator.Next.PageNumber }}">Older Posts &rarr;</a>
  58. </li>
  59. {{ end }}
  60. </ul>
  61. {{ end }}
  62. </div>
  63. </div>
  64. </div>
  65. {{ partial "footer.html" . }}
  66. </body>
  67. </html>