Default title if YAML .meta.title is empty
This commit is contained in:
parent
4b5df3d46c
commit
67215cf921
|
@ -7,15 +7,15 @@ meta:
|
||||||
language: "en-EN"
|
language: "en-EN"
|
||||||
author: "Job Applicant"
|
author: "Job Applicant"
|
||||||
theme-color: "#bd93f9"
|
theme-color: "#bd93f9"
|
||||||
title: "Go-Resume - dynamic resume"
|
## Set the page title (shown in the browser tab). If empty, "Name - Title" from profile will be used
|
||||||
description: "Software Developer"
|
title:
|
||||||
favicon: ""
|
description: "Professional employee"
|
||||||
theme: "dark"
|
theme: "dark"
|
||||||
profile:
|
profile:
|
||||||
name: "Job Applicant"
|
name: "Job Applicant"
|
||||||
title: "Software Developer"
|
title: "Professional employee"
|
||||||
city: "Oulu, Finland"
|
city: "Oulu, Finland"
|
||||||
phone: "+358 xx xxx xxxx"
|
phone: "+358 xx xxx xxxx"
|
||||||
email: "iwannajob@email.com"
|
email: "iwannajob@email.com"
|
||||||
photo: "path-or-url-to-avatar"
|
photo: "https://url.to/profile/photo"
|
||||||
socials: []
|
socials: []
|
|
@ -10,7 +10,13 @@
|
||||||
<meta name="theme-color" content="{{ .Meta.ThemeColor }}" /> <!-- FROM YAML -->
|
<meta name="theme-color" content="{{ .Meta.ThemeColor }}" /> <!-- FROM YAML -->
|
||||||
<!-- Dynamic tags end -->
|
<!-- Dynamic tags end -->
|
||||||
|
|
||||||
<title>{{ .Profile.Name }} - {{ .Profile.Title }}</title> <!-- FROM YAML -->
|
<title>
|
||||||
|
{{ if .Meta.Title }}
|
||||||
|
{{ .Meta.Title }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Profile.Name }} - {{ .Profile.Title }}
|
||||||
|
{{ end }}
|
||||||
|
</title> <!-- FROM YAML -->
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="https://cloud.oranki.net/apps/theming/favicon?v=2659fc51" />
|
<link rel="icon" type="image/png" sizes="16x16" href="https://cloud.oranki.net/apps/theming/favicon?v=2659fc51" />
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com/css?family=Raleway" />
|
<link rel="preconnect" href="https://fonts.googleapis.com/css?family=Raleway" />
|
||||||
|
|
Loading…
Reference in New Issue