Changes on blogs layout for a more compact aspect

This commit is contained in:
roberto 2025-01-06 17:24:48 +01:00
parent b13a8e3636
commit c8d5e7e777
4 changed files with 9 additions and 28 deletions

View File

@ -43,13 +43,10 @@
<div class="col-lg-8 col-md-8 col-sm-12">
<p class="blog-article-introduction">
{{ .Summary | safeHTML}}
<br />
{{ .Summary | plainify}}
<a href="{{ .Permalink }}">{{ i18n "read_more" }}</a>
</p>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
{{ partial "partials/widgets/ibiscattags.html" . }}
</div>

View File

@ -42,13 +42,10 @@
<div class="col-lg-8 col-md-8 col-sm-12">
<p class="blog-article-introduction">
{{ .Summary | safeHTML}}
<br />
{{ .Summary | plainify}}
<a href="{{ .Permalink }}">{{ i18n "read_more" }}</a>
</p>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
{{ partial "partials/widgets/spotcattags.html" . }}
</div>

View File

@ -1,21 +1,15 @@
<p>
<small>
{{ if isset .Params "categoriesibis" }}
<small>{{ i18n "categories" }} :
{{ $len := (sub (len .Params.categoriesibis) 1)}}
{{ range $key, $name := .Params.categoriesibis }}
{{ $pagepath := $name | urlize | lower | printf "%s%s" "/categoriesibis/"}}
{{ $p := $.Site.GetPage $pagepath}}
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
{{ if ne $key $len }} | {{ else }}{{ end }}
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a> |
{{ end }}
</small>
{{ end }}
{{ if isset .Params "tagsibis" }}
<br />
<small>
{{ i18n "tags" }} :
{{ $len := (sub (len .Params.tagsibis) 1)}}
{{ range $key, $name := .Params.tagsibis }}
{{ $pagepath := $name | urlize | lower | printf "%s%s" "/tagsibis/"}}
@ -24,6 +18,6 @@
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
{{ if ne $key $len }} | {{ else }}{{ end }}
{{ end }}
</small>
{{ end }}
</small>
</p>

View File

@ -1,29 +1,22 @@
<p>
{{ if isset .Params "categoriesspot" }}
<small>{{ i18n "categories" }} :
<small>
{{ if isset .Params "categoriesspot" }}
{{ $len := (sub (len .Params.categoriesspot) 1)}}
{{ range $key, $name := .Params.categoriesspot }}
{{ $pagepath := $name | urlize | lower | printf "%s%s" "/categoriesspot/"}}
{{ $p := $.Site.GetPage $pagepath}}
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
{{ if ne $key $len }} | {{ else }}{{ end }}
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a> |
{{ end }}
</small>
{{ end }}
{{ if isset .Params "tagsspot" }}
<br />
<small>
{{ i18n "tags" }} :
{{ $len := (sub (len .Params.tagsspot) 1)}}
{{ range $key, $name := .Params.tagsspot }}
{{ $pagepath := $name | urlize | lower | printf "%s%s" "/tagsspot/"}}
{{ $p := $.Site.GetPage $pagepath}}
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
{{ if ne $key $len }} | {{ else }}{{ end }}
{{ end }}
</small>
{{ end }}
</small>
</p>