Move some files to a better place, remove some unused file

This commit is contained in:
Gregory Trolliet 2019-09-20 10:56:51 +02:00
parent 0bbda99e9c
commit 89e88cf1e1
27 changed files with 13 additions and 13 deletions

7
layouts/posts/li.html Normal file
View file

@ -0,0 +1,7 @@
<li>
<span class="date">
{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}
<!--{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}-->
</span>
<a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
</li>

16
layouts/posts/list.html Normal file
View file

@ -0,0 +1,16 @@
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container list">
<h1 class="title">{{ .Site.Params.Posts }}</h1>
<ul>
{{- range .Paginator.Pages -}}
{{- .Render "li" -}}
{{- end -}}
</ul>
{{ partial "pagination.html" . }}
</section>
{{ end }}

42
layouts/posts/single.html Normal file
View file

@ -0,0 +1,42 @@
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container post">
<article>
<header>
<div class="post-title">
<h1 class="title">{{ .Title }}</h1>
</div>
<div class="post-meta">
<div class="date">
<span class="posted-on">
<i class="fas fa-calendar"></i>
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
Article publié le {{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}
<!--{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}-->
</time>
</span>
<span class="reading-time">
<i class="fas fa-clock"></i>
{{ i18n "reading_time" .ReadingTime }}
</span>
</div>
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories" . }}{{ end }}
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
</div>
</header>
<div>
{{ .Content }}
</div>
<footer>
{{ partial "posts/series" . }}
{{ partial "posts/disqus" . }}
</footer>
</article>
{{ partial "posts/math" . }}
</section>
{{ end }}