forked from BgLUG/bglug.it
authors (#237)
fixes #233 Reviewed-on: BgLUG/bglug.it#237 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
cf8ac5cb95
commit
26f07b4cd3
BIN
assets/images/placeholder_autore.png
Normal file
BIN
assets/images/placeholder_autore.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
13
config.yml
13
config.yml
@ -10,7 +10,7 @@ copyright: 2024 © Bergamo Linux Users Group
|
|||||||
paginate: 20
|
paginate: 20
|
||||||
timeout: 1800s
|
timeout: 1800s
|
||||||
enableRobotsTXT: true
|
enableRobotsTXT: true
|
||||||
params:
|
params:
|
||||||
description: Bergamo Linux Users Group
|
description: Bergamo Linux Users Group
|
||||||
social:
|
social:
|
||||||
- title: Mattermost
|
- title: Mattermost
|
||||||
@ -52,6 +52,7 @@ params:
|
|||||||
|
|
||||||
taxonomies:
|
taxonomies:
|
||||||
tag: tags
|
tag: tags
|
||||||
|
author: author
|
||||||
|
|
||||||
languages:
|
languages:
|
||||||
it:
|
it:
|
||||||
@ -117,6 +118,11 @@ languages:
|
|||||||
parent: about
|
parent: about
|
||||||
pageRef: /pages/segreteria
|
pageRef: /pages/segreteria
|
||||||
weight: 54
|
weight: 54
|
||||||
|
- identifer: authors
|
||||||
|
name: Autori
|
||||||
|
parent: about
|
||||||
|
pageRef: /author
|
||||||
|
weight: 55
|
||||||
- identifier: privacy
|
- identifier: privacy
|
||||||
name: Privacy
|
name: Privacy
|
||||||
pageRef: /pages/privacy-policy
|
pageRef: /pages/privacy-policy
|
||||||
@ -184,6 +190,11 @@ languages:
|
|||||||
name: Secretery
|
name: Secretery
|
||||||
pageRef: /pages/segreteria
|
pageRef: /pages/segreteria
|
||||||
weight: 54
|
weight: 54
|
||||||
|
- identifer: authors
|
||||||
|
name: Authors
|
||||||
|
parent: about
|
||||||
|
pageRef: /author
|
||||||
|
weight: 55
|
||||||
- identifier: privacy
|
- identifier: privacy
|
||||||
name: Privacy
|
name: Privacy
|
||||||
pageRef: /pages/privacy-policy
|
pageRef: /pages/privacy-policy
|
||||||
|
3
content/author/_index.en.md
Normal file
3
content/author/_index.en.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
title: BgLUG's authors
|
||||||
|
---
|
3
content/author/_index.it.md
Normal file
3
content/author/_index.it.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
title: Gli autori del BgLUG
|
||||||
|
---
|
5
content/author/paspo/_index.md
Normal file
5
content/author/paspo/_index.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: paspo
|
||||||
|
image: paspo.png
|
||||||
|
description: paspo's [website](https://paspo.dev)
|
||||||
|
---
|
BIN
content/author/paspo/paspo.png
Normal file
BIN
content/author/paspo/paspo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
license: License
|
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.
|
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"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
license: Licenza
|
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/).
|
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 {{ . }}"
|
||||||
|
17
layouts/_default/author.html
Normal file
17
layouts/_default/author.html
Normal 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 }}
|
@ -39,9 +39,16 @@
|
|||||||
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
|
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||||
{{- with .Params.author -}}
|
|
||||||
di {{ . | markdownify }}<br/>
|
{{- with .GetTerms "author" }}
|
||||||
{{- end -}}
|
{{- range . -}}
|
||||||
|
<div class="author">
|
||||||
|
di <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if .Site.Params.show_post_dates | default true }}
|
{{ if .Site.Params.show_post_dates | default true }}
|
||||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -2,9 +2,15 @@
|
|||||||
<header>
|
<header>
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
<p>{{ .Description }}</p>
|
<p>{{ .Description }}</p>
|
||||||
{{- with .Params.author -}}
|
|
||||||
<div class="author">di {{ . | markdownify }}</div>
|
{{- with .GetTerms "author" }}
|
||||||
{{- end -}}
|
{{- range . -}}
|
||||||
|
<div class="author">
|
||||||
|
di <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{ if .Site.Params.show_post_dates | default true }}
|
{{ if .Site.Params.show_post_dates | default true }}
|
||||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
17
layouts/_default/taxonomy.html
Normal file
17
layouts/_default/taxonomy.html
Normal 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 }}
|
@ -4,8 +4,8 @@
|
|||||||
{{ $rasters := slice "jpeg" "png" }}
|
{{ $rasters := slice "jpeg" "png" }}
|
||||||
{{ $newres := "360x250 smart" }}
|
{{ $newres := "360x250 smart" }}
|
||||||
|
|
||||||
{{/* di default, niente immagine */}}
|
{{/* immagine di default */}}
|
||||||
{{- $featimg := "#" -}}
|
{{- $featimg := (resources.Get "/images/placeholder_autore.png").RelPermalink -}}
|
||||||
|
|
||||||
{{- if .Params.image -}}
|
{{- if .Params.image -}}
|
||||||
{{/* se è stata definita un'immagine featured */}}
|
{{/* se è stata definita un'immagine featured */}}
|
||||||
@ -44,9 +44,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<p>
|
<p>
|
||||||
{{ with .Description }}
|
{{ with .Description }}
|
||||||
{{- . | truncate 400 }}
|
{{- . | markdownify | truncate 400 }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- .Summary | truncate 400 }}
|
{{- .Summary | markdownify | truncate 400 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
{{ partial "tags.html" . }}
|
{{ partial "tags.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user