oyd
/
oyd-web-en
Archived
7
0
Fork 0
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
oyd-web-en/layouts/_default/list.html

58 lines
1.9 KiB

{{ define "main" }}
<div class="page">
<div class="article-list">
<h1 class="title">{{ .Title }}</h1>
{{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }}
{{ range $paginator.Pages }}
<article>
{{ if .Params.img }}
<div class="article-img">
<img src="{{ .Params.img.src }}" alt="{{ .Params.img.alt }}"/>
</div>
{{ end }}
<div class="article-body">
<header>
<h1 class="title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<div class="meta">
<div class="author">
{{ .Params.author }}
</div>
<div>
{{- range .Params.categories -}}
<a href="{{ relURL (print "/categories/" . | urlize) }}">{{ . }}</a>
{{ end -}}
</div>
</div>
</header>
{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">Devamını okuyun...</a>
{{ end }}
<footer>
<time datetime="{{ .Date.Format "2006-1-2" | safeHTML }}">{{ .Date.Format "2006/01/02" }}</time>
</footer>
</div>
</article>
{{ end }}
</div>
<aside class="sidebar">
<h2 class="title">Kategoriler</h2>
<nav class="categories">
<!-- {{ range $key, $value := .Site.Taxonomies.categories }} -->
<!-- <a href="{{ (print "/categories/" $key | urlize) | relURL }}">{{ $key }}</a> -->
<!-- {{ end }} -->
{{ range .Site.Menus.categories }}
<div style="background-image: url({{ .Pre }})">
<a href="{{ .URL }}">
{{ .Name }}
</a>
</div>
{{ end }}
</nav>
<h2>Etkinlikler</h2>
{{ partial "events" . }}
</aside>
</div>
{{ end }}