Added missing <head> tag
I feel like this doesn't need a MR
This commit is contained in:
parent
5e602eda1c
commit
db46217d96
@ -1,59 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
{{ $favicon := resources.Get "img/favicon.ico" }}
|
||||
<link rel="icon" href="{{ $favicon.Permalink }}" type="image/ico">
|
||||
{{ block "css" . -}}
|
||||
<link rel="stylesheet" href="https://unpkg.com/firacode@1.206.0/distr/fira_code.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
|
||||
{{ partial "sass.html" "css/main.scss" }}
|
||||
<meta name="theme-color" content="#0b2a37">
|
||||
{{- end }}
|
||||
{{ block "og" . -}}
|
||||
{{ $ogimg := resources.Get "img/og-img.png" }}
|
||||
{{ if eq .IsPage true }}
|
||||
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:image" content="{{ $ogimg.Permalink }}">
|
||||
<meta property="og:image:alt" content="{{ T "logo-alt" }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:description" content="{{ .Summary | truncate 120 }}">
|
||||
<meta property="og:locale" content="{{ index .Site.Data.languages .Language.Lang }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
{{ range .Translations }}
|
||||
<meta property="og:locale:alternative" content="{{ index .Site.Data.languages .Lang }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
{{ $favicon := resources.Get "img/favicon.ico" }}
|
||||
<link rel="icon" href="{{ $favicon.Permalink }}" type="image/ico">
|
||||
{{ block "css" . -}}
|
||||
<link rel="stylesheet" href="https://unpkg.com/firacode@1.206.0/distr/fira_code.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
|
||||
{{ partial "sass.html" "css/main.scss" }}
|
||||
<meta name="theme-color" content="#0b2a37">
|
||||
{{- end }}
|
||||
{{ block "og" . -}}
|
||||
{{ $ogimg := resources.Get "img/og-img.png" }}
|
||||
{{ if eq .IsPage true }}
|
||||
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:image" content="{{ $ogimg.Permalink }}">
|
||||
<meta property="og:image:alt" content="{{ T "logo-alt" }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:description" content="{{ .Summary | truncate 120 }}">
|
||||
<meta property="og:locale" content="{{ index .Site.Data.languages .Language.Lang }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
{{ range .Translations }}
|
||||
<meta property="og:locale:alternative" content="{{ index .Site.Data.languages .Lang }}">
|
||||
{{ end }}
|
||||
<meta property="og:article:published_date" content="{{ .PublishDate }}">
|
||||
{{ range .Params.authors }}
|
||||
<meta property="og:article:author" content="{{ . }}">
|
||||
{{ end }}
|
||||
{{ range .Params.tags }}
|
||||
<meta property="og:article:tag" content="{{ . }}">
|
||||
{{ end }}
|
||||
<meta property="og:article:section" content="{{ .Section }}">
|
||||
{{ end }}
|
||||
<meta property="og:article:published_date" content="{{ .PublishDate }}">
|
||||
{{ range .Params.authors }}
|
||||
<meta property="og:article:author" content="{{ . }}">
|
||||
{{ if eq .IsHome true }}
|
||||
<meta property="og:title" content="Pátek.cz">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:image" content="{{ $ogimg.Permalink }}">
|
||||
<meta property="og:image:alt" content="{{ T "logo-alt" }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:description" content="{{ .Summary }}">
|
||||
<meta property="og:locale" content="{{ index .Site.Data.languages .Language.Lang }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
{{ range .Translations }}
|
||||
<meta property="og:locale:alternative" content="{{ index .Site.Data.languages .Lang }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range .Params.tags }}
|
||||
<meta property="og:article:tag" content="{{ . }}">
|
||||
{{ end }}
|
||||
<meta property="og:article:section" content="{{ .Section }}">
|
||||
{{ end }}
|
||||
{{ if eq .IsHome true }}
|
||||
<meta property="og:title" content="Pátek.cz">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:image" content="{{ $ogimg.Permalink }}">
|
||||
<meta property="og:image:alt" content="{{ T "logo-alt" }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:description" content="{{ .Summary }}">
|
||||
<meta property="og:locale" content="{{ index .Site.Data.languages .Language.Lang }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
{{ range .Translations }}
|
||||
<meta property="og:locale:alternative" content="{{ index .Site.Data.languages .Lang }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ block "js" . -}}
|
||||
{{ partial "js.html" "js/header-link.js" }}
|
||||
{{ partial "js.html" "js/patek-logo-custom-element/patek-logo.js" }}
|
||||
{{ partial "js.html" "js/dark-mode.js" }}
|
||||
{{ end }}
|
||||
{{ block "js" . -}}
|
||||
{{ partial "js.html" "js/header-link.js" }}
|
||||
{{ partial "js.html" "js/patek-logo-custom-element/patek-logo.js" }}
|
||||
{{ partial "js.html" "js/dark-mode.js" }}
|
||||
{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
{{ block "body" . }}
|
||||
{{- partial "header.html" . -}}
|
||||
|
Loading…
Reference in New Issue
Block a user