More factorization and use viral license
parent
9aaa1bf352
commit
e366ee7049
|
@ -7,6 +7,7 @@
|
|||
<ul>
|
||||
{{ range .Paginator.Pages }}
|
||||
{{- partial "listitem.html" . -}}
|
||||
{{- partial "postinfo.html" . -}}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{- partial "pagination.html" . -}}
|
|
@ -1,13 +1,11 @@
|
|||
<article class="block">
|
||||
<header>
|
||||
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
|
||||
<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>
|
||||
<h2>
|
||||
<a href='{{ .Permalink }}'>
|
||||
{{- partial "listitem.html" . -}}
|
||||
</a>
|
||||
</h2>
|
||||
{{- partial "postinfo.html" . -}}
|
||||
</header>
|
||||
{{ .Summary }}
|
||||
<footer>
|
||||
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
|
||||
</footer>
|
||||
</article>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<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>
|
||||
</footer>
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
<div class="block">
|
||||
<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.
|
||||
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