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"
|
||||
author: "Job Applicant"
|
||||
theme-color: "#bd93f9"
|
||||
title: "Go-Resume - dynamic resume"
|
||||
description: "Software Developer"
|
||||
favicon: ""
|
||||
## Set the page title (shown in the browser tab). If empty, "Name - Title" from profile will be used
|
||||
title:
|
||||
description: "Professional employee"
|
||||
theme: "dark"
|
||||
profile:
|
||||
name: "Job Applicant"
|
||||
title: "Software Developer"
|
||||
title: "Professional employee"
|
||||
city: "Oulu, Finland"
|
||||
phone: "+358 xx xxx xxxx"
|
||||
email: "iwannajob@email.com"
|
||||
photo: "path-or-url-to-avatar"
|
||||
photo: "https://url.to/profile/photo"
|
||||
socials: []
|
|
@ -10,7 +10,13 @@
|
|||
<meta name="theme-color" content="{{ .Meta.ThemeColor }}" /> <!-- FROM YAML -->
|
||||
<!-- 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="preconnect" href="https://fonts.googleapis.com/css?family=Raleway" />
|
||||
|
|
Loading…
Reference in New Issue