301 lines
13 KiB
HTML
301 lines
13 KiB
HTML
<meta name="description" content="{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}">
|
|
<meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
|
|
<meta property="og:site_name" content="{{ .Site.Title }}">
|
|
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}">
|
|
{{ if .Params.postimage -}}
|
|
<meta property="og:image" content="{{ .Site.BaseURL }}images/{{ .Params.postimage }}">
|
|
<meta property="og:image:width" content="{{ .Params.postimage_width }}">
|
|
<meta property="og:image:height" content="{{ .Params.postimage_height }}">
|
|
{{- else if .Site.Params.Image -}}
|
|
<meta property="og:image" content="{{ .Site.BaseURL }}images/assets/{{ .Site.Params.Image }}">
|
|
<meta property="og:image:width" content="800">
|
|
<meta property="og:image:height" content="420">
|
|
{{- else -}}
|
|
<meta property="og:image" content="{{ .Site.BaseURL }}images/assets/avatar-800.png">
|
|
<meta property="og:image:width" content="800">
|
|
<meta property="og:image:height" content="420">
|
|
{{ end }}
|
|
{{ if .Params.postimagedescription -}}
|
|
<meta property="og:image:alt" content="{{ .Params.postimagedescription }}">
|
|
{{- else if .Site.Params.ImageDescription -}}
|
|
<meta property="og:image:alt" content="{{ .Site.Params.ImageDescription }}">
|
|
{{- else -}}
|
|
<meta property="og:image:alt" content="{{ i18n "defaultImageAlt" }}">
|
|
{{ end }}
|
|
<meta property="og:locale" content="{{ .Language.Lang }}">
|
|
{{ if eq .Title "Accueil" }}
|
|
<meta property="og:type" content="website">
|
|
{{ else }}
|
|
<meta property="og:type" content="article">
|
|
<meta property='article:author' content='{{ .Site.BaseURL }}me' />
|
|
<meta property='article:publisher' content='{{ .Site.BaseURL }}me' />
|
|
<meta property="article:published_time" content="{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}">
|
|
{{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }}
|
|
<meta property="article:modified_time" content="{{ .Lastmod }}">
|
|
{{ end -}}
|
|
{{- with .Params.categories }}
|
|
{{- range . -}}
|
|
<meta property="article:tag" content="{{ . }}">
|
|
{{- end -}}
|
|
{{ end -}}
|
|
{{- with .Params.tags }}
|
|
{{- range . -}}
|
|
<meta property="article:tag" content="{{ . }}">
|
|
{{- end -}}
|
|
{{ end -}}
|
|
{{ end }}
|
|
<meta property="og:url" content="{{ .Permalink }}">
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
{{ if .Site.Params.online.mastodon }}
|
|
<link rel="me" href="{{ .Site.Params.online.mastodon }}">
|
|
{{ end }}
|
|
<link rel="canonical" href="{{ .Permalink }}">
|
|
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
|
|
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/">
|
|
<meta name="DC.creator" content="{{ .Site.Author.name }}">
|
|
<meta name="DC.language" content="{{ .Language.Lang }}">
|
|
{{ if eq .Title "Accueil" }}
|
|
<meta name="DC.title" content="{{ .Site.Title }}">
|
|
{{ else }}
|
|
<meta name="DC.title" content="{{ .Title }} - {{ .Site.Title }}">
|
|
{{ end }}
|
|
{{ if eq .Title "Accueil" }}
|
|
<meta name="DC.type" content="website">
|
|
{{ else if eq .Title "Blog" }}
|
|
<meta name="DC.type" content="blog">
|
|
<meta name="DC.isPartOf" content="{{ .Site.BaseURL }}">
|
|
{{ else if isset .Params "categories" }}
|
|
<meta name="DC.type" content="blogPost">
|
|
<meta name="DC.isPartOf" content="{{ .Site.BaseURL }}blog">
|
|
{{ else if and .IsNode (ne .Title "Accueil") }}
|
|
<meta name="DC.type" content="list">
|
|
<meta name="DC.isPartOf" content="{{ .Site.BaseURL }}blog">
|
|
{{ else }}
|
|
<meta name="DC.type" content="webpage">
|
|
<meta name="DC.isPartOf" content="{{ .Site.BaseURL }}">
|
|
{{ end }}
|
|
<meta name="DC.created" content="{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}">
|
|
<meta name="DC.date" content="{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}">
|
|
{{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }}
|
|
<meta name="DC.modified" content="{{ .Lastmod }}">
|
|
{{ end -}}
|
|
<meta name="DC.description" content="{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}">
|
|
{{- with .Params.categories }}
|
|
{{- range . -}}
|
|
<meta name="DC.subject" content="{{ . }}">
|
|
{{- end -}}
|
|
{{ end -}}
|
|
{{- with .Params.tags }}
|
|
{{- range . -}}
|
|
<meta name="DC.subject" content="{{ . }}">
|
|
{{- end -}}
|
|
{{ end -}}
|
|
<meta name="DC.license" content="{{ .Site.Params.License }}">
|
|
{{ if eq .Title "Blog" }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org/",
|
|
"@type" : "Blog",
|
|
"@id": "{{ .Site.BaseURL }}blog",
|
|
"name": "{{ .Title }}",
|
|
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}",
|
|
"datePublished": "{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}"
|
|
{{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }},"dateModified": "{{ .Lastmod }}"{{ end }},
|
|
"author": {
|
|
"@type": "Person",
|
|
"@id": "{{ .Site.BaseURL }}me",
|
|
"name": "{{ .Site.Author.name }}",
|
|
"url": "{{ .Site.BaseURL }}me",
|
|
"email": "mailto:{{ .Site.Params.contactsPriv.email }}",
|
|
"jobTitle": "{{ .Site.Params.contactsPriv.Function }}",
|
|
"telephone": "{{ .Site.Params.contactsPriv.phone }}",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"addressLocality": "{{ .Site.Params.contactsPriv.Place }}",
|
|
"postalCode": "{{ .Site.Params.contactsPriv.ZIP }}",
|
|
"streetAddress": "{{ .Site.Params.contactsPriv.address }}"
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"height": "96",
|
|
"width": "96"
|
|
}
|
|
},
|
|
"isPartOf": {
|
|
"@type": "WebSite",
|
|
"name": "{{ .Site.Title }}",
|
|
"url": "{{ .Site.BaseURL }}"
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"height": "420",
|
|
"width": "800"
|
|
},
|
|
"license": "{{ .Site.Params.License }}"
|
|
}
|
|
</script>
|
|
{{ else if isset .Params "categories" }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org/",
|
|
"@type": "BlogPosting",
|
|
"@id": "{{ .Permalink }}",
|
|
"url": "{{ .Permalink }}",
|
|
"mainEntityOfPage": "{{ .Permalink }}",
|
|
"headline": "{{ .Title }}",
|
|
"name": "{{ .Title }}",
|
|
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}",
|
|
"datePublished": "{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}"
|
|
{{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }},"dateModified": "{{ .Lastmod }}"{{ end }},
|
|
"keywords": "[{{ range $i, $e := .Params.categories }}{{ if $i }}, {{ end }}{{ $e }}, {{ end }}{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}]",
|
|
"author": {
|
|
"@type": "Person",
|
|
"@id": "{{ .Site.BaseURL }}me",
|
|
"name": "{{ .Site.Author.name }}",
|
|
"url": "{{ .Site.BaseURL }}me",
|
|
"email": "mailto:{{ .Site.Params.contactsPriv.email }}",
|
|
"jobTitle": "{{ .Site.Params.contactsPriv.Function }}",
|
|
"telephone": "{{ .Site.Params.contactsPriv.phone }}",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"addressLocality": "{{ .Site.Params.contactsPriv.Place }}",
|
|
"postalCode": "{{ .Site.Params.contactsPriv.ZIP }}",
|
|
"streetAddress": "{{ .Site.Params.contactsPriv.address }}"
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"height": "96",
|
|
"width": "96"
|
|
}
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ if .Params.postimage }}{{ .Site.BaseURL }}images/assets/{{ .Params.postimage }}{{ else }}{{ .Site.BaseURL }}images/assets/{{ .Site.Params.Image }}{{ end }}",
|
|
"url": "{{ if .Params.postimage }}{{ .Site.BaseURL }}images/{{ .Params.postimage }}{{ else }}{{ .Site.BaseURL }}images/{{ .Site.Params.Image }}{{ end }}",
|
|
"height": "{{ if .Params.postimage_height }}{{ .Params.postimage_height }}{{ else }}800{{ end }}",
|
|
"width": "{{ if .Params.postimage_width }}{{ .Params.postimage_width }}{{ else }}420{{ end }}"
|
|
},
|
|
"isPartOf": {
|
|
"@type": "Blog",
|
|
"@id": "{{ .Site.BaseURL }}blog",
|
|
"name": "Blog - {{ .Site.Title }}"
|
|
},
|
|
"license": "{{ .Site.Params.License }}"
|
|
}
|
|
</script>
|
|
{{ else if and .IsNode (ne .Title "Accueil") }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "ItemList",
|
|
"itemListElement": "[{{ range .Pages }}{{ .Permalink }}, {{ end }}]",
|
|
"itemListOrder": "https://schema.org/ItemListOrderDescending",
|
|
"name": "{{ .Title }}",
|
|
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}",
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"height": "420",
|
|
"width": "800"
|
|
},
|
|
"url": "{{ .Permalink }}"
|
|
}
|
|
</script>
|
|
{{ else if eq .Title "Accueil" }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebSite",
|
|
"@id": "{{ .Site.BaseURL }}",
|
|
"name": "{{ .Site.Title }}",
|
|
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}",
|
|
"datePublished": "{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}"
|
|
{{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }},"dateModified": "{{ .Lastmod }}"{{ end }},
|
|
"author": {
|
|
"@type": "Person",
|
|
"@id": "{{ .Site.BaseURL }}me",
|
|
"name": "{{ .Site.Author.name }}",
|
|
"url": "{{ .Site.BaseURL }}me",
|
|
"email": "mailto:{{ .Site.Params.contactsPriv.email }}",
|
|
"jobTitle": "{{ .Site.Params.contactsPriv.Function }}",
|
|
"telephone": "{{ .Site.Params.contactsPriv.phone }}",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"addressLocality": "{{ .Site.Params.contactsPriv.Place }}",
|
|
"postalCode": "{{ .Site.Params.contactsPriv.ZIP }}",
|
|
"streetAddress": "{{ .Site.Params.contactsPriv.address }}"
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"height": "96",
|
|
"width": "96"
|
|
}
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"height": "420",
|
|
"width": "800"
|
|
},
|
|
"license": "{{ .Site.Params.License }}"
|
|
}
|
|
</script>
|
|
{{ else }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebPage",
|
|
"name": "{{ .Title }}",
|
|
"@id": "{{ .Permalink }}",
|
|
"url": "{{ .Permalink }}",
|
|
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Personal portfolio{{ end }}",
|
|
"datePublished": "{{ dateFormat "2006-01-02" (default .Date (.PublishDate)) }}"
|
|
{{- if (and (isset .Params "lastmod") (gt (dateFormat "2016-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }},"dateModified": "{{ .Lastmod }}"{{ end }},
|
|
"author": {
|
|
"@type": "Person",
|
|
"@id": "{{ .Site.BaseURL }}me",
|
|
"name": "{{ .Site.Author.name }}",
|
|
"url": "{{ .Site.BaseURL }}me",
|
|
"email": "mailto:{{ .Site.Params.contactsPriv.email }}",
|
|
"jobTitle": "{{ .Site.Params.contactsPriv.Function }}",
|
|
"telephone": "{{ .Site.Params.contactsPriv.phone }}",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"addressLocality": "{{ .Site.Params.contactsPriv.Place }}",
|
|
"postalCode": "{{ .Site.Params.contactsPriv.ZIP }}",
|
|
"streetAddress": "{{ .Site.Params.contactsPriv.address }}"
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar.png",
|
|
"height": "96",
|
|
"width": "96"
|
|
}
|
|
},
|
|
"isPartOf": {
|
|
"@type": "WebSite",
|
|
"name": "{{ .Site.Title }}",
|
|
"url": "{{ .Site.BaseURL }}"
|
|
},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"@id": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"url": "{{ .Site.BaseURL }}images/assets/avatar-800.png",
|
|
"height": "420",
|
|
"width": "800"
|
|
},
|
|
"license": "{{ .Site.Params.License }}"
|
|
}
|
|
</script>
|
|
{{ end }} |