Özgür Yazılım Derneği web sitesi https://oyd.org.tr
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.
 
 
 
 

59 lines
1.9 KiB

  1. {{ define "main" }}
  2. <div class="page">
  3. <div class="article-list">
  4. <h1 class="title">{{ .Title }}</h1>
  5. {{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }}
  6. {{ range $paginator.Pages }}
  7. <article>
  8. {{ if .Params.img }}
  9. <div class="article-img">
  10. <img src="{{ .Params.img.src }}" alt="{{ .Params.img.alt }}"/>
  11. </div>
  12. {{ end }}
  13. <div class="article-body">
  14. <header>
  15. <h1 class="title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
  16. <div class="meta">
  17. <div class="author">
  18. {{ .Params.author }}
  19. </div>
  20. <div>
  21. {{- range .Params.categories -}}
  22. <a href="{{ relURL (print "/categories/" . | urlize) }}">{{ . }}</a>
  23. {{ end -}}
  24. </div>
  25. </div>
  26. </header>
  27. {{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}
  28. {{ if .Truncated }}
  29. <a href="{{ .RelPermalink }}">Devamını okuyun...</a>
  30. {{ end }}
  31. <footer>
  32. <time datetime="{{ .Date.Format "2006-1-2" | safeHTML }}">{{ .Date.Format "2006/01/02" }}</time>
  33. </footer>
  34. </div>
  35. </article>
  36. {{ end }}
  37. </div>
  38. <aside class="sidebar">
  39. <h2 class="title">Kategoriler</h2>
  40. <nav class="categories">
  41. <!-- {{ range $key, $value := .Site.Taxonomies.categories }} -->
  42. <!-- <a href="{{ (print "/categories/" $key | urlize) | relURL }}">{{ $key }}</a> -->
  43. <!-- {{ end }} -->
  44. {{ range .Site.Menus.categories }}
  45. <div style="background-image: url({{ .Pre }})">
  46. <a href="{{ .URL }}">
  47. {{ .Name }}
  48. </a>
  49. </div>
  50. {{ end }}
  51. </nav>
  52. <h2>Etkinlikler</h2>
  53. {{ partial "events" . }}
  54. </aside>
  55. </div>
  56. {{ end }}