feat: Avancement général sur le contenu et le design
fixes #3, fixes #4, fixes #5, fixes #7, fixes #8, fixes #9, fixes #10
This commit is contained in:
@ -3,13 +3,9 @@
|
||||
<h1>{{ .RenderString .Title }}</h1>
|
||||
<div class="container md">
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{ block "list" . }}
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .URL }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }} - {{ .RenderString .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ range .Pages }}
|
||||
{{ partial "article-preview.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -2,7 +2,30 @@
|
||||
<div class="container">
|
||||
<h1>{{ .RenderString .Title }}</h1>
|
||||
<div class="container news md">
|
||||
<small>
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>
|
||||
</small>
|
||||
{{ .Content }}
|
||||
<aside>
|
||||
<hr>
|
||||
<h2>
|
||||
{{ if and .NextInSection .PrevInSection }}
|
||||
Les actualités suivant et précédent
|
||||
{{ else if .NextInSection }}
|
||||
L'actualité précédent
|
||||
{{ else }}
|
||||
L'actualité suivant
|
||||
{{ end }}
|
||||
</h2>
|
||||
{{ with .NextInSection }}
|
||||
{{ .Scratch.Set "big" false }}
|
||||
{{ partial "article-preview.html" . }}
|
||||
{{ end }}
|
||||
{{ with .PrevInSection }}
|
||||
{{ .Scratch.Set "big" false }}
|
||||
{{ partial "article-preview.html" . }}
|
||||
{{ end }}
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user