msfjarvis.dev/layouts/partials/head.html

54 lines
2.2 KiB
HTML
Raw Normal View History

2019-01-28 03:32:55 +05:30
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
2018-07-20 22:44:22 +05:30
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
2019-02-03 01:30:40 +05:30
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
2019-01-25 23:24:07 +05:30
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}"/>
2018-07-20 22:44:22 +05:30
<meta name="keywords" content="{{ .Site.Params.keywords }}"/>
<meta name="robots" content="noodp"/>
<link rel="canonical" href="{{ .Permalink }}" />
2019-01-28 03:32:55 +05:30
{{ block "title" . }}
<title>
{{ if .IsHome }}
{{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }}
{{ else }}
{{ .Title }} :: {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}
{{ end }}
</title>
{{ end }}
2018-07-20 22:44:22 +05:30
<!-- CSS -->
2019-01-28 03:32:55 +05:30
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro" rel="stylesheet" type="text/css">
2019-02-03 01:30:56 +05:30
<link href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.2.1/css/flag-icon.min.css" rel="stylesheet" type="text/css">
2019-02-22 19:49:42 +05:30
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
2019-01-28 03:32:55 +05:30
{{- range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
2018-07-20 22:44:22 +05:30
<!-- Icons -->
2019-01-28 03:32:55 +05:30
{{- partial "favicons.html" }}
{{- template "_internal/schema.html" . }}
{{- template "_internal/twitter_cards.html" . }}
2018-07-20 22:44:22 +05:30
{{ range .Params.categories }}<meta property="article:section" content="{{ . }}" />{{ end }}
{{ if isset .Params "date" }}<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}
<!-- RSS -->
{{ if .RSSLink }}
2019-01-28 03:32:55 +05:30
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
2018-07-20 22:44:22 +05:30
{{ end }}
<!-- JSON Feed -->
{{ if .OutputFormats.Get "json" }}
2019-01-28 03:32:55 +05:30
<link href="{{ if .OutputFormats.Get "json" }}{{ .Site.BaseURL }}feed.json{{ end }}" rel="alternate" type="application/json" title="{{ .Site.Title }}" />
2018-07-20 22:44:22 +05:30
{{ end }}
2019-01-28 03:32:55 +05:30
<!-- Custom head tags -->
{{- if templates.Exists "partials/extra-head.html" -}}
{{ partial "extra-head.html" . }}
{{- end }}