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

View File

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

View File

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

View File

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