You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
5.1 KiB

Omegamma - Hugo theme for and related websites
Copyright (C) 2021-2022 Ad5001 <>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <>.
<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">
<!-- Favicons -->
<link rel="icon" href="/img/logo.svg" type="image/svg+xml">
<link rel="alternate icon" href="/img/logo.png" type="image/png">
<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">
{{ 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,programming{{ 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 }}{{ 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 }}{{ 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>