Modifie l’agencement des onglets
This commit is contained in:
parent
b20b81e79e
commit
f445c8588d
90 changed files with 356 additions and 152 deletions
13
layouts/cinema/li.html
Normal file
13
layouts/cinema/li.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<a class="archive hidden_link" href="{{ .Params.ExternalLink | default .RelPermalink }}">
|
||||
{{ $thumb := $.Page.Resources.GetMatch "thumb.jpg"}}
|
||||
{{ if $thumb }}
|
||||
<img class="thumbnail" src="{{ .RelPermalink }}thumb.jpg" />
|
||||
{{ else }}
|
||||
<img class="thumbnail" src="/images/thumb.jpg" />
|
||||
{{ end }}
|
||||
<div class="description">
|
||||
<span class="title">{{ .Title }}</span>
|
||||
<span class="year">{{ .PublishDate.Format "2006" }}</span>
|
||||
<span class="more">→ plus d'infos</span>
|
||||
</div>
|
||||
</a>
|
32
layouts/cinema/list.html
Normal file
32
layouts/cinema/list.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<main class="wrapper">
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<section id="site-page" class="container page cinema">
|
||||
<article>
|
||||
{{ partial "cinema_infos.md" | markdownify }}
|
||||
{{ partial "scratch.html" . }}
|
||||
<hr>
|
||||
{{ partial "cinema_actu.md" | markdownify }}
|
||||
<header>
|
||||
<h1 class="list-title">
|
||||
{{ i18n "articles" | title }}
|
||||
</h1>
|
||||
</header>
|
||||
<div class="archives-list">
|
||||
{{- range .Paginator.Pages -}}
|
||||
{{ if in .Params.categories "Film" }}
|
||||
{{- .Render "li" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
<p>
|
||||
{{ partial "cinema_bot.md" | markdownify }}
|
||||
</p>
|
||||
</article>
|
||||
{{ partial "pagination.html" . }}
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
21
layouts/cinema/single.html
Normal file
21
layouts/cinema/single.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<main class="wrapper">
|
||||
{{ partial "navigation.html" . }}
|
||||
<section class="container archive">
|
||||
<article>
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">
|
||||
{{ .Title }}
|
||||
</h1>
|
||||
{{ partial "scratch.html" . }}
|
||||
</header>
|
||||
<div class="archive-body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ partial "article-footer.html" . }}
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue