omegamma/layouts/partials/head.html

68 lines
4.3 KiB
HTML
Raw Normal View History

2021-06-08 14:19:46 +00:00
<head>
2021-06-08 16:18:22 +00:00
<title>{{ .Site.Title }} - {{ .Title }}</title>
<meta charset="UTF-8">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Regular.otf">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Light.otf">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Bold.otf">
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/omegicons/omegicons.woff2?51725251">
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS }}
{{ if .Site.Params.includeAppsStyle }}
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS }}
{{ $style := slice $mainstyle $appsstyle | resources.Concat "css/bundle.css" | minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ else }}
{{ $style := $mainstyle | minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ end }}
{{ $printstyle := resources.Get "/scss/print.scss" | toCSS | minify }}
<link rel="stylesheet" href="{{ $printstyle.Permalink }}" media="print">
2021-10-04 08:18:11 +00:00
<!-- Favicons -->
<link rel="icon" href="/img/logo.svg" type="image/svg+xml">
<link rel="alternate icon" href="/img/logo.png" type="image/png">
2021-10-04 08:18:11 +00:00
<link rel="apple-touch-icon" sizes="57x57" href="/img/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/img/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/img/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/img/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/img/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/img/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/img/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
2021-06-08 16:18:22 +00:00
{{ hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Ad5001">
<meta name="description" content="{{ .Page.Description }}">
<meta name="keywords" content="ad5001,programing{{ if .Params.Tags }},{{ .Params.Tags }}{{ end }}">
<meta name="theme-color" content="#50DC71">
<!-- Twitter cards -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Ad5001P4F">
<meta name="twitter:description" content="{{ .Page.Description }}">
<meta name="twitter:title" content="{{ .Site.Title }} - {{ .Title }}">
<meta name="twitter:image" content="{{ if .Params.HeaderImage }}{{ .Site.BaseURL }}{{ .Params.HeaderImage }}{{ else }}https://ad5001.eu/img/logo.png{{ end }}">
<!-- open graph -->
<meta property="og:title" content="{{ .Site.Title }} - {{ .Title }}">
<meta property="og:site_name" content="Ad5001">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:locale" content="{{ .Site.Language.Lang }}">
<meta property="og:description" content="{{ .Description }}">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ if .Params.HeaderImage }}{{ .Site.BaseURL }}{{ .Params.HeaderImage }}{{ else }}https://ad5001.eu/img/logo.png{{ end }}">
{{ if .IsTranslated }}
{{ range .Translations }}
<meta property="og:locale:alternate" content="{{ .Language.Lang }}">
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
{{ end }}
{{ end }}
{{ $mainjs := resources.Get "/js/main.js" | minify }}
<script defer src="{{ $mainjs.Permalink }}"></script>
2021-06-08 14:19:46 +00:00
</head>