mirror of
https://github.com/ineesalmeida/almeida-cv.git
synced 2024-11-23 15:57:58 +00:00
2d21e993a8
Open Graph support included. Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>
32 lines
1.8 KiB
HTML
32 lines
1.8 KiB
HTML
{{ $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "style.main.scss" . | toCSS | minify | fingerprint }}
|
|
{{ $data := .Scratch.Get "data" }}
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ .Site.Title }}</title>
|
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous" media="screen,print" />
|
|
|
|
{{ if .Site.Params.enableMetaTags }}
|
|
<meta property="og:title" content="{{ .Site.Title }}" />
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
<meta property="og:type" content="website" />
|
|
{{ with $data.BasicInfo.Photo }}
|
|
<meta property="og:image" content="{{ . | absURL }}" />
|
|
{{ end }}
|
|
{{ with $data.Profile | htmlUnescape | emojify | truncate 200 }}
|
|
<meta property="og:description" content="{{ . }}" />
|
|
<meta name="description" content="{{ . }}" />
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if .Site.GoogleAnalytics }}
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
{{ end }}
|
|
</head>
|