<head>
    <meta charset="{{ site.Params.charset }}">
    <title>{{with .Title }}{{ . }}{{ else }}{{ with site.Params.title }}{{ . }}{{ end }}{{ end }}</title>

    {{ "<!-- Mobile responsive meta -->" | safeHTML }}
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
    {{ with site.Params.author }}
    <meta name="author" content="{{ . }}">
    {{ end }}
    {{ hugo.Generator }}
    {{ if site.Params.themeColor }}
    <meta name="theme-color" content="{{ site.Params.themeColor }}">
    {{ end }}

    {{ template "partials/opengraph.html" . }}

    {{ "<!-- Plugins -->" | safeHTML }}
    {{ range site.Params.plugins.css }}
    <link rel="stylesheet" href="{{ .link | absURL }}">
    {{ end }}

    {{ "<!-- Codeblocks Stylesheet -->" | safeHTML }}
    {{ $style := resources.Get "css/syntax.css" | minify }}
    <link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">

    {{ "<!-- Main Stylesheet -->" | safeHTML }}
    {{ $styles := resources.Get "css/style.css" | minify }}
    <link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">

    {{ "<!-- Custom Stylesheet -->" | safeHTML }}
	{{ $custom := resources.Get "css/custom.css" | minify }}
    <link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">

    {{ "<!--Favicon-->" | safeHTML }}
    <link rel="shortcut icon" href="{{ with site.Params.favicon }}{{ . | absURL }}{{ end }}" type="image/x-icon">
    <link rel="icon" href="{{ with site.Params.favicon }}{{ . | absURL }}{{ end }}" type="image/x-icon">

    {{ with .OutputFormats.Get "rss" -}}
        {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
    {{ end -}}
</head>