diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..ff71cae --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,33 @@ +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {{ if eq .URL "/" }} + <meta name="description" content="{{ .Site.Params.Description }}"> + {{ else }} + {{ if .Description }} + <meta name="description" content="{{ .Description }}"> + {{ end }} + {{ end }} + + <title> + {{ if eq .URL "/" }} + {{ .Site.Title }} + {{ else }} + {{ .Title }} · {{ .Site.Title }} + {{ end }} + </title> + + <!-- CSS --> + {{ $style := resources.Get "scss/tale.scss" | toCSS | minify }} + <link rel="stylesheet" href="{{ $style.Permalink }}"> + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700"> + + <!-- Favicon --> + <link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}images/favicon-32x32.png"> + <link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}images/favicon-16x16.png"> + <link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL}}images/apple-touch-icon.png"> + + <!-- RSS --> + <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + </head> +
\ No newline at end of file |