authors #237

Merged
paspo merged 6 commits from paspo/bglug.it:authors into main 2024-09-18 13:25:25 +00:00
13 changed files with 82 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -52,6 +52,7 @@ params:
taxonomies:
tag: tags
author: author
languages:
it:
@ -117,6 +118,11 @@ languages:
parent: about
pageRef: /pages/segreteria
weight: 54
- identifer: authors
name: Autori
parent: about
pageRef: /author
weight: 55
- identifier: privacy
name: Privacy
pageRef: /pages/privacy-policy
@ -184,6 +190,11 @@ languages:
name: Secretery
pageRef: /pages/segreteria
weight: 54
- identifer: authors
name: Authors
parent: about
pageRef: /author
weight: 55
- identifier: privacy
name: Privacy
pageRef: /pages/privacy-policy

View File

@ -0,0 +1,3 @@
---
title: BgLUG's authors
---

View File

@ -0,0 +1,3 @@
---
title: Gli autori del BgLUG
---

View File

@ -0,0 +1,5 @@
---
title: paspo
image: paspo.png
description: paspo's [website](https://paspo.dev)
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -1,3 +1,4 @@
---
license: License
footer_license_note: Except where otherwise noted, content on this site is published under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) license.
all_posts_by: "All {{ . }}'s posts"

View File

@ -1,3 +1,4 @@
---
license: Licenza
footer_license_note: Eccetto dove diversamente indicato, ogni contenuto di questo sito è pubblicato con licenza [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/).
all_posts_by: "Tutti i post di {{ . }}"

View File

@ -0,0 +1,17 @@
{{ define "main" }}
<header>
<h2>{{ i18n "all_posts_by" .Title }}</h2>
{{ with .Description -}}
<p>{{ . | markdownify }}</p>
{{- end }}
</header>
{{- if .Params.image }}
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
{{ end }}
{{ range .RegularPages }}
{{ .Render "shortblock" }}
{{ end }}
{{ end }}

View File

@ -39,9 +39,16 @@
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
<div class="inner">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{- with .Params.author -}}
di {{ . | markdownify }}<br/>
{{- end -}}
{{- with .GetTerms "author" }}
{{- range . -}}
<div class="author">
di <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</div>
{{- end }}
{{- end }}
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}

View File

@ -2,9 +2,15 @@
<header>
<h2>{{ .Title }}</h2>
<p>{{ .Description }}</p>
{{- with .Params.author -}}
<div class="author">di {{ . | markdownify }}</div>
{{- end -}}
{{- with .GetTerms "author" }}
{{- range . -}}
<div class="author">
di <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</div>
{{- end }}
{{- end }}
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}

View File

@ -0,0 +1,17 @@
{{ define "main" }}
<header>
<h2>{{ .Title }}</h2>
{{ with .Description -}}
<p>{{ . | markdownify }}</p>
{{- end }}
</header>
{{- if .Params.image }}
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
{{ end }}
{{ range .Pages }}
{{ .Render "taxonomyshortblock" }}
{{ end }}
{{ end }}

View File

@ -4,8 +4,8 @@
{{ $rasters := slice "jpeg" "png" }}
{{ $newres := "360x250 smart" }}
{{/* di default, niente immagine */}}
{{- $featimg := "#" -}}
{{/* immagine di default */}}
{{- $featimg := (resources.Get "/images/placeholder_autore.png").RelPermalink -}}
{{- if .Params.image -}}
{{/* se è stata definita un'immagine featured */}}
@ -44,9 +44,9 @@
{{ end }}
<p>
{{ with .Description }}
{{- . | truncate 400 }}
{{- . | markdownify | truncate 400 }}
{{- else }}
{{- .Summary | truncate 400 }}
{{- .Summary | markdownify | truncate 400 }}
{{- end }}
</p>
{{ partial "tags.html" . }}