arbejdsfaellesskab.dk/hugo_site/themes/tranetheme/layouts/partials/header.html

31 lines
2 KiB
HTML
Raw Normal View History

2019-04-30 14:39:24 +00:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Title }} • {{ .Site.Title }}</title>
<meta name="description" content="{{ .Params.description | default .Site.Params.description }}">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ $style := resources.Get "static/style.scss" | resources.ToCSS | resources.Minify }}
<link rel="sitemap" href="{{ .Site.SitemapAbsURL }}" />
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="/static/css/print.css" media="print">
<link href="/static/fonts/poppins/poppins.css" rel="stylesheet">
<link rel="icon" href="/static/img/favicon.ico" sizes="16x16" type="image/png">
{{ if .RSSLink -}}<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}">{{- end }}
{{ .Hugo.Generator }}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@Arbejdsfaellesskabet">
<meta name="twitter:creator" content="@Arbejdsfaellesskabet">
<meta name="twitter:title" content="{{ if .Params.twitter_title }}{{ .Params.twitter_title }}{{ else }}{{ .Title }}{{ end }} • {{ .Site.Title }}" />
<meta name="twitter:description" content="{{ .Params.description | default .Site.Params.description }}">
<meta name="twitter:image" content="{{ if .Params.twitter_card }}{{ .Params.twitter_card }}{{ else }}{{ .Site.BaseURL }}static/img/{{ printf "%s" $.Site.Params.twittercardimage }}{{ end }}" />
<meta property="og:title" content="{{ if .Params.og_title }}{{ .Params.og_title }}{{ else }}{{ .Title }}{{ end }} • {{ .Site.Title }}">
<meta property="og:description" content="{{ .Params.description | default .Site.Params.description }}">
<meta property="og:image" content="{{ .Site.BaseURL }}static/img/{{ printf "%s" $.Site.Params.facebookcardimage }}">
<meta property="og:url" content=" {{ .Permalink }}">
</head>
<body>