mirror of
https://github.com/Crocmagnon/blog.git
synced 2024-12-04 13:33:37 +01:00
Hide author & set default OG image
This commit is contained in:
parent
344ae572c9
commit
67108f47e3
4 changed files with 6 additions and 5 deletions
|
@ -19,9 +19,8 @@ params:
|
||||||
title: "Gab’s Notes"
|
title: "Gab’s Notes"
|
||||||
description: "My take on tech-related subjects (but not only)."
|
description: "My take on tech-related subjects (but not only)."
|
||||||
keywords: [blog, tech, docker, golang, python, self-hosting]
|
keywords: [blog, tech, docker, golang, python, self-hosting]
|
||||||
author: "Gabriel Augendre"
|
# author: "Gabriel Augendre"
|
||||||
# author: ["Me", "You"] # multiple authors
|
images: ["img/portrait.jpg"]
|
||||||
#images: ["<link or path of image for opengraph, twitter-cards>"]
|
|
||||||
DateFormat: "2006-01-02"
|
DateFormat: "2006-01-02"
|
||||||
defaultTheme: auto # dark, light
|
defaultTheme: auto # dark, light
|
||||||
disableThemeToggle: false
|
disableThemeToggle: false
|
||||||
|
|
|
@ -31,7 +31,7 @@ I'm Gabriel, a Go and Python software developer at [OVHcloud](https://www.ovhclo
|
||||||
{{< unsafe >}}
|
{{< unsafe >}}
|
||||||
<p class="pictures">
|
<p class="pictures">
|
||||||
{{< /unsafe >}}
|
{{< /unsafe >}}
|
||||||
{{< img src="39.jpg" alt="A picture of Gabriel Augendre" >}}
|
{{< img src="img/portrait.jpg" alt="A picture of Gabriel Augendre" >}}
|
||||||
{{< img src="41.jpg" alt="His usual avatar for online profiles, the dwarf from a medieval fantasy audio story named 'Le Donjon de Naheulbeuk' (French)" >}}
|
{{< img src="41.jpg" alt="His usual avatar for online profiles, the dwarf from a medieval fantasy audio story named 'Le Donjon de Naheulbeuk' (French)" >}}
|
||||||
{{< unsafe >}}
|
{{< unsafe >}}
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{{ $src := .Get "src" }}
|
{{ $src := .Get "src" }}
|
||||||
{{ $origImage := .Page.Resources.GetMatch $src }}
|
{{ $pageImage := .Page.Resources.Get $src }}
|
||||||
|
{{ $siteImage := resources.Get $src }}
|
||||||
|
{{ $origImage := $pageImage | default $siteImage }}
|
||||||
{{ if eq $origImage.MediaType.SubType "svg" }}
|
{{ if eq $origImage.MediaType.SubType "svg" }}
|
||||||
<img src="{{ $origImage.RelPermalink }}" alt='{{ .Get "alt" }}'>
|
<img src="{{ $origImage.RelPermalink }}" alt='{{ .Get "alt" }}'>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
Loading…
Reference in a new issue