Miglioramento layout generale

This commit is contained in:
loviuz 2022-07-03 17:24:33 +02:00
parent 007af51c24
commit a4052ad2d4
11 changed files with 41 additions and 14 deletions

View File

@ -87,6 +87,10 @@
margin-bottom: 1em;
}
.page ul.tags > li{
display: inline;
color: #999;
}
/** NEWS **/
.news-image{
@ -95,6 +99,7 @@
position: relative;
margin-right: 1em;
margin-bottom: 1em;
width: 40%;
}
.list ul.news-list li .date{
@ -116,6 +121,7 @@
border-radius: 0.6rem;
line-height: 1.4em;
font-size: 0.8em;
margin-bottom: 2px;
}
.list ul.news-list .tag a{

View File

@ -11,4 +11,13 @@
.projects-list .progress{
width: 100%;
}
.news-image{
float: none;
}
.list ul.news-list li .reading-time{
display: block;
margin-left: 0;
}
}

View File

@ -2,7 +2,8 @@
title: Tradurre la guida di OpenStreetMap
description: Come tradurre il wiki di OpenStreetMap in italiano (o altre lingue)
date: 2022-06-05T23:28:00+02:00
image: tradurre-wiki-openstreetmap.jpg
images:
- tradurre-wiki-openstreetmap.jpg
categories:
- Traduzioni
tags:

View File

@ -2,7 +2,8 @@
title: Mappa dei prezzi distributori in Italia
description: Mappatura dei prezzi dei distributori in Italia importati dai dati ufficiali del MISE (MInistero dello Sviluppo Economico) dal formato CSV
date: 2022-05-28T19:46:00+02:00
image: fuel-gf6da54ccc_1280.jpg
images:
- fuel-gf6da54ccc_1280.jpg
obiettivo_percent: 90
categories:
- Mappe

View File

@ -2,7 +2,8 @@
title: Mappa dei raccoglitori di olio a Este
description: Mappatura dei raccoglitori di olio alimentare esausto a Este tramite OpenStreetMap
date: 2022-06-11T18:40:00+02:00
image: 52-1728x800_c.jpg
images:
- 52-1728x800_c.jpg
obiettivo_percent: 100
categories:
- Mappe

View File

@ -2,7 +2,8 @@
title: OpenSTAManager
description: Gestionale open source per la gestione dell'assistenza tecnica e per la fatturazione elettronica
date: 2008-08-11T17:00:00+02:00
image: openstamanager.jpg
images:
- openstamanager.jpg
obiettivo_percent: 99
categories:
- Software

View File

@ -2,7 +2,8 @@
title: Aggiornamento Este su Wikipedia
description: Mappatura dei raccoglitori
date: 2022-06-05T10:30:00+02:00
image: wikipedia-gdcbdb40d8_1280.jpg
images:
- wikipedia-gdcbdb40d8_1280.jpg
obiettivo_percent: 10
categories:
- Cultura

View File

@ -15,11 +15,11 @@
{{ .Content }}
<ul class="news-list">
{{ range .Paginator.Pages }}
{{ $image := .Resources.GetMatch .Params.image }}
{{ $image := .Resources.GetMatch (index (.Params.images) 0) }}
<li>
{{ if $image }}
{{ $image := $image.Resize "x260" }}
{{ $image := $image.Crop "260x180" }}
{{ $image := $image.Resize "x480" }}
{{ $image := $image.Crop "480x350" }}
<div class="news-image">
<a href="{{ .Params.externalLink | default .RelPermalink }}">
<img src="{{ $image.RelPermalink }}">

View File

@ -3,6 +3,9 @@
{{ end }}
{{ define "content" }}
<section class="container post">
{{ if .Section }}
<a href="{{.Site.BaseURL}}/{{.Section}}"><i class="fa fa-chevron-left fa-fw"></i> Torna alle {{.Section}}</a>
{{ end }}
<article>
<header>
<div class="post-title">
@ -32,10 +35,14 @@
</header>
<div>
{{ if .Params.featuredImage }}
<img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
{{ with .Resources.GetMatch (index (.Params.images) 0) }}
{{ $image := . }}
{{ $image := $image.Crop "1280x250" }}
<img src="{{ $image.RelPermalink }}">
{{ end }}
{{ .Content }}
{{ .TableOfContents }}
{{ .Content | safeHTML }}
</div>

View File

@ -11,7 +11,7 @@
{{ .Content }}
<ul class="projects-list">
{{ range .Paginator.Pages }}
{{ $image := .Resources.GetMatch .Params.image }}
{{ $image := .Resources.GetMatch (index (.Params.images) 0) }}
<li>
{{ if $image }}
{{ $image := $image.Resize "x350" }}

View File

@ -19,8 +19,8 @@
{{ end }}
</header>
{{ $image := .Resources.GetMatch .Params.image }}
{{ if $image }}
{{ if .Params.images }}
{{ $image := .Resources.GetMatch (index (.Params.images) 0) }}
{{ $image := $image.Crop "1280x250" }}
<img src="{{ $image.RelPermalink }}">
{{ end }}