Fix hard wraps and remove word count/update date

master
Quentin Duchemin 2023-01-20 18:37:36 +01:00
parent 5dbc232f3c
commit 27a6685fbc
3 changed files with 6 additions and 14 deletions

View File

@ -68,16 +68,14 @@
<div class="level-left"> <div class="level-left">
{{ with .PrevInSection }} {{ with .PrevInSection }}
<div class="level-item"> <div class="level-item">
<a class="button is-link is-light is-medium has-text-weight-bold" href="{{ .Permalink }}">&laquo;&nbsp;{{ <a class="button is-link is-light is-medium has-text-weight-bold" href="{{ .Permalink }}">&laquo;&nbsp;{{ .Title }}</a>
.Title }}</a>
</div> </div>
{{ end }} {{ end }}
</div> </div>
<div class="level-right"> <div class="level-right">
{{ with .NextInSection }} {{ with .NextInSection }}
<div class="level-item"> <div class="level-item">
<a class="button is-link is-light is-medium has-text-weight-bold" href="{{ .Permalink }}">{{ <a class="button is-link is-light is-medium has-text-weight-bold" href="{{ .Permalink }}">{{ .Title }}&nbsp;&raquo;</a>
.Title }}&nbsp;&raquo;</a>
</div> </div>
{{ end }} {{ end }}
</div> </div>

View File

@ -58,8 +58,7 @@
<div class="level-right"> <div class="level-right">
<div class="level-item"> <div class="level-item">
<time datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}"> <time datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
{{ .Date.Day }} {{ slicestr (index $.Site.Data.months_fr (printf "%d" .Date.Month)) 0 3 }} {{ .Date.Year {{ .Date.Day }} {{ slicestr (index $.Site.Data.months_fr (printf "%d" .Date.Month)) 0 3 }} {{ .Date.Year }}
}}
</div> </div>
</div> </div>
<div class="level-left"> <div class="level-left">

View File

@ -19,8 +19,7 @@
{{ with .Params.categories }} {{ with .Params.categories }}
<div class="tags colums is-vcentered"> <div class="tags colums is-vcentered">
{{ range . }} {{ range . }}
<span class="tag is-info is-light is-large mr-4"><a href="{{ " categories" | absURL }}/{{ . | urlize <span class="tag is-info is-light is-large mr-4"><a href="{{ " categories" | absURL }}/{{ . | urlize }}">{{ . }}</a></span>
}}">{{ . }}</a></span>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
@ -42,19 +41,15 @@
<div class="level-left"> <div class="level-left">
<div class="level-item has-text-left"> <div class="level-item has-text-left">
<time datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}"> <time datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
<p class="mb-2 subtitle is-size-5-desktop is-size-7-mobile">📅&nbsp;&nbsp;Article publié le <strong>{{ .Date.Day }} {{ index $.Site.Data.months_fr <p class="mb-2 subtitle is-size-5-desktop is-size-7-mobile">📅&nbsp;&nbsp;Article publié le <strong>{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}</strong></p>
(printf "%d" .Date.Month) }} {{ .Date.Year }}</strong></p>
<p class="subtitle is-size-5-desktop is-size-7-mobile">✏️&nbsp;&nbsp;Dernière modification le <strong>{{ .Lastmod.Day }} {{ index $.Site.Data.months_fr
(printf "%d" .Lastmod.Month) }} {{ .Lastmod.Year }}</strong></p>
</time> </time>
</div> </div>
</div> </div>
<div class="level-right is-hidden-touch"> <div class="level-right">
<div class="level-item has-text-right"> <div class="level-item has-text-right">
<div> <div>
<p class="mb-2 subtitle is-size-5-desktop is-size-7-mobile">🕑&nbsp;&nbsp;Environ <strong>{{ div .FuzzyWordCount 230 }} minutes</strong> de lecture <p class="mb-2 subtitle is-size-5-desktop is-size-7-mobile">🕑&nbsp;&nbsp;Environ <strong>{{ div .FuzzyWordCount 230 }} minutes</strong> de lecture
</p> </p>
<p class="subtitle is-size-5-desktop is-size-7-mobile">#&nbsp;<strong>{{ .FuzzyWordCount }} mots</strong></p>
</div> </div>
</div> </div>
</div> </div>