hugo-theme-toastersrocks/layouts/partials/head.html

18 lines
955 B
HTML

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/img/icon.png" type="image/png">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ hugo.Generator }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
<meta name="theme-color" content="#660066">
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
{{ $fontawesome := resources.Get "css/fontawesome.css" }}
{{ $styles := resources.Get "css/styles.css" }}
{{ $syntax := resources.Get "css/syntax.css" }}
{{ $css := slice $fontawesome $styles $syntax | resources.Concat "css/toastersrocks.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $css.Permalink }}" />
</head>