More factorization and use viral license
parent
9aaa1bf352
commit
e366ee7049
|
@ -7,6 +7,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
{{- partial "listitem.html" . -}}
|
{{- partial "listitem.html" . -}}
|
||||||
|
{{- partial "postinfo.html" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{- partial "pagination.html" . -}}
|
{{- partial "pagination.html" . -}}
|
|
@ -1,13 +1,11 @@
|
||||||
<article class="block">
|
<article class="block">
|
||||||
<header>
|
<header>
|
||||||
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
|
<h2>
|
||||||
<div class="post-meta">
|
<a href='{{ .Permalink }}'>
|
||||||
<time class="post-date" datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
|
{{- partial "listitem.html" . -}}
|
||||||
{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
</a>
|
||||||
</time> - {{ .FuzzyWordCount }} mots </div>
|
</h2>
|
||||||
|
{{- partial "postinfo.html" . -}}
|
||||||
</header>
|
</header>
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
<footer>
|
|
||||||
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
|
|
||||||
</footer>
|
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
Tout le contenu du blog est disponible sous licence <a href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0.</a>
|
Tout le contenu du blog est disponible sous licence <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution ShareAlike 4.0.</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<a href="{{.Permalink}}">
|
<a href="{{.Permalink}}">
|
||||||
<time class="post-date" datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
|
|
||||||
{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
|
||||||
</time>
|
|
||||||
|
|
|
||||||
<!--
|
<!--
|
||||||
Well, I am a beginner with Hugo so this is probably like crushing a banana with a rocket.
|
Well, I am a beginner with Hugo so this is probably like crushing a banana with a rocket.
|
||||||
When a post belongs to a "case" (i.e. a section with a code, I'd like to have [INDEX/TOTAL] printed in title.
|
When a post belongs to a "case" (i.e. a section with a code, I'd like to have [INDEX/TOTAL] printed in title.
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="post-meta">
|
||||||
|
<time class="post-date" datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
|
||||||
|
{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}
|
||||||
|
</time> - {{ .FuzzyWordCount }} mots
|
||||||
|
</div>
|
|
@ -1,15 +0,0 @@
|
||||||
{{ define "main" }}
|
|
||||||
<main>
|
|
||||||
<article>
|
|
||||||
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
|
|
||||||
{{ .Content }}
|
|
||||||
</article>
|
|
||||||
<ul>
|
|
||||||
<!-- Ranges through the term pages -->
|
|
||||||
{{ range .Paginator.Pages }}
|
|
||||||
{{- partial "listitem.html" . -}}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
{{- partial "pagination.html" . -}}
|
|
||||||
</main>
|
|
||||||
{{ end }}
|
|
Loading…
Reference in New Issue