Skip to content
Snippets Groups Projects
Verified Commit 8e57a036 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Adding missing title in header

parent b72f7a6e
No related branches found
No related tags found
No related merge requests found
Pipeline #1913 passed with stage
in 1 minute and 34 seconds
......@@ -34,23 +34,29 @@
{{else}}
{{ $tags := .Params.tags}}
{{ if .Params.social_image_url }}
{{ $socialURL := printf "https://flear.org/api/card?%s" (querify "title" .Title "imgUrl" .Params.social_image_url ) }}
{{ $socialURL := printf "https://flear.org/api/card?%s" (querify "title" .Title "imgUrl" .Params.social_image_url ) }}
<meta name="twitter:image" {{ printf "content=%q" $socialURL | safeHTMLAttr}}>
<meta property="og:image" {{ printf "content=%q" $socialURL | safeHTMLAttr}}>
{{else}}
{{else if .Title}}
{{ $socialURL := printf "https://flear.org/api/card?%s" (querify "title" .Title) }}
<meta name="twitter:image" {{ printf "content=%q" $socialURL | safeHTMLAttr}}>
<meta property="og:image" {{ printf "content=%q" $socialURL | safeHTMLAttr}}>
{{ else }}
<meta name="twitter:image" content="/images/logo-header-light.png">
<meta property="og:image" content="/images/logo-header-light.png">
{{end}}
{{end}}
{{ if .Title }}
<title>FLEAR: {{ .Title }}</title>
<meta name="og:title" content="{{ .Title }}">
<meta name="twitter:title" content="{{ .Title }}">
{{ else if .Site.Title }}
<title>FLEAR: {{ .Site.Title }}</title>
<meta name="og:title" content="{{.Site.Title}}">
<meta name="twitter:title" content="{{.Site.Title}}">
{{ else }}
<title>FLEAR - Free and Libre Engineers for Amateur Radio</title>
<meta name="og:title" content="FLEAR - Free and Libre Engineers for Amateur Radio">
<meta name="twitter:title" content="FLEAR - Free and Libre Engineers for Amateur Radio">
{{end}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment