summaryLenght is broken for me, use truncate for uniform summaries
parent
aca1d1d256
commit
e51a047749
|
@ -8,7 +8,6 @@ languageCode: fr-fr
|
|||
languageName: Français
|
||||
watch: true
|
||||
paginate: 5
|
||||
summaryLength: 50
|
||||
|
||||
permalinks:
|
||||
# All pages under posts section will have this link structure
|
||||
|
|
|
@ -32,13 +32,20 @@
|
|||
</a>
|
||||
</div>
|
||||
<hr style="margin: 1rem 0;">
|
||||
{{ .Summary }}
|
||||
{{ .Content | plainify | safeHTML | truncate 300 "..." }}
|
||||
</div>
|
||||
<footer class="card-footer">
|
||||
<div class="is-size-7 has-text-centered card-footer-item">
|
||||
<time 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>
|
||||
</footer>
|
||||
<footer class="card-footer has-text-centered">
|
||||
{{ with .Params.categories }}
|
||||
<div class="card-footer-item is-centered is-rounded">
|
||||
{{ range . }}
|
||||
<span class="tag mx-1"><a href="{{ "categories" | absURL }}/{{ . | urlize }}">{{ . }}</a></span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="card-footer-item is-size-7">
|
||||
<time 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>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
<!-- Words and date stuff makes sens only for blog posts, not other pages -->
|
||||
{{ if (and .IsPage (eq .FirstSection "posts"))}}
|
||||
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
|
||||
<aside>
|
||||
<div>
|
||||
<section>
|
||||
|
|
Loading…
Reference in New Issue