More factorization and use viral license

master
Quentin Duchemin 2021-05-22 00:38:04 +02:00
parent 9aaa1bf352
commit e366ee7049
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
6 changed files with 13 additions and 28 deletions

View File

@ -7,6 +7,7 @@
<ul>
{{ range .Paginator.Pages }}
{{- partial "listitem.html" . -}}
{{- partial "postinfo.html" . -}}
{{ end }}
</ul>
{{- partial "pagination.html" . -}}

View File

@ -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>

View File

@ -9,7 +9,7 @@
</div>
</div>
<div class="level-right">
Tout le contenu du blog est disponible sous licence&nbsp;<a href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0.</a>
Tout le contenu du blog est disponible sous licence&nbsp;<a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution ShareAlike 4.0.</a>
</div>
</div>
</footer>

View File

@ -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.

View File

@ -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>

View File

@ -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 }}