Compare commits

...

4 commits

Author SHA1 Message Date
c133c99d73 Merge branch 'master' into develop
Some checks failed
Deploy workflow / deploy (push) Failing after 21s
2024-09-15 22:53:38 +02:00
5d3aaafe35 fix(meta): opengraph, json-ld and gitinfo
Some checks failed
Deploy workflow / deploy (push) Failing after 22s
2024-09-15 22:53:04 +02:00
eac78b1acf fix: typo in link
All checks were successful
Deploy workflow / deploy (push) Successful in 33s
2024-09-15 21:14:30 +02:00
2a599fb1b2 Merge pull request 'develop' (#15) from develop into master
All checks were successful
Deploy workflow / deploy (push) Successful in 32s
Reviewed-on: #15
2024-09-15 16:41:13 +00:00
5 changed files with 48 additions and 20 deletions

View file

@ -5,14 +5,16 @@ title = "L'Étoile de Bethléem"
summaryLength = 22 summaryLength = 22
assetDir = "assets" assetDir = "assets"
minifyOutput = false minifyOutput = false
enableGitInfo = true
[sitemap] [sitemap]
changefreq = 'weekly' changefreq = 'weekly'
[params] [params]
dateFmt = "02.01.2006 15:04" dateFmt = "02.01.2006 15:04"
ISO8601 = "2006-01-02T15:04:05-07:00"
[params.contact] [params.contact]
peertube = "https://peertube.iriseden.eu/c/etoiledebethleem/videos" peertube = "https://peertube.iriseden.eu/c/etoiledebethleem/videos"
email = "contact@etoiledebethleem.fr" email = "contact@etoiledebethleem.fr"
@ -20,6 +22,7 @@ dateFmt = "02.01.2006 15:04"
helloasso = "https://www.helloasso.com/associations/l-etoile-de-bethleem-association-des-amis-de-la-chapelle-de-bethleem-d-aubevoye/" helloasso = "https://www.helloasso.com/associations/l-etoile-de-bethleem-association-des-amis-de-la-chapelle-de-bethleem-d-aubevoye/"
helloasso_adhesion = "https://www.helloasso.com/associations/l-etoile-de-bethleem-association-des-amis-de-la-chapelle-de-bethleem-d-aubevoye/adhesions/2023-2024" helloasso_adhesion = "https://www.helloasso.com/associations/l-etoile-de-bethleem-association-des-amis-de-la-chapelle-de-bethleem-d-aubevoye/adhesions/2023-2024"
paper_adhesion = "https://static.etoiledebethleem.fr/docs/adhesion_papier_2023-2024_v3.pdf" paper_adhesion = "https://static.etoiledebethleem.fr/docs/adhesion_papier_2023-2024_v3.pdf"
[params.socials] [params.socials]
facebook = "https://www.facebook.com/groups/bethleemaubevoye" facebook = "https://www.facebook.com/groups/bethleemaubevoye"
instagram = "https://www.instagram.com/etoiledebethleem/" instagram = "https://www.instagram.com/etoiledebethleem/"
@ -28,13 +31,13 @@ dateFmt = "02.01.2006 15:04"
mastodon = "https://attreno.fr/@etoiledebethleem" mastodon = "https://attreno.fr/@etoiledebethleem"
peertube = "https://peertube.iriseden.eu/c/etoiledebethleem/videos" peertube = "https://peertube.iriseden.eu/c/etoiledebethleem/videos"
[params.defaultImage] [params.defaultImage]
local = true local = true
src = "images/logo_medium.png" src = "images/logo_medium.png"
[params.defaultCoverImage] [params.defaultCoverImage]
local = true local = true
src = "images/cover_1.jpg" src = "images/cover_1.jpg"
[taxonomies] [taxonomies]
imtag = 'imtags' imtag = 'imtags'

View file

@ -6,7 +6,7 @@
<div class="cover__back" style="background-image: url('{{ .RelPermalink }}')"> <div class="cover__back" style="background-image: url('{{ .RelPermalink }}')">
<!-- For now we are not going to show a video --> <!-- For now we are not going to show a video -->
<!-- <video playsinline autoplay muted loop> --> <!-- <video playsinline autoplay muted loop> -->
<!-- <source src="https://static.etoiledebethleem.fr/videos/teaser_v5.mp4" type="video/webm"> --> <!-- <source src="https://static.etoiledebethleem.fr/videos/teaser/md.mp4" type="video/webm"> -->
<!-- </video> --> <!-- </video> -->
</div> </div>
{{ end }} {{ end }}

View file

@ -13,11 +13,12 @@
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
{{ partial "opengraph/include.html" . }} {{ partial "metas/opengraph.html" . }}
{{- partial "metas/json-ld.html" . -}}
{{ range .AlternativeOutputFormats }} {{- range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end }} {{- end -}}
<link rel="apple-touch-icon" sizes="57x57" href="/icons/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="57x57" href="/icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/icons/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="60x60" href="/icons/apple-icon-60x60.png">

View file

@ -0,0 +1,24 @@
{{ if .IsPage }}
{{ if eq .Section "actualites" }}
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "BlogPosting",
"articleSection" : "{{ .Section | title }}",
"name" : "{{ .Title }}",
"headline" : "{{ .Title }}",
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"inLanguage" : "fr-FR",
"author" : "{{ .Params.author }}",
"creator" : "Étoile de Bethléem",
"accountablePerson" : "Étoile de Bethléem",
"datePublished": "{{ .PublishDate.Format $.Site.Params.ISO8601 }}",
"dateModified" : "{{ .Lastmod.Format $.Site.Params.ISO8601 }}",
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
"keywords" : [ {{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} ]
}
</script>
{{ end }}
{{ end }}

View file

@ -5,7 +5,7 @@
<meta property="og:title" content="{{ $title }}"> <meta property="og:title" content="{{ $title }}">
<meta property="og:description" content="{{ $description }}"> <meta property="og:description" content="{{ $description }}">
<meta property="og:url" content="{{ .Permalink }}"> <meta property="og:url" content="{{ .Permalink | absURL }}">
<meta property="og:site_name" content="{{ .Site.Title }}"> <meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:type" content=" <meta property="og:type" content="
{{- if .IsPage -}} {{- if .IsPage -}}
@ -17,28 +17,28 @@
<meta property="og:locale" content="{{ .Site.LanguageCode }}"> <meta property="og:locale" content="{{ .Site.LanguageCode }}">
{{ if .IsPage }} {{- if .IsPage -}}
<meta property="article:section" content="{{ .Section | title }}" /> <meta property="article:section" content="{{ .Section | title }}" />
{{- range .Params.tags -}} {{- range .Params.tags -}}
<meta property="article:tag" content="{{ . }}" /> <meta property="article:tag" content="{{ . }}" />
{{- end -}} {{- end -}}
{{ end }} {{- end -}}
{{ if .IsPage }} {{- if .IsPage -}}
{{- if not .Date.IsZero -}} {{- if not .Date.IsZero -}}
<meta property="article:published_time" content="{{- .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}" /> <meta property="article:published_time" content="{{- .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}" />
{{- end -}} {{- end -}}
{{- if not .Lastmod.IsZero -}} {{- if not .Lastmod.IsZero -}}
<meta property="article:modified_time" content="{{- .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}" /> <meta property="article:modified_time" content="{{- .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}" />
{{- end -}} {{- end -}}
{{ else }} {{- else -}}
{{ if not .Site.LastChange.IsZero }} {{ if not .Site.Lastmod.IsZero }}
<meta property="og:updated_time" content="{{- .Site.LastChange.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}" /> <meta property="og:updated_time" content="{{- .Site.Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML -}}" />
{{- end -}} {{- end -}}
{{ end }} {{- end -}}
{{ $image := partial "helpers/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }} {{ $image := partial "helpers/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }}
{{ if $image.exists }} {{ if $image.exists }}
<meta property="og:image" content="{{ $image.permalink }}" /> <meta property="og:image" content="{{ $image.permalink | absURL }}" />
{{- end -}} {{- end -}}